summaryrefslogtreecommitdiff
blob: 26e5aa64c101247831eb8147765bb720036898d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/SConstruct
+++ b/SConstruct
@@ -8,8 +8,8 @@
 
 print "Use 'scons -h' for help"
 
-prefix = '/usr/local/games'
-bin = '/usr/local/bin'
+prefix = 'data'
+bin = 'src'
 if sys.platform == 'win32':
 	try:
 		Execute(Mkdir('gen'))
@@ -46,7 +46,12 @@
 # print "Install directory = $prefix"
 # print "Directory where symlinked binary will go = $bin"
 
-flags = [ '-g3', '-Wall', '-fno-rtti', '-Woverloaded-virtual', '-O2', '-DINSTALL_DIR=\\\"$prefix\\\"' ];
+SConsignFile()
+env.Replace(CXX = os.environ['CXX'])
+if os.environ.get('CXXFLAGS'):
+	env.Replace(CPPFLAGS = os.environ['CXXFLAGS'])
+
+flags = [ '-Wall', '-fno-rtti', '-Woverloaded-virtual' ];
 env.Append( CCFLAGS = flags, CPPPATH = [ "build" ] )
 
 # SConscript( 'src/SConscript', build_dir='build', exports = 'env' );