Copyright © 2003 by Steven Knight
SCons User's Guide Copyright (c) 2003 Steven Knight
X
env = Environment(CC = 'gcc', LIBS = 'world') env.Program('hello.c')
% scons gcc -c hello.c -o hello.o gcc -c world.c -o world.o gcc -o hello hello.o -lworld
env = Environment(CC = 'gcc', LIBS = 'world') env.Program('hello.c') env.Library('world.c')
% scons gcc -c hello.c -o hello.o gcc -c world.c -o world.o ar r libworld.a world.o ar: creating libworld.a ranlib libworld.a gcc -o hello hello.o libworld.a