[Asterisk-Users] RE: RE: Spandsp
Tomislav Parcina
tparcina at lama.hr
Fri Jan 13 04:28:08 MST 2006
In article <000501c61825$67ed7670$cf42e3c1 at pitagora.it>,
dviggiani at tiscali.it says...
> I solved with this simple makefile:
>
> all: app_rxfax.so app_txfax.so
>
> app_rxfax.so: app_rxfax.c
> gcc -shared -Xlinker -x -O2 -D_GNU_SOURCE -Iinclude -I../include -o
> $@ app_rxfax.c -lspandsp -ltiff
>
> app_txfax.so: app_txfax.c
> gcc -shared -Xlinker -x -O2 -D_GNU_SOURCE -Iinclude -I../include -o
> $@ app_txfax.c -lspandsp -ltiff
>
> but as usual cut&paste is problematic.
When I try to patch with this one I get error message. For me, this
patch seams to work (I don't get error message).
I have send mail to Steve Underwood, hopefully he will be able to help
me.
--- Makefile.orig 2006-01-11 18:39:21.000000000 +0800
+++ Makefile 2006-01-11 18:40:46.000000000 +0800
@@ -52,10 +52,14 @@
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h
$(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
APPS+=app_osplookup.so
endif
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/spandsp.h
$(CROSS_COMPILE_TARGET)/usr/include/spandsp.h),)
+APPS+=app_rxfax.so app_txfax.so
+endif
+
ifeq ($(findstring BSD,${OSARCH}),BSD)
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L
$(CROSS_COMPILE_TARGET)/usr/local/lib
endif
CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
@@ -100,10 +104,16 @@
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so
app_curl.so: app_curl.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)
+app_rxfax.so : app_rxfax.o
+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
+
+app_txfax.so : app_txfax.o
+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
+
app_sql_postgres.o: app_sql_postgres.c
$(CC) -pipe -I/usr/local/pgsql/include $(CFLAGS) -c -o
app_sql_postgres.o app_sql_postgres.c
app_sql_postgres.so: app_sql_postgres.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -
L/usr/local/pgsql/lib -lpq
--
Tomislav Parcina
name.surname at email.t-com.hr
More information about the asterisk-users
mailing list