summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-12-23 02:55:53 +0000
committerMark Spencer <markster@digium.com>2004-12-23 02:55:53 +0000
commit7cda0babd2776a5b1a9a3a8c191eaefe70b13ce2 (patch)
treefe076477330afccf69467f4f019a137ed8dcb8e2 /apps/Makefile
parent3fde2e56b8445f8af0df43b60d14f9bce1cd51dd (diff)
Add app_curl from tilghman (bug #3131)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/Makefile')
-rwxr-xr-xapps/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 48dfdedd7..17d2b44e1 100755
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -51,6 +51,11 @@ APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so ap
APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
+CURLLIBS=$(shell curl-config --libs)
+ifneq (${CURLLIBS},)
+ APPS+=app_curl.so
+endif
+
CFLAGS+=-fPIC
#
# If you have MySQL 4.1 or later you can use ODBC
@@ -74,6 +79,9 @@ install: all
rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so
+app_curl.so: app_curl.o
+ $(CC) $(SOLINK) -o $@ $< $(CURLLIBS)
+
app_voicemail.so : app_voicemail.o
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
$(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz