aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarmen rocco <ix9@users.sourceforge.net>2005-04-12 02:13:01 +0000
committercarmen rocco <ix9@users.sourceforge.net>2005-04-12 02:13:01 +0000
commit0e81f5962ada8a912c9ac305409fc99b8f66eb4c (patch)
tree5b18abe8e83fc95861f97f52a8fcc9bfef57ecd9
parentd583974cf3a1d47664fcf9a8ef46d5f03cbd0ef3 (diff)
round one, existing build system sources only
svn path=/trunk/; revision=2713
-rw-r--r--externals/build/SConstruct17
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)