diff -r 64e456ab823d -r a23b5089b9c3 ccdemos/SConscript --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ccdemos/SConscript Tue Apr 08 01:05:12 2008 +0200 @@ -0,0 +1,16 @@ +Import('objs') + +env = Environment(CPPPATH = ['.','#include']) + +import os +SDL_CCFLAGS = os.popen('sdl-config --cflags').read() +SDL_LDFLAGS = os.popen('sdl-config --libs').read() +sdlenv = env.Clone() +sdlenv.Append(LINKFLAGS=SDL_LDFLAGS, CCFLAGS=SDL_CCFLAGS) + +image_obj = env.Object('image.c', CC="$CXX") +sdlenv.Program(['realtime.cc']+objs) +sdlenv.Program(['realtime_bunny.cc']+objs) +sdlenv.Program(['realtime_dragon.cc']+objs) +sdlenv.Program(['spheres_shadow.cc']+objs+image_obj, LIBS="png") +sdlenv.Program(['textures.cc']+objs+image_obj, LIBS="png")