endif
# global flags
-AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -I$(srcdir)/../src -I$(srcdir)/../ext @LADCCA_CFLAGS@ @FFTWLIB_CFLAGS@
-AM_LDFLAGS = -L../src -L../ext @LADCCA_LIBS@ -laubioext -laubio
+AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -I$(top_srcdir)/src -I$(top_srcdir)/ext @LADCCA_CFLAGS@ @FFTWLIB_CFLAGS@
+AM_LDFLAGS = -L$(top_builddir)/src -L$(top_builddir)/ext -laubioext -laubio @LADCCA_LIBS@
#AM_SOURCES = utils.c
# add your programs to this list
-AM_CFLAGS = -I$(srcdir)/../../src -I$(srcdir)/../../ext @LADCCA_CFLAGS@
-AM_LDFLAGS = -L../../src -L../../ext @LADCCA_LIBS@ -laubioext -laubio
-LDADD = @JACK_LIBS@
+AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/ext @LADCCA_CFLAGS@
+AM_LDFLAGS = -L$(top_builddir)/src -L$(top_builddir)/ext -laubioext -laubio @JACK_LIBS@ @LADCCA_LIBS@
bin_PROGRAMS = \
test-fft \
midi/midi_driver.h \
midi/midi_driver.c
-AM_CFLAGS = -I$(srcdir)/../src @SNDLIB_CFLAGS@ @JACK_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ @ALSA_CFLAGS@ @LADCCA_CFLAGS@
+AM_CFLAGS = -I$(top_srcdir)/src @SNDLIB_CFLAGS@ @JACK_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ @ALSA_CFLAGS@ @LADCCA_CFLAGS@
libaubioext_la_LIBADD = @SNDLIB_LIBS@ @JACK_LIBS@ @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @ALSA_LIBS@ @LADCCA_LIBS@ @LTLIBOBJS@
libaubioext_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
INCLUDES = -I$(top_srcdir)/src -I$(pdincludedir)
AM_CFLAGS = -DPD -fPIC -DPIC
-AM_LDFLAGS = -L../../src/.libs -laubio -export_dynamic -shared
+AM_LDFLAGS = -L$(top_builddir)/src/.libs -laubio -export_dynamic -shared
## Install the documentation.
-Wno-strict-aliasing
AM_CFLAGS = $(SWCFLAGS) -fPIC -DPIC \
- -I../../src -I$(srcdir)/../../src -I$(srcdir)/../../ext \
+ -I$(top_builddir)/src -I$(top_srcdir)/src -I$(top_srcdir)/ext \
-I/usr/include/python${PYTHON_VERSION} \
-I${prefix}/include/python${PYTHON_VERSION} \
-I/usr/include \
-I${prefix}/include
-AM_LDFLAGS = $(SWLDFLAGS) -L../../ext/.libs -laubioext -L../../src/.libs -laubio
+AM_LDFLAGS = $(SWLDFLAGS) \
+ -L$(top_builddir)/ext/.libs -laubioext \
+ -L$(top_builddir)/src/.libs -laubio
aubio_wrap.c:
- $(SWIG) -outdir . -o aubio_wrap.c -python $(srcdir)/../../swig/aubio.i
+ $(SWIG) -outdir . -o aubio_wrap.c -python $(top_srcdir)/swig/aubio.i
_aubiowrapper.so: aubio_wrap.c
$(CC) $(AM_CFLAGS) $(CFLAGS) $(NOWARN_CFLAGS) -c aubio_wrap.c