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 ifneq ($(wildcard ../menuselect.makeopts),)
13 include ../menuselect.makeopts
16 SELECTED_MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.c,%,$(wildcard pbx_*.c)))
18 MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
22 include ../Makefile.rules
27 ael/aelflex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
28 $(CC) $(CFLAGS) -I. -c -o $@ $<
30 ael/aelbison.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
31 $(CC) $(CFLAGS) -I. -c -o $@ $<
33 pbx_ael.so: pbx_ael.o ael/aelbison.o ael/aelflex.o
36 (cd ael; flex ael.flex; sed -i -e "/begin standard C headers/i#include \"asterisk.h\"" ael_lex.c)
38 ael/ael.tab.c ael/ael.tab.h:
39 (cd ael; bison -v -d ael.y)
41 dundi-parser.o: dundi-parser.c dundi-parser.h
42 $(CC) $(CFLAGS) -I. -c -o $@ $<
44 pbx_dundi.so: pbx_dundi.o dundi-parser.o