2 # Asterisk -- A telephony toolkit for Linux.
4 # Makefile for PBX applications
6 # Copyright (C) 1999-2006, Digium, Inc.
8 # This program is free software, distributed under the terms of
9 # the GNU General Public License
12 -include ..
/menuselect.makeopts ..
/menuselect.makedeps
14 MENUSELECT_CATEGORY
=APPS
15 MENUSELECT_DESCRIPTION
=Applications
17 ALL_C_MODS
:=$(patsubst %.c
,%,$(wildcard app_
*.c
))
18 ALL_CC_MODS
:=$(patsubst %.
cc,%,$(wildcard app_
*.
cc))
20 C_MODS
:=$(filter-out $(MENUSELECT_APPS
),$(ALL_C_MODS
))
21 CC_MODS
:=$(filter-out $(MENUSELECT_APPS
),$(ALL_CC_MODS
))
23 LOADABLE_MODS
:=$(C_MODS
) $(CC_MODS
)
25 ifneq ($(findstring apps
,$(MENUSELECT_EMBED
)),)
26 EMBEDDED_MODS
:=$(LOADABLE_MODS
)
30 MENUSELECT_OPTS_app_directory
:=$(MENUSELECT_OPTS_app_voicemail
)
31 ifneq ($(findstring ODBC_STORAGE
,$(MENUSELECT_OPTS_app_voicemail
)),)
32 MENUSELECT_DEPENDS_app_voicemail
+=$(MENUSELECT_DEPENDS_ODBC_STORAGE
)
33 MENUSELECT_DEPENDS_app_directory
+=$(MENUSELECT_DEPENDS_ODBC_STORAGE
)
35 ifneq ($(findstring IMAP_STORAGE
,$(MENUSELECT_OPTS_app_voicemail
)),)
36 MENUSELECT_DEPENDS_app_voicemail
+=$(MENUSELECT_DEPENDS_IMAP_STORAGE
)
37 MENUSELECT_DEPENDS_app_directory
+=$(MENUSELECT_DEPENDS_IMAP_STORAGE
)
42 include $(ASTTOPDIR
)/Makefile.moddir_rules