summaryrefslogtreecommitdiffstats
path: root/doc/reference/Library.xml
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-10-06 15:04:19 (GMT)
committerDirk Baechle <dl9obn@darc.de>2013-10-06 15:04:19 (GMT)
commite2d8d87c5911067374d0b3b5be562c4ce2dddcce (patch)
tree2ee5b8a387b880e61a23a7abda1a152fead7af00 /doc/reference/Library.xml
parent43f296c7c2a350de0c59a442e566c165420803e3 (diff)
downloadSCons-e2d8d87c5911067374d0b3b5be562c4ce2dddcce.zip
SCons-e2d8d87c5911067374d0b3b5be562c4ce2dddcce.tar.gz
SCons-e2d8d87c5911067374d0b3b5be562c4ce2dddcce.tar.bz2
- left-aligned all code examples in documentation
- accordingly updated the generated files, containing example output
Diffstat (limited to 'doc/reference/Library.xml')
-rw-r--r--doc/reference/Library.xml36
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>