--- asterisk/apps/Makefile 2004-08-29 20:43:41.000000000 -0500 +++ asterisk-new/apps/Makefile 2004-09-17 11:23:05.000000000 -0500 @@ -1,17 +1,7 @@ -# -# Asterisk -- A telephony toolkit for Linux. -# -# Makefile for PBX frontends (dynamically loaded) -# -# Copyright (C) 1999, Mark Spencer -# -# Mark Spencer -# -# This program is free software, distributed under the terms of -# the GNU General Public License -# +# # Asterisk -- A telephony toolkit for Linux. # # Makefile for PBX frontends (dynamically loaded) # # Copyright (C) 1999, Mark Spencer +# # Mark Spencer # # This program is free software, distributed under the terms of # the GNU General Public License # -USE_MYSQL_VM_INTERFACE=0 +USE_MYSQL_VM_INTERFACE=1 USE_POSTGRES_VM_INTERFACE=0 #APPS=app_dial.so app_playback.so app_directory.so app_intercom.so app_mp3.so @@ -68,6 +58,13 @@ for x in $(APPS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so +app_directory.so : app_directory.o +ifeq ($(USE_MYSQL_VM_INTERFACE),1) + $(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz +else + $(CC) $(SOLINK) -o $@ $< +endif + app_voicemail.so : app_voicemail.o ifeq ($(USE_MYSQL_VM_INTERFACE),1) $(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz