From: stevenknight Date: Thu, 17 Jan 2002 22:18:06 +0000 (+0000) Subject: Add examples of using Library, LIBS, and LIBPATH. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be468e99252c2899dcd432d7fe080168608a2c90;p=scons.git Add examples of using Library, LIBS, and LIBPATH. git-svn-id: http://scons.tigris.org/svn/scons/trunk@212 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/doc/man/scons.1 b/doc/man/scons.1 index 28ad151c..2603adad 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -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 diff --git a/src/CHANGES.txt b/src/CHANGES.txt index bfc275ff..6ac59480 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -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