SCons User Guide 0.92 | ||
---|---|---|
<<< Previous | Hierarchical Builds | Next >>> |
Of course, you can always specify an absolute path name for a file--for example:
env = Environment()
env.Program('prog', ['main.c', '/usr/joe/lib/foo1.c', 'foo2.c'])
Which, when executed, would yield:
% scons
cc -c /usr/joe/lib/foo1.c -o /usr/joe/lib/foo1.o
cc -c src/prog/foo2.c -o src/prog/foo2.o
cc -c src/prog/main.c -o src/prog/main.o
cc -o src/prog/prog prog/main.o /usr/joe/lib/foo1.o prog/foo2.o
(As was the case with top-relative path names, notice that the /usr/joe/lib/foo1.o object file is built in the same directory as its source file. See section XXX, below, for information about how to build the object file in a different subdirectory.)
<<< Previous | Home | Next >>> |
Top-Level Path Names in Subsidiary SConscript Files | Up | Sharing Environments (and Other Variables) Between SConscript Files |