summaryrefslogtreecommitdiff
path: root/SConstruct
blob: 325abe5618b6c59874ff268921ef0fab53944672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
AddOption('--release', action = 'store_true')

env = Environment(CPPPATH = ['.'], CCFLAGS = ['-pthread'], LINKFLAGS = ['-pthread'])

conf = Configure(env)
conf.CheckLib('boost_system')
env = conf.Finish()

if GetOption('release'):
	env.Append(CCFLAGS = ['-O2'])
else:
	env.Append(CCFLAGS = ['-Wall', '-g'])

env.Program('audistd', Glob('*.cpp'))

# vim: syn=python