add missing dependency
[openwrt/svn-archive/archive.git] / net / asterisk / patches / 010-Makefile-apps.patch
1 diff -Nru asterisk-1.2.14.org/apps/Makefile asterisk-1.2.14/apps/Makefile
2 --- asterisk-1.2.14.org/apps/Makefile 2006-04-30 15:38:22.000000000 +0200
3 +++ asterisk-1.2.14/apps/Makefile 2006-12-27 09:08:57.000000000 +0100
4 @@ -45,7 +45,7 @@
5 #APPS+=app_rpt.so
6
7 ifndef WITHOUT_ZAPTEL
8 -ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),)
9 +ifneq ($(wildcard $(STAGING_DIR)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),)
10 APPS+=app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so app_page.so
11 endif
12 endif # WITHOUT_ZAPTEL
13 @@ -83,6 +83,9 @@
14 #CFLAGS+=-DEXTENDED_ODBC_STORAGE
15 # See doc/README.odbcstorage for more information
16
17 +CFLAGS += $(EXTRA_CFLAGS)
18 +APPS += $(EXTRA_APP_MODULES)
19 +
20 all: $(APPS)
21
22 clean:
23 @@ -102,14 +105,17 @@
24 app_curl.so: app_curl.o
25 $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)
26
27 +app_sql_mysql.so: app_sql_mysql.o
28 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lmysqlclient
29 +
30 app_sql_postgres.o: app_sql_postgres.c
31 $(CC) -pipe -I$(CROSS_COMPILE_TARGET)/usr/local/pgsql/include -I$(CROSS_COMPILE_TARGET)/usr/include/postgresql $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c
32
33 app_sql_postgres.so: app_sql_postgres.o
34 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L/usr/local/pgsql/lib -lpq
35 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lpq
36
37 app_sql_odbc.so: app_sql_odbc.o
38 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc
39 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lodbc
40
41 ifeq (SunOS,$(shell uname))
42 app_chanspy.so: app_chanspy.o