--- Makefile.orig Sat Jun 12 17:31:53 2004 +++ Makefile Fri Jun 18 19:03:56 2004 @@ -41,6 +41,9 @@ APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi) APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi) +APPS+=$(shell if [ -f /usr/include/spandsp.h ]; then echo "app_rxfax.so app_txfax.so app_dtmftotext.so" ; fi) +APPS+=$(shell if [ -f /usr/local/include/spandsp.h ]; then echo "app_rxfax.so app_txfax.so app_dtmftotext.so" ; fi) + CFLAGS+=-fPIC ifeq ($(USE_POSTGRES_VM_INTERFACE),1) @@ -52,6 +55,25 @@ endif all: $(APPS) + +app_rxfax.so: app_rxfax.o + $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff + +app_rxfax.o: app_rxfax.c + gcc -D_GNU_SOURCE -O2 -g -Iinclude -I../include -c -o app_rxfax.o app_rxfax.c + +app_txfax.so: app_txfax.o + $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff + +app_txfax.o: app_txfax.c + gcc -D_GNU_SOURCE -O2 -g -Iinclude -I../include -c -o app_txfax.o app_txfax.c + +app_dtmftotext.so: app_dtmftotext.o + $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff + +app_dtmftotext.o: app_dtmftotext.c + gcc -D_GNU_SOURCE -O2 -g -Iinclude -I../include -c -o app_dtmftotext.o app_dtmftotext.c + clean: rm -f *.so *.o look .depend