actually do proper searching for c-client and output the results so app_voicemail...
[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 ifneq ($(wildcard ../menuselect.makeopts),)
13   include ../menuselect.makeopts
14   include ../menuselect.makedeps
15 endif
16
17 SELECTED_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%,$(wildcard app_*.c)))
18
19 ifneq ($(findstring ODBC_STORAGE,$(MENUSELECT_app_voicemail)),)
20 MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
21 endif
22 ifneq ($(findstring EXTENDED_ODBC_STORAGE,$(MENUSELECT_app_voicemail)),)
23 MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_EXTENDED_ODBC_STORAGE)
24 endif
25 ifneq ($(findstring IMAP_STORAGE,$(MENUSELECT_app_voicemail)),)
26 MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
27 endif
28
29 all: _all
30
31 include $(ASTTOPDIR)/Makefile.moddir_rules
32
33 ifeq (SunOS,$(shell uname))
34 app_chanspy.so: app_chanspy.o
35         $(CC) $(SOLINK) -o $@ $< -lrt
36 endif