patch file cleanup... ick.. kaloz you owe me some love
[openwrt/svn-archive/archive.git] / net / asterisk / patches / 017-Makefile-res.patch
1 diff -Nru asterisk-1.2.14.org/res/Makefile asterisk-1.2.14/res/Makefile
2 --- asterisk-1.2.14.org/res/Makefile 2005-11-29 19:24:39.000000000 +0100
3 +++ asterisk-1.2.14/res/Makefile 2006-12-27 09:18:45.000000000 +0100
4 @@ -55,7 +55,7 @@
5 CFLAGS+=
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 CFLAGS+=-DZAPATA_MOH
11 endif
12 endif # WITHOUT_ZAPTEL
13 @@ -69,6 +69,9 @@
14 CFLAGS+=-DOPENSSL_NO_KRB5 -fPIC
15 endif
16
17 +CFLAGS += $(EXTRA_CFLAGS)
18 +MODS += $(EXTRA_RES_MODULES)
19 +
20 all: depend $(MODS)
21
22 install: all
23 @@ -89,7 +92,7 @@
24 fi
25
26 res_crypto.so: res_crypto.o
27 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CRYPTO_LIBS)
28 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) $(CRYPTO_LIBS)
29
30 clean:
31 rm -f *.so *.o .depend
32 @@ -109,6 +112,12 @@
33 res_config_odbc.so: res_config_odbc.o
34 $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} ${CYG_RES_CONFIG_ODBC_LIB}
35
36 +res_config_mysql.so: res_config_mysql.o
37 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lmysqlclient -lz
38 +
39 +res_sqlite.so: res_sqlite.o
40 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lsqlite
41 +
42 ifneq ($(wildcard .depend),)
43 include .depend
44 endif