[jamming] bulding more than one exe with a Jamfile
apm35 at student.open.ac.uk
Wed May 5 09:39:37 PDT 2004
Turner David <dturner at cptechno.com> writes:
>> I am new to Jam and do not know how to get jam to
>> build multiple executables with a single Jamfile.
>Just create a small loop and call the relevant rules
>in each iteration. For example:
>PROGRAMS = program1 program2 program3 ;
>for t in $(PROGRAMS)
> Main $(t) : $(t).c ;
> LinkLibraries $(t) : $(MYLIBS) ;
When I do the above it invokes the compiler
without the -I options to look in the header
directories defined via HDRS. If it define HDRS
in the loop it doesn't work either.
Please let me know what I am doing wrong ....
There is an emerald here the size of a plover's egg!
More information about the jamming