Add examples of using Library, LIBS, and LIBPATH.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 17 Jan 2002 22:18:06 +0000 (22:18 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 17 Jan 2002 22:18:06 +0000 (22:18 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@212 fdb21ef1-2011-0410-befe-b5e4ea1792b1

doc/man/scons.1
src/CHANGES.txt

index 28ad151cedcf7fbb927ff7f8fa5ffe6cb6acffb5..2603adad756ed639a40e12d90273893f669d9dbc 100644 (file)
@@ -1299,6 +1299,21 @@ env = Environment(CPPPATH = ['include1', 'include2'])
 env.Program(target = 'foo', source = 'foo.c')
 .EE
 
+.SS Building a Library
+
+.ES
+env = Environment()
+env.Library(target = 'mylib', source = 'l1.c l2.c')
+.EE
+
+.SS Linking a Local Library Into a Program
+
+.ES
+env = Environment(LIBS = 'mylib', LIBPATH = ['.'])
+env.Library(target = 'mylib', source = 'l1.c l2.c')
+env.Program(target = 'prog', source = 'p1.c p2.c')
+.EE
+
 .SS Defining Your Own Builder Object
 
 You
index bfc275ff18f7209a7d71340d95caa5960abb408c..6ac5948094bf80c7dbde5a508a6c537090527a30 100644 (file)
@@ -33,6 +33,8 @@ RELEASE 0.04 -
 
   - Removed the Wrapper class between Nodes and Walkers.
 
+  - Add examples using Library, LIBS, and LIBPATH.
+
 
 
 RELEASE 0.03 - Fri, 11 Jan 2002 01:09:30 -0600