diff options
| author | Tom Tanner <ttanner2@bloomberg.net> | 2013-10-30 12:28:54 (GMT) |
|---|---|---|
| committer | Tom Tanner <ttanner2@bloomberg.net> | 2013-10-30 12:28:54 (GMT) |
| commit | 00fb8edde480ac0ca6c935ccb95bbc43ea9525e7 (patch) | |
| tree | df017ece67b86c8a55a94959a39a818a6d7eb0fa /doc/reference/Library.xml | |
| parent | ae5053ffaf485d77c9ee37873169e3dd6be7b579 (diff) | |
| parent | e38f59cab5d40f09f15c5e65645aa2d8af165c66 (diff) | |
| download | SCons-00fb8edde480ac0ca6c935ccb95bbc43ea9525e7.zip SCons-00fb8edde480ac0ca6c935ccb95bbc43ea9525e7.tar.gz SCons-00fb8edde480ac0ca6c935ccb95bbc43ea9525e7.tar.bz2 | |
Merged scons/scons into default
Diffstat (limited to 'doc/reference/Library.xml')
| -rw-r--r-- | doc/reference/Library.xml | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/reference/Library.xml b/doc/reference/Library.xml index 5d87ee7..4021744 100644 --- a/doc/reference/Library.xml +++ b/doc/reference/Library.xml @@ -79,16 +79,16 @@ be generated (the rest will disappear!). <title>Linking With a Library</title> <programlisting> - env = Environment(CC = 'gcc', - LIBS = 'world') - env.Program('hello.c') +env = Environment(CC = 'gcc', + LIBS = 'world') +env.Program('hello.c') </programlisting> <literallayout> - % <userinput>scons</userinput> - gcc -c hello.c -o hello.o - gcc -c world.c -o world.o - gcc -o hello hello.o -lworld +% <userinput>scons</userinput> +gcc -c hello.c -o hello.o +gcc -c world.c -o world.o +gcc -o hello hello.o -lworld </literallayout> </section> @@ -97,20 +97,20 @@ be generated (the rest will disappear!). <title>Creating a Library</title> <programlisting> - env = Environment(CC = 'gcc', - LIBS = 'world') - env.Program('hello.c') - env.Library('world.c') +env = Environment(CC = 'gcc', + LIBS = 'world') +env.Program('hello.c') +env.Library('world.c') </programlisting> <literallayout> - % <userinput>scons</userinput> - 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 +% <userinput>scons</userinput> +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 </literallayout> </section> |
