samples: Canonicalize app names in extensions.conf.sample.
[asterisk/asterisk.git] / cdr / Makefile
old mode 100755 (executable)
new mode 100644 (file)
index 754d442..865bb3f
@@ -1,40 +1,20 @@
 #
-# Asterisk -- A telephony toolkit for Linux.
-# 
-# Makefile for CDR backends (dynamically loaded)
+# Asterisk -- An open source telephony toolkit.
 #
-# Copyright (C) 1999, Mark Spencer
+# Makefile for CDR backends
 #
-# Mark Spencer <markster@linux-support.net>
+# Copyright (C) 1999-2006, Digium, Inc.
 #
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
 
-MODS=cdr_csv.so
+-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
 
-CFLAGS+=
+MODULE_PREFIX=cdr
+MENUSELECT_CATEGORY=CDR
+MENUSELECT_DESCRIPTION=Call Detail Recording
 
-#
-# MySQL stuff...  Autoconf anyone??
-#
-MODS+=$(shell if [ -d /usr/include/mysql ] || [ -d /usr/local/include/mysql ]; then echo "cdr_mysql.so"; fi)
-CFLAGS+=$(shell if [ -d /usr/include/mysql ]; then echo "-I/usr/include/mysql"; fi)
-CFLAGS+=$(shell if [ -d /usr/local/include/mysql ]; then echo "-I/usr/local/include/mysql"; fi)
-MLFLAGS=
-MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi)
-MLFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi)
-
-all: $(MODS)
-
-install: all
-       for x in $(MODS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
-
-clean:
-       rm -f *.so *.o
-
-%.so : %.o
-       $(CC) -shared -Xlinker -x -o $@ $<
+all: _all
 
-cdr_mysql.so: cdr_mysql.o
-       $(CC) -shared -Xlinker -x -o $@ $< -lmysqlclient $(MLFLAGS)
+include $(ASTTOPDIR)/Makefile.moddir_rules