summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct16
1 files changed, 16 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
new file mode 100644
index 0000000..325abe5
--- /dev/null
+++ b/SConstruct
@@ -0,0 +1,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