diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-09-04 04:20:43 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-09-04 04:20:43 +0000 |
commit | 1783b643d14167c7b19fff215aa606cf3795d467 (patch) | |
tree | f6b4da5eb46400f862fc72d5db972d4c663cc7a7 /apps/Makefile | |
parent | 7324165e04b88bb4371f533d82c75fc8c331c551 (diff) |
More mysql patches
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1472 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/Makefile')
-rwxr-xr-x | apps/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/Makefile b/apps/Makefile index cf728cfb4..1fec5c14b 100755 --- a/apps/Makefile +++ b/apps/Makefile @@ -11,10 +11,11 @@ # the GNU General Public License # -USE_MYSQL_VM_INTERFACE=0 +USE_MYSQL_VM_INTERFACE=1 MLFLAGS= ifeq ($(USE_MYSQL_VM_INTERFACE),1) +CFLAGS+=-DUSEMYSQLVM CFLAGS+=$(shell if [ -d /usr/local/mysql/include ]; then echo "-I/usr/local/mysql/include"; 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) @@ -65,7 +66,11 @@ app_todd.so: app_todd.o $(CC) -shared -Xlinker -x -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto app_voicemail2.so : app_voicemail2.o +ifeq ($(USE_MYSQL_VM_INTERFACE),1) + $(CC) -shared -Xlinker -x -o $@ $(MLFLAGS) $< -lmysqlclient -lz +else $(CC) -shared -Xlinker -x -o $@ $(MLFLAGS) $< +endif app_sql_postgres.o: app_sql_postgres.c $(CC) -pipe -I/usr/local/pgsql/include $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c |