diff options
author | carmen rocco <ix9@users.sourceforge.net> | 2005-04-12 02:13:01 +0000 |
---|---|---|
committer | carmen rocco <ix9@users.sourceforge.net> | 2005-04-12 02:13:01 +0000 |
commit | 0e81f5962ada8a912c9ac305409fc99b8f66eb4c (patch) | |
tree | 5b18abe8e83fc95861f97f52a8fcc9bfef57ecd9 | |
parent | d583974cf3a1d47664fcf9a8ef46d5f03cbd0ef3 (diff) |
round one, existing build system sources only
svn path=/trunk/; revision=2713
-rw-r--r-- | externals/build/SConstruct | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/externals/build/SConstruct b/externals/build/SConstruct new file mode 100644 index 00000000..204b812a --- /dev/null +++ b/externals/build/SConstruct @@ -0,0 +1,17 @@ +import glob +import os +import re +location = "/usr/local/lib/pd" +IncludePaths = Split(location + '/src /usr/local/include . include') + +Source = glob.glob('src/*.c') +extras = glob.glob('*.pd_linux') +helpfiles = glob.glob('doc/*.pd') + +env = Environment(CPPPATH = IncludePaths, CPPDEFINES=['PD', 'UNIX'], SHLIBPREFIX = '', SHLIBSUFFIX = '.pd_linux', CCFLAGS = '-pipe -O2') + +env.Alias('install', env.Install(os.path.join(location, 'extra'), extras)) +env.Alias('install', env.Install(os.path.join(location, 'doc/5.reference'), helpfiles)) + +for extra in Source: + env.SharedLibrary(re.sub("\.c$","",os.path.basename(extra)), extra) |