update comment to match the state of the code
[asterisk-bristuff.git] / apps / Makefile
blobd0e9215afbd6652bfe5a5c90ea0d9a85edc6c058
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 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)
21 LOADABLE_MODS:=
22 endif
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)
28 endif
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)
32 endif
34 ifeq (SunOS,$(shell uname))
35 MENUSELECT_DEPENDS_app_chanspy+=RT
36 RT_LIB=-lrt
37 endif
39 all: _all
41 include $(ASTTOPDIR)/Makefile.moddir_rules