summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index d50e840..3790557 100644
--- a/SConstruct
+++ b/SConstruct
@@ -17,6 +17,7 @@ if env['PLATFORM'] == 'darwin':
env.Append(LIBPATH = ['/opt/local/lib'])
env.Append(FRAMEWORKS = ['SDL', 'SDL_image', 'Cocoa', 'OpenGL', 'AppKit'])
else:
+ env.Append(CPPPATH = ['.'])
env.Append(LIBS = ['GL', 'GLU', 'SDL', 'SDL_image'])
env.ParseConfig('sdl-config --cflags --libs')
env.ParseConfig('pkg-config --cflags --libs ftgl')
@@ -35,7 +36,7 @@ env.Append(LIBS = ['wriggle'])
env.Append(LIBPATH = ['wriggle'])
env.Library('engine/engine', engine)
-env.Append(LIBS = ['engine'])
+env.Prepend(LIBS = ['engine'])
env.Append(LIBPATH = ['engine'])
env.Program('foo', ['main.cpp'])