Created
February 24, 2016 15:16
-
-
Save AbigailBuccaneer/ab319aa6190db8df38c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env = Environment() | |
program = env.Program('foo', 'foo.c', LIBS=['foo'], LIBPATH='.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env = Environment() | |
env.Library('foo', 'libfoo.c') | |
SConscript('SConscript') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ scons --tree=all | |
scons: Reading SConscript files ... | |
scons: done reading SConscript files. | |
scons: Building targets ... | |
gcc -o foo.o -c foo.c | |
gcc -o libfoo.o -c libfoo.c | |
ar rc libfoo.a libfoo.o | |
ranlib libfoo.a | |
gcc -o foo foo.o -L. -lfoo | |
+-. | |
+-SConscript | |
+-SConstruct | |
+-foo | |
| +-foo.o | |
| | +-foo.c | |
| | +-/usr/bin/gcc | |
| +-/usr/bin/gcc | |
| +-libfoo.a | |
| +-libfoo.o | |
| | +-libfoo.c | |
| | +-/usr/bin/gcc | |
| +-/usr/bin/ar | |
| +-/usr/bin/ranlib | |
+-foo.c | |
+-foo.o | |
| +-foo.c | |
| +-/usr/bin/gcc | |
+-libfoo.a | |
| +-libfoo.o | |
| | +-libfoo.c | |
| | +-/usr/bin/gcc | |
| +-/usr/bin/ar | |
| +-/usr/bin/ranlib | |
+-libfoo.c | |
+-libfoo.o | |
+-libfoo.c | |
+-/usr/bin/gcc | |
scons: done building targets. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment