channels: Allow updating variable value
[asterisk/asterisk.git] / apps / Makefile
1 #
2 # Asterisk -- An open source telephony toolkit.
3 #
4 # Makefile for PBX applications
5 #
6 # Copyright (C) 1999-2006, Digium, Inc.
7 #
8 # This program is free software, distributed under the terms of
9 # the GNU General Public License
10 #
11
12 -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
13
14 MODULE_PREFIX=app
15 MENUSELECT_CATEGORY=APPS
16 MENUSELECT_DESCRIPTION=Applications
17
18 MENUSELECT_OPTS_app_directory:=$(MENUSELECT_OPTS_app_voicemail)
19
20 all: _all
21
22 include $(ASTTOPDIR)/Makefile.moddir_rules
23
24 .app_voicemail.moduleinfo: app_voicemail.c
25         @echo "<member name=\"app_voicemail\" displayname=\"$(shell $(GREP) -e AST_MODULE_INFO $< | head -n 1 | cut -d '"' -f 2)\" remove_on_change=\"$(SUBDIR)/$*.o $(SUBDIR)/$*.so\">" > $@
26         echo "<support_level>core</support_level>"  >> $@
27         echo "<defaultenabled>yes</defaultenabled>" >> $@
28         echo "<use type=\"module\">res_adsi</use>" >> $@
29         echo "<use type=\"module\">res_smdi</use>" >> $@
30         echo "</member>" >> $@
31
32 .app_voicemail_imap.moduleinfo: app_voicemail_imap.c
33         @echo "<member name=\"app_voicemail_imap\" displayname=\"$(shell $(GREP) -e AST_MODULE_INFO $< | head -n 1 | cut -d '"' -f 2)\" remove_on_change=\"$(SUBDIR)/$*.o $(SUBDIR)/$*.so\">" > $@
34         echo "<support_level>core</support_level>"  >> $@
35         echo "<defaultenabled>no</defaultenabled>" >> $@
36         echo "<depend>imap_tk</depend>" >> $@
37         echo "<use type=\"module\">res_adsi</use>" >> $@
38         echo "<use type=\"module\">res_smdi</use>" >> $@
39         echo "</member>" >> $@
40
41 .app_voicemail_odbc.moduleinfo: app_voicemail_odbc.c
42         @echo "<member name=\"app_voicemail_odbc\" displayname=\"$(shell $(GREP) -e AST_MODULE_INFO $< | head -n 1 | cut -d '"' -f 2)\" remove_on_change=\"$(SUBDIR)/$*.o $(SUBDIR)/$*.so\">" > $@
43         echo "<support_level>core</support_level>"  >> $@
44         echo "<defaultenabled>no</defaultenabled>" >> $@
45         echo "<depend>generic_odbc</depend>" >> $@
46         echo "<use type=\"module\">res_adsi</use>" >> $@
47         echo "<use type=\"module\">res_smdi</use>" >> $@
48         echo "</member>" >> $@
49
50 $(call MOD_ADD_C,app_confbridge,$(wildcard confbridge/*.c))
51
52 app_confbridge.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
53 app_meetme.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
54 app_minivm.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
55 app_voicemail.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) -DFILE_STORAGE
56 app_voicemail_odbc.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) -DODBC_STORAGE
57 app_voicemail_imap.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) -DIMAP_STORAGE
58 app_while.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
59
60 ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
61   LIBS+= -lres_ael_share.so -lres_monitor.so -lres_speech.so
62   LIBS+= -lres_smdi.so
63 endif