diff --git a/debian/rules b/debian/rules index 33e9e2f..b154611 100755 --- a/debian/rules +++ b/debian/rules @@ -1,14 +1,16 @@ #!/usr/bin/make -f +export FS_INCLUDES=/usr/include/freeswitch DH_VERBOSE = 1 -export ADD_CFLAGS=-fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic +export INCLUDES=-I/usr/include -Ibcg729/include -I$(FS_INCLUDES) +export ADD_CFLAGS=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic $(INCLUDES) export ADD_LIBS=-lm -lbcg729 # main packaging script based on dh7 syntax %: - dh $@ + dh $@ .stamp-build: - fsxs compile --add-cflags="$(ADD_CFLAGS)" mod_bcg729.c + fsxs compile --add-cflags="$(ADD_CFLAGS)" mod_bcg729.c fsxs link --add-libs="$(ADD_LIBS)" mod_bcg729.so mod_bcg729.o override_dh_auto_build: .stamp-build @@ -19,4 +21,3 @@ override_dh_auto_install: override_dh_auto_clean: rm -f mod_bcg729.o rm -f mod_bcg729.so -