[Asterisk-Users] Re: spandsp patch help
Stefan Tichy
asterisk at pi4tel.de
Mon Sep 27 08:13:27 MST 2004
On Sun, Sep 26, 2004 at 08:42:59AM -0600, Rich Adamson wrote:
> Patching the Makefile by hand followed by 'make clean' and 'make install'
> results in:
> make[1]: Entering directory `/usr/src/asterisk/apps'
> Makefile:75: *** missing separator. Stop.
You may have used space characters instead of a tab.
--
Stefan Tichy <asterisk at pi4tel.de>
-------------- next part --------------
--- Makefile 2004-09-27 15:27:40.532272907 +0200
+++ Makefile.Fax 2004-09-27 15:30:11.911752541 +0200
@@ -42,6 +42,7 @@
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/osp/osp.h ]; then echo "app_osplookup.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
@@ -64,6 +65,15 @@
app_rpt.so : app_rpt.o
$(CC) $(SOLINK) -o $@ $< -ltonezone
+app_rxfax.so : app_rxfax.o
+ $(CC) $(SOLINK) -lspandsp -ltiff -o $@ $<
+
+app_txfax.so : app_txfax.o
+ $(CC) $(SOLINK) -lspandsp -ltiff -o $@ $<
+
+app_dtmftotext.so : app_dtmftotext.o
+ $(CC) $(SOLINK) -lspandsp -ltiff -o $@ $<
+
install: all
for x in $(APPS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so
More information about the asterisk-users
mailing list