Files
asterisk/apps/Makefile
T

56 lines
1.8 KiB
Makefile
Raw Normal View History

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
#
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 \
app_queue.so
#APPS+=app_sql_postgres.so
#APPS+=app_sql_odbc.so
1999-11-13 17:59:36 +00:00
2002-06-19 22:46:52 +00:00
APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_zapras.so app_meetme.so" ; fi)
2002-03-10 20:26:16 +00:00
1999-11-13 17:59:36 +00:00
CFLAGS+=
all: $(APPS)
clean:
2001-04-14 14:11:40 +00:00
rm -f *.so *.o look
1999-11-13 17:59:36 +00:00
%.so : %.o
$(CC) -shared -Xlinker -x -o $@ $<
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
gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -DDEBUG_THREADS -c -o app_todd.o app_todd.c
app_todd.so: app_todd.o
$(CC) -shared -Xlinker -x -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto
2002-09-11 17:09:48 +00:00
app_sql_postgres.o: app_sql_postgres.c
$(CC) -pipe -I/usr/local/pgsql/include -Wall -Wmissing-prototypes -Wmissing-declarations -O6 -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -march=i686 -DASTERISK_VERSION=\"CVS-07/21/02-14:49:14\" -DDO_CRASH -DDEBUG_THREADS -c -o app_sql_postgres.o app_sql_postgres.c
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