diff options
author | Adrian Thurston <thurston@complang.org> | 2011-05-18 04:19:23 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2011-05-18 04:19:23 +0000 |
commit | cbb4bcae6c3d9efb5f3d6fa2a7bd0f9ca66bf22e (patch) | |
tree | 66b27045b3edc2fc49caba1483f62643cdadcde6 | |
parent | 2dce9cc600bd02b50c7c6860155232a4f4c21ff5 (diff) | |
download | colm-cbb4bcae6c3d9efb5f3d6fa2a7bd0f9ca66bf22e.tar.gz |
Added back parser building rules, which were disabled since moving to automake.
refs #284
-rw-r--r-- | colm/Makefile.am | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/colm/Makefile.am b/colm/Makefile.am index 978f39f0..e8612c47 100644 --- a/colm/Makefile.am +++ b/colm/Makefile.am @@ -78,20 +78,6 @@ # ADT echo '#define VERSION "$(VERSION)"' > version.h # ADT echo '#define PUBDATE "$(PUBDATE)"' >> version.h # ADT -# ADT ifeq ($(BUILD_PARSERS),true) -# ADT -# ADT lmparse.h: lmparse.kh -# ADT kelbt -o $@ $< -# ADT -# ADT lmparse.cpp: lmparse.kl lmparse.kh -# ADT kelbt -o $@ $< -# ADT -# ADT lmscan.cpp: lmparse.h -# ADT -# ADT lmscan.cpp: lmscan.rl -# ADT ragel -G2 -o $@ $< -# ADT -# ADT endif # ADT # ADT $(COLM_OBJ): %.o: %.cpp # ADT @$(CXX) -M $(DEFS_COLM) $(INCS) $< > .$*.d @@ -154,6 +140,21 @@ colm_LDADD = libcolmp.a # ADT DEFS_COLM += -DCOLM_LOG -DPREFIX='"$(prefix)"' +if BUILD_PARSERS + +lmparse.h: lmparse.kh + kelbt -o $@ $< + +lmparse.cpp: lmparse.kl lmparse.kh + kelbt -o $@ $< + +lmscan.cpp: lmparse.h + +lmscan.cpp: lmscan.rl + ragel -G2 -o $@ $< + +endif + colm_SOURCES = \ buffer.h bytecode.h colm.h debug.h dotgen.h fsmcodegen.h fsmgraph.h \ fsmrun.h input.h keyops.h lmparse.h lmscan.h map.h parsedata.h \ |