Allow a Skinny device to monitor a dialplan hint (w00t!).
[asterisk/asterisk.git] / apps / Makefile
1 #
2 # Asterisk -- A telephony toolkit for Linux.
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 ../menuselect.makeopts ../menuselect.makedeps
13
14 C_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%,$(wildcard app_*.c)))
15 CC_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.cc,%,$(wildcard app_*.cc)))
16
17 LOADABLE_MODS:=$(C_MODS) $(CC_MODS)
18
19 ifneq ($(findstring apps,$(MENUSELECT_EMBED)),)
20   EMBEDDED_MODS:=$(LOADABLE_MODS)
21   LOADABLE_MODS:=
22 endif
23
24 ifneq ($(findstring ODBC_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
25 MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
26 endif
27 ifneq ($(findstring IMAP_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
28 MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
29 endif
30
31 ifeq (SunOS,$(shell uname))
32 MENUSELECT_DEPENDS_app_chanspy+=RT
33 RT_LIB=-lrt
34 endif
35
36 all: _all
37
38 include $(ASTTOPDIR)/Makefile.moddir_rules