- Timestamp:
- Oct 17, 2009, 12:43:00 AM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 858cfa7
- Parents:
- 6107f4c
- Location:
- examples
- Files:
-
- 3 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
examples/Makefile.am
r6107f4c r740f06b 1 1 # global flags 2 AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -I$(top_srcdir)/src -I$(top_srcdir)/ext @AUBIO_CFLAGS@ @LASH_CFLAGS@ @FFTWLIB_CFLAGS@3 AM_LDFLAGS = -L$(top_builddir)/src - L$(top_builddir)/ext -laubioext -laubio @LASH_LIBS@2 AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -I$(top_srcdir)/src @AUBIO_CFLAGS@ @LASH_CFLAGS@ @SNDFILE_CFLAGS@ @JACK_CFLAGS@ 3 AM_LDFLAGS = -L$(top_builddir)/src -laubio @LASH_LIBS@ 4 4 5 5 # add your programs to this list … … 13 13 aubioquiet 14 14 15 EXTRA_DIST = utils.h 15 EXTRA_DIST = utils.h sndfileio.h jackio.h 16 16 17 17 # optionally add sources file for these programs 18 aubioonset_SOURCES = aubioonset.c utils.c 19 aubionotes_SOURCES = aubionotes.c utils.c 20 aubiotrack_SOURCES = aubiotrack.c utils.c 21 aubioquiet_SOURCES = aubioquiet.c utils.c 22 aubiomfcc_SOURCES = aubiomfcc.c utils.c 18 COMMON_SOURCE_FILES = sndfileio.c jackio.c utils.c 19 aubioonset_SOURCES = aubioonset.c $(COMMON_SOURCE_FILES) 20 aubionotes_SOURCES = aubionotes.c $(COMMON_SOURCE_FILES) 21 aubiotrack_SOURCES = aubiotrack.c $(COMMON_SOURCE_FILES) 22 aubioquiet_SOURCES = aubioquiet.c $(COMMON_SOURCE_FILES) 23 aubiomfcc_SOURCES = aubiomfcc.c $(COMMON_SOURCE_FILES) 23 24 24 aubioonset_LDADD = @ JACK_LIBS@25 aubionotes_LDADD = @ JACK_LIBS@26 aubiotrack_LDADD = @ JACK_LIBS@27 aubioquiet_LDADD = @ JACK_LIBS@28 aubiomfcc_LDADD = @ JACK_LIBS@25 aubioonset_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@ 26 aubionotes_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@ 27 aubiotrack_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@ 28 aubioquiet_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@ 29 aubiomfcc_LDADD = @SNDFILE_LIBS@ @JACK_LIBS@ -
examples/utils.h
r6107f4c r740f06b 27 27 #include <string.h> /* for strcmp */ 28 28 #include <aubio.h> 29 #include <aubioext.h> 29 #include "sndfileio.h" 30 #ifdef HAVE_JACK 31 #include "jackio.h" 32 #endif /* HAVE_JACK */ 30 33 31 34 #ifdef HAVE_C99_VARARGS_MACROS -
examples/wscript_build
r6107f4c r740f06b 4 4 defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"'] 5 5 6 extra_source = ['utils.c', 'sndfileio.c', 'jackio.c'] 7 6 8 bld.new_task_gen(features = 'cc', 7 includes = '../src ../ext',8 source = 'utils.c',9 includes = '../src', 10 source = extra_source, 9 11 uselib = ['LASH'], 10 12 defines = defines, 11 target = 'utils ')13 target = 'utils_io') 12 14 13 15 # loop over all *.c filenames in examples to build them all 14 16 for target_name in bld.path.ant_glob('*.c').split(): 15 17 # ignore utils.c 16 if target_name in ['utils.c']: continue18 if target_name in extra_source: continue 17 19 bld.new_task_gen(features = 'cc cprogram', 18 add_objects = 'utils ',19 includes = '../src ../ext',20 add_objects = 'utils_io', 21 includes = '../src', 20 22 defines = defines, 21 uselib = ['LASH' ],22 uselib_local = ['aubio' , 'aubioext'],23 uselib = ['LASH', 'JACK', 'SNDFILE'], 24 uselib_local = ['aubio'], 23 25 source = target_name, 24 26 # program name is filename.c without the .c
Note: See TracChangeset
for help on using the changeset viewer.