ChangeLog: update for 0.4.4
[aubio.git] / tests / wscript_build
index 04bbf9a..45e83b8 100644 (file)
@@ -1,17 +1,19 @@
 # vim:set syntax=python:
 
-for target_name in ctx.path.ant_glob('src/**/*.c'):
-    uselib = []
-    includes = ['../src', '.']
-    extra_source = []
+import os.path
 
+uselib = ['aubio']
+
+includes = ['../src', '.']
+programs_sources = ctx.path.ant_glob('src/**/*.c')
+
+for source_file in programs_sources:
+    target = os.path.basename(os.path.splitext(str(source_file))[0])
     bld(features = 'c cprogram test',
-            lib = 'm',
-            uselib = uselib,
-            source = [target_name] + extra_source,
-            target = str(target_name).split('.')[0],
+            source = source_file,
+            target = target,
             includes = includes,
+            use = uselib,
             install_path = None,
             defines = 'AUBIO_UNSTABLE_API=1',
-            cflags = ['-g'],
-            use = 'aubio')
+       )