Fix a memory leak in func_curl. Every thread that used this function leaked
[asterisk-bristuff.git] / apps / Makefile
blobc57926a6a38fe23733ca6a2220d4e34701ffacba
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 MENUSELECT_CATEGORY=APPS
15 MENUSELECT_DESCRIPTION=Applications
17 ALL_C_MODS:=$(patsubst %.c,%,$(wildcard app_*.c))
18 ALL_CC_MODS:=$(patsubst %.cc,%,$(wildcard app_*.cc))
20 C_MODS:=$(filter-out $(MENUSELECT_APPS),$(ALL_C_MODS))
21 CC_MODS:=$(filter-out $(MENUSELECT_APPS),$(ALL_CC_MODS))
23 LOADABLE_MODS:=$(C_MODS) $(CC_MODS)
25 ifneq ($(findstring apps,$(MENUSELECT_EMBED)),)
26 EMBEDDED_MODS:=$(LOADABLE_MODS)
27 LOADABLE_MODS:=
28 endif
30 MENUSELECT_OPTS_app_directory:=$(MENUSELECT_OPTS_app_voicemail)
31 ifneq ($(findstring ODBC_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
32 MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
33 MENUSELECT_DEPENDS_app_directory+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
34 endif
35 ifneq ($(findstring IMAP_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
36 MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
37 MENUSELECT_DEPENDS_app_directory+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
38 endif
40 all: _all
42 include $(ASTTOPDIR)/Makefile.moddir_rules