1999-11-13 17:59:36 +00:00
|
|
|
#
|
|
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
|
|
#
|
|
|
|
# Makefile for PBX frontends (dynamically loaded)
|
|
|
|
#
|
1999-12-11 20:09:45 +00:00
|
|
|
# Copyright (C) 1999, Mark Spencer
|
1999-11-13 17:59:36 +00:00
|
|
|
#
|
|
|
|
# Mark Spencer <markster@linux-support.net>
|
|
|
|
#
|
|
|
|
# This program is free software, distributed under the terms of
|
|
|
|
# the GNU General Public License
|
|
|
|
#
|
|
|
|
|
2003-09-04 04:40:37 +00:00
|
|
|
USE_MYSQL_VM_INTERFACE=0
|
2003-05-16 20:37:02 +00:00
|
|
|
|
2003-08-24 23:34:50 +00:00
|
|
|
|
2002-03-10 20:26:16 +00:00
|
|
|
#APPS=app_dial.so app_playback.so app_directory.so app_intercom.so app_mp3.so
|
2001-04-14 14:11:40 +00:00
|
|
|
APPS=app_dial.so app_playback.so app_voicemail.so app_directory.so app_intercom.so app_mp3.so \
|
2001-09-14 14:31:58 +00:00
|
|
|
app_system.so app_echo.so app_record.so app_image.so app_url.so app_disa.so \
|
2002-06-19 22:46:52 +00:00
|
|
|
app_agi.so app_qcall.so app_adsiprog.so app_getcpeid.so app_milliwatt.so \
|
2002-09-11 17:09:48 +00:00
|
|
|
app_zapateller.so app_datetime.so app_setcallerid.so app_festival.so \
|
2003-02-06 04:26:29 +00:00
|
|
|
app_queue.so app_senddtmf.so app_parkandannounce.so app_striplsd.so \
|
2003-02-16 06:00:12 +00:00
|
|
|
app_setcidname.so app_lookupcidname.so app_substring.so app_macro.so \
|
2003-02-23 06:00:11 +00:00
|
|
|
app_authenticate.so app_softhangup.so app_lookupblacklist.so \
|
2003-04-29 04:21:19 +00:00
|
|
|
app_waitforring.so app_privacy.so app_db.so app_chanisavail.so \
|
2003-09-26 03:39:58 +00:00
|
|
|
app_enumlookup.so app_voicemail2.so app_transfer.so app_setcidnum.so app_cdr.so \
|
|
|
|
app_hasnewvoicemail.so
|
2002-09-11 17:09:48 +00:00
|
|
|
|
|
|
|
#APPS+=app_sql_postgres.so
|
|
|
|
#APPS+=app_sql_odbc.so
|
1999-11-13 17:59:36 +00:00
|
|
|
|
2003-02-24 06:00:18 +00:00
|
|
|
APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so" ; fi)
|
2003-02-06 04:26:29 +00:00
|
|
|
#APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_rpt.so" ; fi)
|
2002-03-10 20:26:16 +00:00
|
|
|
|
2003-04-27 18:13:11 +00:00
|
|
|
CFLAGS+=-fPIC
|
1999-11-13 17:59:36 +00:00
|
|
|
|
|
|
|
all: $(APPS)
|
|
|
|
|
|
|
|
clean:
|
2003-07-26 15:12:37 +00:00
|
|
|
rm -f *.so *.o look .depend
|
1999-11-13 17:59:36 +00:00
|
|
|
|
|
|
|
%.so : %.o
|
|
|
|
$(CC) -shared -Xlinker -x -o $@ $<
|
|
|
|
|
2003-02-06 04:26:29 +00:00
|
|
|
app_rpt.so : app_rpt.o
|
|
|
|
$(CC) -shared -Xlinker -x -o $@ $< -ltonezone
|
|
|
|
|
1999-11-13 17:59:36 +00:00
|
|
|
install: all
|
|
|
|
for x in $(APPS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
|
2001-04-14 14:11:40 +00:00
|
|
|
|
|
|
|
app_todd.o: app_todd.c
|
2003-02-06 04:26:29 +00:00
|
|
|
gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c
|
2001-04-14 14:11:40 +00:00
|
|
|
|
|
|
|
app_todd.so: app_todd.o
|
|
|
|
$(CC) -shared -Xlinker -x -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto
|
|
|
|
|
2003-05-16 20:37:02 +00:00
|
|
|
app_voicemail2.so : app_voicemail2.o
|
2003-09-04 04:20:43 +00:00
|
|
|
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
|
|
|
|
$(CC) -shared -Xlinker -x -o $@ $(MLFLAGS) $< -lmysqlclient -lz
|
|
|
|
else
|
2003-08-28 16:42:15 +00:00
|
|
|
$(CC) -shared -Xlinker -x -o $@ $(MLFLAGS) $<
|
2003-09-04 04:20:43 +00:00
|
|
|
endif
|
2003-05-16 20:37:02 +00:00
|
|
|
|
2002-09-11 17:09:48 +00:00
|
|
|
app_sql_postgres.o: app_sql_postgres.c
|
2003-08-24 23:34:50 +00:00
|
|
|
$(CC) -pipe -I/usr/local/pgsql/include $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c
|
2002-09-11 17:09:48 +00:00
|
|
|
|
|
|
|
app_sql_postgres.so: app_sql_postgres.o
|
|
|
|
$(CC) -shared -Xlinker -x -o $@ $< -L/usr/local/pgsql/lib -lpq
|
|
|
|
|
|
|
|
app_sql_odbc.so: app_sql_odbc.o
|
|
|
|
$(CC) -shared -Xlinker -x -o $@ $< -lodbc
|
2001-04-14 14:11:40 +00:00
|
|
|
|
|
|
|
look: look.c
|
|
|
|
gcc -pipe -O6 -g look.c -o look -lncurses
|
2003-05-06 02:34:45 +00:00
|
|
|
|
2003-08-19 16:42:30 +00:00
|
|
|
ifneq ($(wildcard .depend),)
|
2003-05-06 02:34:45 +00:00
|
|
|
include .depend
|
2003-08-19 16:42:30 +00:00
|
|
|
endif
|
2003-05-06 02:34:45 +00:00
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
|
|
|
.depend:
|
|
|
|
../mkdep $(CFLAGS) `ls *.c`
|