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")