make: Remove 'res_features' from libraries to link against with cygwin/mingw32
[asterisk/asterisk.git] / apps / Makefile
1 #
2 # Asterisk -- An open source telephony toolkit.
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 $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
13
14 MODULE_PREFIX=app
15 MENUSELECT_CATEGORY=APPS
16 MENUSELECT_DESCRIPTION=Applications
17
18 MENUSELECT_OPTS_app_directory:=$(MENUSELECT_OPTS_app_voicemail)
19 ifneq ($(findstring ODBC_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
20   MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
21 endif
22 ifneq ($(findstring IMAP_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
23   MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
24 endif
25
26 all: _all
27
28 include $(ASTTOPDIR)/Makefile.moddir_rules
29
30 clean::
31         rm -f confbridge/*.o confbridge/*.i
32
33 $(if $(filter app_confbridge,$(EMBEDDED_MODS)),modules.link,app_confbridge.so): $(subst .c,.o,$(wildcard confbridge/*.c))
34 $(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge)
35
36 ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
37   LIBS+= -lres_ael_share.so -lres_monitor.so -lres_speech.so
38   LIBS+= -lres_smdi.so
39 endif