|      1 Import('lib') |      1 Import('env lib') | 
|      2  |      2 env.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib', LIBS='pyrit') | 
|      3 env = Environment(CPPPATH = ['.','#include'], LIBPATH='#build/lib', LIBS='pyrit') |         | 
|      4  |      3  | 
|      5 import os |      4 import os | 
|      6 SDL_CCFLAGS = os.popen('sdl-config --cflags').read() |      5 SDL_CCFLAGS = os.popen('sdl-config --cflags').read() | 
|      7 SDL_LDFLAGS = os.popen('sdl-config --libs').read() |      6 SDL_LDFLAGS = os.popen('sdl-config --libs').read() | 
|      8 sdlenv = env.Clone() |      7 sdlenv = env.Clone() | 
|      9 sdlenv.Append(LINKFLAGS=SDL_LDFLAGS, CCFLAGS=SDL_CCFLAGS) |      8 sdlenv.Append(LINKFLAGS=SDL_LDFLAGS, CCFLAGS=SDL_CCFLAGS) | 
|     10  |      9  | 
|         |     10 l = [] | 
|     11 image_obj = env.Object('image.c', CC="$CXX") |     11 image_obj = env.Object('image.c', CC="$CXX") | 
|     12 sdlenv.Program(['realtime.cc']) |     12 l.append( image_obj ) | 
|     13 sdlenv.Program(['realtime_bunny.cc']) |     13 l.append( sdlenv.Program(['realtime.cc']) ) | 
|     14 sdlenv.Program(['realtime_dragon.cc']) |     14 l.append( sdlenv.Program(['realtime_bunny.cc']) ) | 
|     15 sdlenv.Program(['spheres_shadow.cc']+image_obj, LIBS="$LIBS:png") |     15 l.append( sdlenv.Program(['realtime_dragon.cc']) ) | 
|     16 sdlenv.Program(['textures.cc']+image_obj, LIBS="$LIBS:png") |     16 l.append( sdlenv.Program(['spheres_shadow.cc']+image_obj, LIBS="$LIBS:png") ) | 
|         |     17 l.append( sdlenv.Program(['textures.cc']+image_obj, LIBS="$LIBS:png") ) | 
|         |     18  | 
|         |     19 env.Alias('cc-demos', l) |