Put into Makefile.moddir_rules the common instructions used to
[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 $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
13
14 #interesting files in this directory start with app_
15 MODULE_PREFIX=app_
16
17 # create extra MENUSELECT_DEPENDS entries.
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   MENUSELECT_DEPENDS_app_directory+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
22 endif
23 ifneq ($(findstring IMAP_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
24   MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
25   MENUSELECT_DEPENDS_app_directory+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
26 endif
27
28 ifeq (SunOS,$(shell uname))
29   MENUSELECT_DEPENDS_app_chanspy+=RT
30   RT_LIB=-lrt
31 endif
32
33 all: _all
34
35 include $(ASTTOPDIR)/Makefile.moddir_rules
36
37 ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
38   LIBS+= -lres_features.so -lres_ael_share.so -lres_monitor.so -lres_speech.so
39   LIBS+= -lres_smdi.so
40 endif
41