summaryrefslogtreecommitdiff
path: root/grammar/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'grammar/Makefile')
-rw-r--r--grammar/Makefile18
1 files changed, 3 insertions, 15 deletions
diff --git a/grammar/Makefile b/grammar/Makefile
index 35f244f5..21a2603a 100644
--- a/grammar/Makefile
+++ b/grammar/Makefile
@@ -1,18 +1,6 @@
-all: rust pcre pcre-colm dns
+SUBDIRS = "rust pcre dns"
-RAGEL = ../ragel/ragel
-COLM = ../colm/colm
+all: rust pcre dns
+ for d in $(SUBDIRS); do cd $$d && $(MAKE); done
-rust: rust.lm parserust.lm $(COLM)
- $(COLM) -o rust parserust.lm
-pcre: pcre.rl $(RAGEL)
- $(RAGEL) -G2 pcre.rl
- gcc -g -Wall -o pcre pcre.c
-
-pcre-colm: pcre.lm
- $(COLM) -o pcre-colm pcre.lm
-
-dns: dns.rl
- $(RAGEL) -G2 -o dns.cc dns.rl
- g++ -g -Wall -o dns dns.cc -lpcap