1999-11-13 17:59:36 +00:00
|
|
|
#
|
|
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
|
|
#
|
2005-06-20 17:26:08 +00:00
|
|
|
# Makefile for PBX applications
|
1999-11-13 17:59:36 +00:00
|
|
|
#
|
2005-06-20 17:26:08 +00:00
|
|
|
# Copyright (C) 1999-2005, Digium
|
1999-11-13 17:59:36 +00:00
|
|
|
#
|
2005-06-20 17:26:08 +00:00
|
|
|
# Mark Spencer <markster@digium.com>
|
1999-11-13 17:59:36 +00:00
|
|
|
#
|
|
|
|
# This program is free software, distributed under the terms of
|
|
|
|
# the GNU General Public License
|
|
|
|
#
|
|
|
|
|
This is the first round of removing applications that were marked as deprecated
in the 1.2 release. They are being removed from the trunk and will not be in
the next major release. The following is a list of the applications that are
being removed in this commit:
Curl, Cut, Sort, DBPut, DBGet, ENUMLookup, Eval
GetGroupCount, SetGroup, CheckGroup, GetGroupMatchCount
MD5, MD5Check, Math, SetCIDName, SetCIDNum, SetRDNIS, SetCallerID
TXTCIDName, AbsoluteTimeout, DigitTimeout, ResponseTimeout, SetAccount
SetLanguage, SetVar (renamed to Set)
These changes also include moving the "group show channels" cli command from
app_groupcount.c to cli.c.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-07 15:36:55 +00:00
|
|
|
APPS=app_adsiprog.so app_alarmreceiver.so app_authenticate.so app_cdr.so \
|
|
|
|
app_chanisavail.so app_chanspy.so app_controlplayback.so app_db.so \
|
|
|
|
app_dial.so app_dictate.so app_directed_pickup.so app_directory.so \
|
|
|
|
app_disa.so app_dumpchan.so app_echo.so app_exec.so app_externalivr.so \
|
|
|
|
app_festival.so app_forkcdr.so app_getcpeid.so app_hasnewvoicemail.so \
|
|
|
|
app_ices.so app_image.so app_lookupblacklist.so app_lookupcidname.so \
|
|
|
|
app_macro.so app_milliwatt.so app_mixmonitor.so app_mp3.so app_nbscat.so \
|
|
|
|
app_parkandannounce.so app_playback.so app_privacy.so app_queue.so \
|
|
|
|
app_random.so app_read.so app_readfile.so app_realtime.so app_record.so \
|
2005-12-07 16:41:26 +00:00
|
|
|
app_sayunixtime.so app_senddtmf.so app_sendtext.so app_setcallerid.so \
|
|
|
|
app_setcdruserfield.so app_settransfercapability.so app_softhangup.so \
|
|
|
|
app_stack.so app_system.so app_talkdetect.so app_test.so app_transfer.so \
|
|
|
|
app_userevent.so app_url.so app_verbose.so app_voicemail.so \
|
|
|
|
app_waitforring.so app_waitforsilence.so app_while.so app_zapateller.so
|
|
|
|
|
2004-10-02 00:58:31 +00:00
|
|
|
#
|
|
|
|
# Obsolete things...
|
|
|
|
#
|
2002-09-11 17:09:48 +00:00
|
|
|
#APPS+=app_sql_postgres.so
|
|
|
|
#APPS+=app_sql_odbc.so
|
2005-08-29 19:07:24 +00:00
|
|
|
|
2005-02-17 14:57:36 +00:00
|
|
|
#
|
|
|
|
# Experimental things
|
|
|
|
#
|
|
|
|
#APPS+=app_ivrdemo.so
|
2005-03-27 22:29:57 +00:00
|
|
|
#APPS+=app_skel.so
|
2005-08-29 16:14:38 +00:00
|
|
|
#APPS+=app_rpt.so
|
|
|
|
|
2005-11-08 00:12:21 +00:00
|
|
|
ifndef WITHOUT_ZAPTEL
|
2005-08-30 02:54:02 +00:00
|
|
|
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),)
|
2005-10-18 17:44:52 +00:00
|
|
|
APPS+=app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so app_page.so
|
2005-08-30 02:54:02 +00:00
|
|
|
endif
|
2005-11-08 00:12:21 +00:00
|
|
|
endif # WITHOUT_ZAPTEL
|
2005-08-30 02:54:02 +00:00
|
|
|
|
2005-09-25 20:50:40 +00:00
|
|
|
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
|
2005-08-30 02:54:02 +00:00
|
|
|
APPS+=app_osplookup.so
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(findstring BSD,${OSARCH}),BSD)
|
|
|
|
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
|
|
|
|
endif
|
2002-03-10 20:26:16 +00:00
|
|
|
|
2005-03-27 22:39:17 +00:00
|
|
|
CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
|
2005-11-21 13:21:18 +00:00
|
|
|
ifneq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),)
|
2005-08-30 02:54:02 +00:00
|
|
|
ifneq (${CURLLIBS},)
|
|
|
|
APPS+=app_curl.so
|
|
|
|
endif
|
2005-04-13 15:17:41 +00:00
|
|
|
endif
|
2005-08-30 02:54:02 +00:00
|
|
|
|
2005-11-01 21:53:30 +00:00
|
|
|
ifeq (${OSARCH},CYGWIN)
|
|
|
|
CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
|
|
|
|
CYGSOLIB=-L.. -L. -L../res -lasterisk.dll -lres_features.so -lres_adsi.so -lres_monitor.so
|
|
|
|
else
|
2003-04-27 18:13:11 +00:00
|
|
|
CFLAGS+=-fPIC
|
2005-11-01 21:53:30 +00:00
|
|
|
APPS+=app_sms.so
|
|
|
|
endif
|
2005-08-30 02:54:02 +00:00
|
|
|
|
2004-11-28 21:28:30 +00:00
|
|
|
#
|
2005-08-30 02:54:02 +00:00
|
|
|
# If you have UnixODBC you can use ODBC voicemail
|
2004-11-28 21:28:30 +00:00
|
|
|
# storage
|
|
|
|
#
|
2005-08-30 02:54:02 +00:00
|
|
|
# Uncomment to use ODBC storage
|
2004-11-28 21:28:30 +00:00
|
|
|
#CFLAGS+=-DUSE_ODBC_STORAGE
|
2005-08-30 02:54:02 +00:00
|
|
|
# Uncomment for extended ODBC voicemail storage
|
2005-08-25 03:15:18 +00:00
|
|
|
#CFLAGS+=-DEXTENDED_ODBC_STORAGE
|
|
|
|
# See doc/README.odbcstorage for more information
|
2003-11-05 05:42:23 +00:00
|
|
|
|
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
|
2005-11-01 21:53:30 +00:00
|
|
|
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB}
|
2005-11-08 00:12:21 +00:00
|
|
|
|
2003-02-06 04:26:29 +00:00
|
|
|
app_rpt.so : app_rpt.o
|
2005-11-01 21:53:30 +00:00
|
|
|
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -ltonezone
|
2003-02-06 04:26:29 +00:00
|
|
|
|
1999-11-13 17:59:36 +00:00
|
|
|
install: all
|
2003-10-25 17:27:53 +00:00
|
|
|
for x in $(APPS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
|
2004-03-19 18:23:33 +00:00
|
|
|
rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so
|
2004-10-18 01:32:24 +00:00
|
|
|
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so
|
2001-04-14 14:11:40 +00:00
|
|
|
|
2004-12-23 02:55:53 +00:00
|
|
|
app_curl.so: app_curl.o
|
2005-11-01 21:53:30 +00:00
|
|
|
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)
|
2004-12-23 02:55:53 +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
|
2005-11-01 21:53:30 +00:00
|
|
|
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L/usr/local/pgsql/lib -lpq
|
2002-09-11 17:09:48 +00:00
|
|
|
|
|
|
|
app_sql_odbc.so: app_sql_odbc.o
|
2005-11-01 21:53:30 +00:00
|
|
|
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc
|
2001-04-14 14:11:40 +00:00
|
|
|
|
|
|
|
look: look.c
|
2004-08-29 17:40:58 +00:00
|
|
|
$(CC) -pipe -O6 -g look.c -o look -lncurses
|
2003-05-06 02:34:45 +00:00
|
|
|
|
2005-05-08 17:01:42 +00:00
|
|
|
ifeq (SunOS,$(shell uname))
|
|
|
|
app_chanspy.so: app_chanspy.o
|
|
|
|
$(CC) $(SOLINK) -o $@ $< -lrt
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2003-08-19 16:42:30 +00:00
|
|
|
ifneq ($(wildcard .depend),)
|
2005-08-30 02:54:02 +00:00
|
|
|
include .depend
|
2003-08-19 16:42:30 +00:00
|
|
|
endif
|
2003-05-06 02:34:45 +00:00
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
|
|
|
.depend:
|
2005-06-20 17:26:08 +00:00
|
|
|
../build_tools/mkdep $(CFLAGS) `ls *.c`
|
2004-04-16 18:57:07 +00:00
|
|
|
|
|
|
|
env:
|
2004-04-27 21:30:32 +00:00
|
|
|
env
|