Getting a Working Copy
The first step in building ReactOS is getting a copy of the source code, you can use the exported release source code, but since you are reading this, you are probably interested in keeping up to date with the latest changes, so you will want a "working copy" of ReactOS. To get a working copy of ReactOS, you need a Subversion client. Follow the client directions on how to checkout a copy of ReactOS from the Subversion repository URL svn://svn.reactos.com/trunk/reactos. This will checkout a working copy (usually in a directory called reactos).
In the base of the working copy, you will find a file called config.template.xml. This is one of the config files for RBuild, our custom build system. Make a copy of this file as config.xml and open it in an editor. Each option is commented with a short description of what it does. Adjust the file to your needs and save it.
There are also a number of environment variables RBuild reads that affect it's behaviour. These environment variables are documented in Makefile in the base of the working copy. More on this in the next section.
The ReactOS build is invoked with the command make, and on windows you may need to use mingw32-make. There are a number of targets, and they are decribed in Makefile at the base of the working copy, please refer to it for targets involving single modules, and others. Here are some of the common targets:
This target builds all of reactos, with the binaries placed in ROS_OUTPUT environment variable. (default: output-i386)
This target generates a ReactOS.iso in the base of the working copy. This is the installation CD. (WaxDragon suggests you tag your bootcds with the revision they were built from.)
This target generates a ReactOS-LiveCD.iso in the base of the working copy. This is the ReactOS livecd that runs completely from the cdrom. Excellent for demonstration.
This target copies all the ReactOS binaries to their proper installation location as specified in the ROS_INSTALL environment variable. (default: .\reactos)
Run the make file from the root directory of ReactOS. In order to build a bootable ISO image, you must first build freeldr then run "make install" ; next you must run "make bootcd" from the root ReactOS directory. The ISO image will be located in the root ReactOS directory when it is finsihed.
This target cleans the ROS_OUTPUT directory, which is sometimes needed to properly update. NOTE: clean has been known to not clean everything, which sometimes leads to bugs. (WaxDragon suggests cleaning your working copy if you are about to do an update that changes headers, or always to be safe)
In a reactos/windows build environment mingw32-make must be used instead of make
Please see the platform specific pages for build troublesooting information.