summaryrefslogtreecommitdiff
path: root/impl/Makefile
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-07-09 14:22:07 +1000
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-07-09 14:22:07 +1000
commit8040a5fd511912cb2141e46e5ca9eb1ab766133e (patch)
tree4a0de1a1e9c65f08060eb5b25a0326faf433976a /impl/Makefile
parent049a16d1b1a683487a0c17014e9f7c477820a132 (diff)
Fix a few bugs and add a new example system.
Diffstat (limited to 'impl/Makefile')
-rw-r--r--impl/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/impl/Makefile b/impl/Makefile
index 3192191..4a3b558 100644
--- a/impl/Makefile
+++ b/impl/Makefile
@@ -1,17 +1,22 @@
CC=gcc
CPP=g++
BUILD=build/
-FLAGS=-Wall -Werror -Wextra -pedantic -lantlr3c -std=c++11 -g -pg
+FLAGS=-Wall -Werror -Wextra -pedantic -lantlr3c -std=c++11
+NORMAL_FLAGS=$(FLAGS) -g -pg
+OPTIMISED_FLAGS=$(FLAGS) -O3
all: main
.PHONY: check-syntax
check-syntax:
- -$(CPP) $(FLAGS) -fsyntax-only -x c++ $(CHK_SOURCES)
+ -$(CPP) $(FLAGS) -o /tmp/null -x c++ $(CHK_SOURCES)
# the - is to ignore the return code.
main: build-dir grammar
- $(CPP) main.cpp *.o -o $(BUILD)/main $(FLAGS)
+ $(CPP) main.cpp *.o -o $(BUILD)/main $(NORMAL_FLAGS)
+
+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