diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-15 19:21:27 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-15 19:21:27 +0000 |
commit | e897b4499e9719aea235ebe6e67c18183e043dea (patch) | |
tree | 85730165ce45a65a5e7bfcc9fceab9626317e49d /utils/Makefile | |
parent | 46d935c8ca1dd16a67f246814417c3bf1ae2ebb6 (diff) |
This commit closes bug 7605, and half-closes 7638. The AEL code has been redistributed/repartitioned to allow code re-use both inside and outside of Asterisk. This commit introduces the utils/conf2ael program, and an external config-file reader, for both normal config files, and for extensions.conf (context, exten, prio); It provides an API for programs outside of asterisk to use to play with the dialplan and config files.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79595 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils/Makefile')
-rw-r--r-- | utils/Makefile | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/utils/Makefile b/utils/Makefile index fb6fb60a3..246eac266 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -16,7 +16,7 @@ .PHONY: clean all uninstall # to get check_expr, add it to the ALL_UTILS list -ALL_UTILS:=astman smsq stereorize streamplayer aelparse muted check_expr +ALL_UTILS:=astman smsq stereorize streamplayer aelparse muted check_expr conf2ael UTILS:=$(ALL_UTILS) include $(ASTTOPDIR)/Makefile.rules @@ -40,6 +40,7 @@ endif ifneq ($(filter pbx_ael,$(MENUSELECT_PBX)),) UTILS:=$(filter-out aelparse,$(UTILS)) + UTILS:=$(filter-out conf2ael,$(UTILS)) endif all: $(UTILS) @@ -57,8 +58,8 @@ uninstall: clean: rm -f *.o $(ALL_UTILS) check_expr rm -f .*.o.d .*.oo.d - rm -f md5.c strcompat.c ast_expr2.c ast_expr2f.c pbx_ael.c - rm -f aelparse.c aelbison.c + rm -f md5.c strcompat.c ast_expr2.c ast_expr2f.c pbx_ael.c pval.c + rm -f aelparse.c aelbison.c conf2ael md5.c: ../main/md5.c @cp $< $@ @@ -80,6 +81,9 @@ strcompat.c: ../main/strcompat.c @echo " [FLEX] ../main/ast_expr2.fl -> $@" @flex -o $@ --full ../main/ast_expr2.fl +pval.c: ../res/ael/pval.c + @cp $< $@ + ast_expr2.c: ../main/ast_expr2.c @cp $< $@ @@ -88,12 +92,14 @@ ast_expr2f.c: ../main/ast_expr2f.c ast_expr2f.o: ASTCFLAGS+=-DSTANDALONE_AEL -I../main +pval.o : ASTCFLAGS+=-DSTANDALONE + check_expr: check_expr.o ast_expr2.o ast_expr2f.o -aelbison.c: ../pbx/ael/ael.tab.c +aelbison.c: ../res/ael/ael.tab.c @cp $< $@ -aelbison.o: aelbison.c ../pbx/ael/ael.tab.h ../include/asterisk/ael_structs.h -aelbison.o: ASTCFLAGS+=-I../pbx/ael -DYYENABLE_NLS=0 +aelbison.o: aelbison.c ../res/ael/ael.tab.h ../include/asterisk/ael_structs.h +aelbison.o: ASTCFLAGS+=-I../res/ael -DYYENABLE_NLS=0 pbx_ael.c: ../pbx/pbx_ael.c @cp $< $@ @@ -101,12 +107,17 @@ pbx_ael.o: ASTCFLAGS+=-DSTANDALONE_AEL ael_main.o: ael_main.c ../include/asterisk/ael_structs.h -aelparse.c: ../pbx/ael/ael_lex.c +aelparse.c: ../res/ael/ael_lex.c @cp $< $@ -aelparse.o: aelparse.c ../include/asterisk/ael_structs.h ../pbx/ael/ael.tab.h -aelparse.o: ASTCFLAGS+=-I../pbx -DSTANDALONE_AEL +aelparse.o: aelparse.c ../include/asterisk/ael_structs.h ../res/ael/ael.tab.h +aelparse.o: ASTCFLAGS+=-I../res -DSTANDALONE_AEL + +aelparse: aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o pval.o extconf.o + +extconf.o : extconf.c + +conf2ael: conf2ael.o ast_expr2f.o ast_expr2.o aelbison.o aelparse.o pbx_ael.o pval.o extconf.o -aelparse: aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o testexpr2s: ../main/ast_expr2f.c ../main/ast_expr2.c ../main/ast_expr2.h $(CC) -g -c -I../include -DSTANDALONE_AEL ../main/ast_expr2f.c -o ast_expr2f.o |