summaryrefslogtreecommitdiff
path: root/impl/Makefile
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-07-10 13:01:48 +1000
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-07-10 13:01:48 +1000
commitf9fc35785b53aa097a09ab1b865d33497ee1802e (patch)
treea6c8ea8e913ceab2c08e9f7698332bff08681552 /impl/Makefile
parentd11acd6d52351b35c102e9c18e32d38a11975c5b (diff)
Move antlr. Add `make test` to Makefile.
Diffstat (limited to 'impl/Makefile')
-rw-r--r--impl/Makefile7
1 files changed, 5 insertions, 2 deletions
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