diff -r e3a2a5b26abb -r 6f7fe14782c2 ccdemos/SConscript --- a/ccdemos/SConscript Thu Apr 24 18:12:32 2008 +0200 +++ b/ccdemos/SConscript Sun Apr 27 09:44:49 2008 +0200 @@ -1,12 +1,13 @@ Import('env lib') -env.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib') -env.Prepend(LIBS=['pyrit','png']) +myenv = env.Clone() +myenv.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib') +myenv.Prepend(LIBS=['pyrit','png']) -sdlenv = env.Clone() +sdlenv = myenv.Clone() sdlenv.ParseConfig('sh sdl-config --cflags --libs') l = [] -image_obj = env.Object('image.c', CC="$CXX") +image_obj = myenv.Object('image.c', CC="$CXX") l.append( image_obj ) l.append( sdlenv.Program(['realtime.cc']) ) l.append( sdlenv.Program(['realtime_bunny.cc']) ) @@ -14,4 +15,4 @@ l.append( sdlenv.Program(['spheres_shadow.cc']+image_obj) ) l.append( sdlenv.Program(['textures.cc']+image_obj) ) -env.Alias('cc-demos', l) +myenv.Alias('cc-demos', l)