src/SConscript
branchpyrit
changeset 63 440e1ae80459
parent 61 7006036eb0db
child 65 242839c6d27d
--- a/src/SConscript	Wed Apr 09 11:35:59 2008 +0200
+++ b/src/SConscript	Wed Apr 09 16:51:14 2008 +0200
@@ -1,11 +1,11 @@
-env = Environment(CPPPATH = '#include')
+Import('env')
+env.Append(CPPPATH = '#include')
 
 import os
 PY_CCFLAGS = os.popen('python-config --includes').read()
 PY_LDFLAGS = os.popen('python-config --libs').read()
 pyenv = env.Clone()
 pyenv.Append(LINKFLAGS=PY_LDFLAGS, CCFLAGS=PY_CCFLAGS)
-env.Append()
 
 sources = [
 	'raytracer.cc', 'scene.cc', 'sampler.cc',
@@ -24,4 +24,10 @@
 
 lib = env.StaticLibrary('pyrit', objs)
 
+env.Alias('objs', objs)
+env.Alias('static-lib', lib)
+env.Alias('shared-objs', shared_objs)
+env.Alias('python-module', pymodule)
+env.Alias('libs', ['static-lib', 'python-module'])
+
 Return('lib pymodule')