fallback to standard English prompts properly when using new prompt directory layout
[asterisk-bristuff.git] / apps / Makefile
blob4006c9a5b6a7aee10a011e712878084764c56c44
2 # Asterisk -- A telephony toolkit for Linux.
3 #
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)
27 LOADABLE_MODS:=
28 endif
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)
34 endif
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)
38 endif
40 ifeq (SunOS,$(shell uname))
41 MENUSELECT_DEPENDS_app_chanspy+=RT
42 RT_LIB=-lrt
43 endif
45 all: _all
47 include $(ASTTOPDIR)/Makefile.moddir_rules