From f9fc35785b53aa097a09ab1b865d33497ee1802e Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Tue, 10 Jul 2012 13:01:48 +1000 Subject: Move antlr. Add `make test` to Makefile. --- impl/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'impl/Makefile') diff --git a/impl/Makefile b/impl/Makefile index 4a3b558..f056d1f 100644 --- a/impl/Makefile +++ b/impl/Makefile @@ -19,13 +19,16 @@ fastest-main: build-dir grammar $(CPP) main.cpp *.o -o $(BUILD)/main $(OPTIMISED_FLAGS) grammar: build-dir - java -jar antlr/antlr-3.4-complete.jar EquationSystem.g + java -jar ../antlr/antlr-3.4-complete.jar EquationSystem.g $(CC) *.c -c -lantrl3c build-dir: mkdir -p $(BUILD) +test: main + bash ./test/run ./build/main + clean: rm -rf $(BUILD) rm -rf *.o *.c *.h *.tokens - # antlr o, c, h and tokens files +# antlr o, c, h and tokens files -- cgit v1.2.3