summaryrefslogtreecommitdiff
path: root/grammar/pcre/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'grammar/pcre/Makefile')
-rw-r--r--grammar/pcre/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/grammar/pcre/Makefile b/grammar/pcre/Makefile
new file mode 100644
index 00000000..6f895485
--- /dev/null
+++ b/grammar/pcre/Makefile
@@ -0,0 +1,11 @@
+COLM = ../../colm/colm
+RAGEL = ../../ragel/ragel
+
+all: pcre-colm pcre-ragel
+
+pcre-colm: pcre.lm
+ $(COLM) -o $@ pcre.lm
+
+pcre-ragel: pcre.rl $(RAGEL)
+ $(RAGEL) -G2 pcre.rl
+ gcc -g -Wall -o $@ pcre.c