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 C_MODS
:=$(filter-out $(MENUSELECT_APPS
),$(patsubst %.c
,%,$(wildcard app_
*.c
)))
15 CC_MODS
:=$(filter-out $(MENUSELECT_APPS
),$(patsubst %.
cc,%,$(wildcard app_
*.
cc)))
17 LOADABLE_MODS
:=$(C_MODS
) $(CC_MODS
)
19 ifneq ($(findstring apps
,$(MENUSELECT_EMBED
)),)
20 EMBEDDED_MODS
:=$(LOADABLE_MODS
)
24 MENUSELECT_OPTS_app_directory
:=$(MENUSELECT_OPTS_app_voicemail
)
25 ifneq ($(findstring ODBC_STORAGE
,$(MENUSELECT_OPTS_app_voicemail
)),)
26 MENUSELECT_DEPENDS_app_voicemail
+=$(MENUSELECT_DEPENDS_ODBC_STORAGE
)
27 MENUSELECT_DEPENDS_app_directory
+=$(MENUSELECT_DEPENDS_ODBC_STORAGE
)
29 ifneq ($(findstring IMAP_STORAGE
,$(MENUSELECT_OPTS_app_voicemail
)),)
30 MENUSELECT_DEPENDS_app_voicemail
+=$(MENUSELECT_DEPENDS_IMAP_STORAGE
)
31 MENUSELECT_DEPENDS_app_directory
+=$(MENUSELECT_DEPENDS_IMAP_STORAGE
)
34 ifeq (SunOS
,$(shell uname
))
35 MENUSELECT_DEPENDS_app_chanspy
+=RT
41 include $(ASTTOPDIR
)/Makefile.moddir_rules