aboutsummaryrefslogtreecommitdiffstats
path: root/res/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'res/Makefile')
-rw-r--r--res/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/res/Makefile b/res/Makefile
index f2d50ebab..97b77fe43 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -25,7 +25,24 @@ all: _all
include $(ASTTOPDIR)/Makefile.moddir_rules
+ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
+ael/ael_lex.o: ASTCFLAGS+=-I. -Iael
+
+ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
+ael/ael.tab.o: ASTCFLAGS+=-I. -Iael -DYYENABLE_NLS=0
+
$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
+$(if $(filter res_ael_share,$(EMBEDDED_MODS)),modules.link,res_ael_share.so): ael/ael_lex.o ael/ael.tab.o ael/pval.o
+
+ael/ael_lex.c:
+ (cd ael; flex ael.flex; sed -i -e "/begin standard C headers/i#include \"asterisk.h\"" ael_lex.c)
+
+ael/ael.tab.c ael/ael.tab.h:
+ (cd ael; bison -v -d ael.y)
+
+ael/pval.o: ael/pval.c
+
clean::
rm -f snmp/*.o
+ rm -f ael*.o