aboutsummaryrefslogtreecommitdiff
path: root/externals/build
diff options
context:
space:
mode:
authorcarmen rocco <ix9@users.sourceforge.net>2005-04-12 06:21:21 +0000
committercarmen rocco <ix9@users.sourceforge.net>2005-04-12 06:21:21 +0000
commit5ebbdeb41f757eec933c72d153fc08a8e9574e17 (patch)
tree3114b918874a831a8ef6668cdb390fd2ad643399 /externals/build
parent0e81f5962ada8a912c9ac305409fc99b8f66eb4c (diff)
build grill/ miXed/ zexy/
svn path=/trunk/; revision=2715
Diffstat (limited to 'externals/build')
-rw-r--r--externals/build/SConstruct21
1 files changed, 10 insertions, 11 deletions
diff --git a/externals/build/SConstruct b/externals/build/SConstruct
index 204b812a..56c6d9d9 100644
--- a/externals/build/SConstruct
+++ b/externals/build/SConstruct
@@ -1,17 +1,16 @@
import glob
import os
import re
-location = "/usr/local/lib/pd"
-IncludePaths = Split(location + '/src /usr/local/include . include')
+prefix = "/usr/local/lib/pd"
-Source = glob.glob('src/*.c')
-extras = glob.glob('*.pd_linux')
-helpfiles = glob.glob('doc/*.pd')
+env = Environment(CPPPATH = Split(prefix + '/src /usr/local/include . src'), CPPDEFINES=['PD', 'UNIX'], SHLIBPREFIX = '', SHLIBSUFFIX = '.pd_linux', CCFLAGS = '-pipe -O2')
-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:
+# C sources in src/
+for extra in glob.glob('src/*.c'):
env.SharedLibrary(re.sub("\.c$","",os.path.basename(extra)), extra)
+env.Alias('install', env.Install(os.path.join(prefix, 'extra'), glob.glob('*.pd_linux')))
+env.Alias('install', env.Install(os.path.join(prefix, 'doc/5.reference'), glob.glob('doc/*.pd')))
+
+# libraries
+for subdir in Split('../grill ../miXed ../zexy'):
+ SConscript (subdir + '/SConscript')