# build examples # loop over all *.c filenames in examples to build them all for target_name in bld.path.ant_glob('*.c').split(): # ignore aubioonset.c and utils.c if target_name in ['utils.c']: continue this_target = bld.new_task_gen(features = 'cc cprogram') this_target.includes = '. ../src ../ext' this_target.uselib = ['LASH'] this_target.uselib_local = ['aubio', 'aubioext'] this_target.defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"'] this_target.defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"'] # add utils.c as source file this_target.source = [target_name, 'utils.c'] # program name is filename.c without the .c this_target.target = target_name.split('.')[0]