build roms

From WikiROMS
Jump to navigationJump to search
Build Script - build.sh

An alternative way to compile and link ROMS is to use the build.sh script located in the ROMS/Bin directory. Instead of editing the makefile often, the user may generate a build script for each of his/her applications. The build script uses environmental variables that overwrite the makefile targets defined with ?= syntax. This means that make will check whether an environment variable by that name is set in the script that calls make. The environmental variable take precedence and overwrites makefile default value. Its scope is local to the build script execution, allowing compiling different applications at the same time. There is not need to maintain separate makefiles, or frequently edit the makefile to run separated applications.

Usage:

./build.sh [options]

Options:

-j NCompile in parallel using N CPUs. Omit argument to compile on all availabe CPUs.
-nocleanDo not clean already compiled objects.