This commit closes bug 7605, and half-closes 7638. The AEL code has been redistribute...
[asterisk/asterisk.git] / pbx / Makefile
1 #
2 # Asterisk -- A telephony toolkit for Linux.
3
4 # Makefile for PBX modules
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_PBX),$(patsubst %.c,%,$(wildcard pbx_*.c)))
15 CC_MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.cc,%,$(wildcard pbx_*.cc)))
16
17 LOADABLE_MODS:=$(C_MODS) $(CC_MODS)
18
19 ifneq ($(findstring pbx,$(MENUSELECT_EMBED)),)
20   EMBEDDED_MODS:=$(LOADABLE_MODS)
21   LOADABLE_MODS:=
22 endif
23
24 all: _all
25
26 include $(ASTTOPDIR)/Makefile.moddir_rules
27
28 clean::
29         rm -f ael/*.o
30
31 dundi-parser.o: dundi-parser.h
32 dundi-parser.o: ASTCFLAGS+=-I.
33
34 $(if $(filter pbx_dundi,$(EMBEDDED_MODS)),modules.link,pbx_dundi.so): dundi-parser.o