2 # Asterisk -- A telephony toolkit for Linux.
4 # Makefile for PBX modules
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 C_MODS
:=$(filter-out $(MENUSELECT_PBX
),$(patsubst %.c
,%,$(wildcard pbx_
*.c
)))
15 CC_MODS
:=$(filter-out $(MENUSELECT_PBX
),$(patsubst %.
cc,%,$(wildcard pbx_
*.
cc)))
17 LOADABLE_MODS
:=$(C_MODS
) $(CC_MODS
)
19 ifneq ($(findstring pbx
,$(MENUSELECT_EMBED
)),)
20 EMBEDDED_MODS
:=$(LOADABLE_MODS
)
26 include $(ASTTOPDIR
)/Makefile.moddir_rules
31 ael
/ael_lex.o
: ael
/ael_lex.c ..
/include/asterisk
/ael_structs.h ael
/ael.tab.h
32 ael
/ael_lex.o
: ASTCFLAGS
+=-I.
34 ael
/ael.tab.o
: ael
/ael.tab.c ael
/ael.tab.h ..
/include/asterisk
/ael_structs.h
35 ael
/ael.tab.o
: ASTCFLAGS
+=-I.
37 $(if
$(filter pbx_ael
,$(EMBEDDED_MODS
)),modules.link
,pbx_ael.so
): ael
/ael.tab.o ael
/ael_lex.o
40 (cd ael
; flex ael.flex
; sed
-i
-e
"/begin standard C headers/i#include \"asterisk.h\"" ael_lex.c
)
42 ael
/ael.tab.c ael
/ael.tab.h
:
43 (cd ael
; bison
-v
-d ael.y
)
45 dundi-parser.o
: dundi-parser.h
46 dundi-parser.o
: ASTCFLAGS
+=-I.
48 $(if
$(filter pbx_dundi
,$(EMBEDDED_MODS
)),modules.link
,pbx_dundi.so
): dundi-parser.o