added readme for cth branch/fork
[asdcplib-cth.git] / cscript
diff --git a/cscript b/cscript
index a1e6e85d6b19adf457cc09b9542b21703642de60..d97e1d9927a6db00640db50c54eb222932e9d206 100644 (file)
--- a/cscript
+++ b/cscript
@@ -1,6 +1,12 @@
 
 def build(target, options):
-    cmd = './configure --prefix=%s ' % target.directory
+    cmd = './waf configure --prefix=%s ' % target.directory
+    if target.platform == 'linux':
+        cmd += ' --static'
+    elif target.platform == 'windows':
+        cmd += ' --target-windows'
+
+    target.append_with_space('LIBS', '-lboost_system')
+    target.append_with_space('LIBS', '-lboost_filesystem')
     target.command(cmd)
-    target.command('make -j8 V=1')
-    target.command('make install')
+    target.command('./waf build install')