Merge Steve Murphy's (murf) complete re-implementation of AEL, which is now no longer...
[asterisk/asterisk.git] / utils / Makefile
index 57cbb62..d88beee 100644 (file)
@@ -66,6 +66,22 @@ ast_expr2f.o: ../ast_expr2f.c
 check_expr: check_expr.c ast_expr2.o ast_expr2f.o
        $(CC) $(CFLAGS) -o $@ $^
 
+aelparse : ../pbx/ael/aelflex.o ../pbx/ael/aelbison.o ../pbx/pbx_ael.o ael_main.o ../ast_expr2f.o ../ast_expr2.o
+       $(CC) $(CFLAGS) -g -o aelparse ../pbx/ael/aelflex.o ../pbx/ael/aelbison.o ael_main.o ../pbx/pbx_ael.o ../ast_expr2f.o ../ast_expr2.o
+
+ael_main.o : ael_main.c ../include/asterisk/ael_structs.h
+       $(CC) $(CFLAGS) -c -g -o ael_main.o ael_main.c
+
+ael_main1.o : ael_main.c ../include/asterisk/ael_structs.h
+       $(CC) $(CFLAGS) -c -g  -o ael_main1.o ael_main.c
+
+testexpr2s: ../ast_expr2f.c ../ast_expr2.c ../ast_expr2.h
+       gcc -g -c -I../include -DSTANDALONE ../ast_expr2f.c -o ast_expr2f.o
+       gcc -g -c -I../include -DSTANDALONE ../ast_expr2.c -o ast_expr2.o
+       gcc -g -o testexpr2s ast_expr2f.o ast_expr2.o
+       rm ast_expr2.o ast_expr2f.o 
+       ./testexpr2s expr2.testinput
+
 smsq.o: smsq.c
        $(CC) $(CFLAGS) -include ../include/autoconfig.h -c -o $@ $<