[Asterisk-cvs] asterisk/cdr Makefile,1.14,1.15

markster at lists.digium.com markster at lists.digium.com
Mon Dec 1 17:55:29 CST 2003


Update of /usr/cvsroot/asterisk/cdr
In directory mongoose.digium.com:/tmp/cvs-serv2352/cdr

Modified Files:
	Makefile 
Log Message:
Merge BK's unix ODBC driver


Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr/Makefile,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- Makefile	1 Nov 2003 11:26:28 -0000	1.14
+++ Makefile	2 Dec 2003 00:21:53 -0000	1.15
@@ -16,6 +16,12 @@
 CFLAGS+=-fPIC
 
 #
+# unixODBC stuff...
+#
+MODS+=$(shell if [ -f "/usr/include/odbcinst.h" ]; then echo "cdr_unixodbc.so"; fi)
+
+
+#
 # PGSQL stuff...  Autoconf anyone??
 #
 MODS+=$(shell if [ -d /usr/local/pgsql/include ] || [ -d /usr/include/pgsql ] || [ -d /usr/local/include/pgsql ] || [ -d /opt/pgsql/include ] || [ -f /usr/include/libpq-fe.h ] ; then echo "cdr_pgsql.so"; fi)
@@ -45,6 +51,9 @@
 ifneq ($(wildcard .depend),)
 include .depend
 endif
+
+cdr_unixodbc.so: cdr_unixodbc.o
+	$(CC) $(SOLINK) -o $@ $< -lodbc -I/usr/include $(MLFLAGS)
 
 cdr_pgsql.so: cdr_pgsql.o
 	$(CC) $(SOLINK) -o $@ $< -lpq -lz $(MLFLAGS)




More information about the svn-commits mailing list