patch file cleanup... ick.. kaloz you owe me some love
[openwrt/svn-archive/archive.git] / net / asterisk / patches / 011-Makefile-cdr.patch
1 diff -Nru asterisk-1.2.14.org/cdr/Makefile asterisk-1.2.14/cdr/Makefile
2 --- asterisk-1.2.14.org/cdr/Makefile 2006-11-16 21:29:28.000000000 +0100
3 +++ asterisk-1.2.14/cdr/Makefile 2006-12-27 09:10:57.000000000 +0100
4 @@ -111,6 +111,9 @@
5 MODS+=cdr_sqlite.so
6 endif
7
8 +CFLAGS += $(EXTRA_CFLAGS)
9 +MODS += $(EXTRA_CDR_MODULES)
10 +
11 all: depend $(MODS)
12
13 install: all
14 @@ -127,16 +130,19 @@
15 endif
16
17 cdr_odbc.so: cdr_odbc.o
18 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc $(MLFLAGS)
19 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lodbc $(MLFLAGS)
20
21 cdr_tds.so: cdr_tds.o
22 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -ltds $(MLFLAGS)
23 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -ltds $(MLFLAGS)
24 +
25 +cdr_mysql.so: cdr_mysql.o
26 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lmysqlclient -lz $(MLFLAGS)
27
28 cdr_pgsql.so: cdr_pgsql.o
29 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lpq -lz $(MLFLAGS)
30 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lpq -lz $(MLFLAGS)
31
32 cdr_sqlite.so: cdr_sqlite.o
33 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lsqlite $(MLFLAGS)
34 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lsqlite $(MLFLAGS)
35
36 depend: .depend
37