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 MENUSELECT_CATEGORY
=PBX
15 MENUSELECT_DESCRIPTION
=PBX Modules
17 ALL_C_MODS
:=$(patsubst %.c
,%,$(wildcard pbx_
*.c
))
18 ALL_CC_MODS
:=$(patsubst %.
cc,%,$(wildcard pbx_
*.
cc))
20 C_MODS
:=$(filter-out $(MENUSELECT_PBX
),$(ALL_C_MODS
))
21 CC_MODS
:=$(filter-out $(MENUSELECT_PBX
),$(ALL_CC_MODS
))
23 LOADABLE_MODS
:=$(C_MODS
) $(CC_MODS
)
25 ifneq ($(findstring pbx
,$(MENUSELECT_EMBED
)),)
26 EMBEDDED_MODS
:=$(LOADABLE_MODS
)
32 include $(ASTTOPDIR
)/Makefile.moddir_rules
37 ael
/ael_lex.o
: ael
/ael_lex.c ..
/include/asterisk
/ael_structs.h ael
/ael.tab.h
38 ael
/ael_lex.o
: ASTCFLAGS
+=-I.
40 ael
/ael.tab.o
: ael
/ael.tab.c ael
/ael.tab.h ..
/include/asterisk
/ael_structs.h
41 ael
/ael.tab.o
: ASTCFLAGS
+=-I.
43 $(if
$(filter pbx_ael
,$(EMBEDDED_MODS
)),modules.link
,pbx_ael.so
): ael
/ael.tab.o ael
/ael_lex.o
46 (cd ael
; flex ael.flex
; sed
-i
-e
"/begin standard C headers/i#include \"asterisk.h\"" ael_lex.c
)
47 (cd ael
; sed
's@#if __STDC_VERSION__ >= 199901L@#if !defined __STDC_VERSION__ || __STDC_VERSION__ >= 199901L@' ael_lex.c
> zz
; mv zz ael_lex.c
)
49 ael
/ael.tab.c ael
/ael.tab.h
:
50 (cd ael
; bison
-v
-d ael.y
)
52 dundi-parser.o
: dundi-parser.h
53 dundi-parser.o
: ASTCFLAGS
+=-I.
55 $(if
$(filter pbx_dundi
,$(EMBEDDED_MODS
)),modules.link
,pbx_dundi.so
): dundi-parser.o