diff options
Diffstat (limited to 'impl/Makefile')
-rw-r--r-- | impl/Makefile | 11 |
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 |