all: _aubiowrapper.so
# removed -Wall -Wmissing-prototypes -Wmissing-declarations
-SWCFLAGS = -DJACK_SUPPORT -Werror -Wno-char-subscripts -Wno-unknown-pragmas \
+CFLAGS = -DJACK_SUPPORT -Werror -Wno-char-subscripts \
+ -Wno-unknown-pragmas $(SWCFLAGS) \
-I../../src -I../../ext \
-I/usr/include/python${PYTHON_VERSION} \
-I${prefix}/include/python${PYTHON_VERSION} \
-I/usr/include \
-I${prefix}/include
-SWLDFLAGS = -shared -L../../ext/.libs -laubioext -L../../src/.libs -laubio
+LDFLAGS = $(SWLDFLAGS) -L../../ext/.libs -laubioext -L../../src/.libs -laubio
aubio_wrap.c:
$(SWIG) -outdir . -o aubio_wrap.c -python ../../swig/aubio.i
_aubiowrapper.so: aubio_wrap.c
- $(CC) $(SWCFLAGS) -c aubio_wrap.c
- $(CC) $(SWLDFLAGS) aubio_wrap.o -o _aubiowrapper.so
+ $(CC) $(CFLAGS) -c aubio_wrap.c
+ $(CC) $(LDFLAGS) aubio_wrap.o -o _aubiowrapper.so