From 8040a5fd511912cb2141e46e5ca9eb1ab766133e Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Mon, 9 Jul 2012 14:22:07 +1000 Subject: Fix a few bugs and add a new example system. --- impl/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'impl/Makefile') 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 -- cgit v1.2.3