aboutsummaryrefslogtreecommitdiff
path: root/externals/build
diff options
context:
space:
mode:
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')