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