| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Often, the same set of source files are used to build several related
programs. Mosmake handles such a situation seamlessly: just add a
%PROGRAM flag to the `Dependencies' line for each unit that
is the main unit of a program.
The name of the binary for a program will be the same as the name of its main unit. This cannot be overridden, sorry. But noone says that the unit Mosmake thinks is the main unit must be the one doing the work. You can have
binary: realmain %PROGRAM |
in `Dependencies' and have an empty `binary.sml' file. Then `realmain.sml' will effectively become the main program.
By default, `make all' will build all the programs known to
Mosmake. If you want to exclude some program from the build (say,
because its source is under development and doesn't always compile
without errors), add the flag %OPTIONAL to the
`Dependencies' line together with %PROGRAM. Then `make
all' will not build the program, but you can still build it explicitly
by `make programname' (or better: `make
programname,smartmade'; see smartmade, for an explanation).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |