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')