From 9710d8c7a3307fd9477fb426ea1bab7804c6ef37 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 9 Nov 2012 16:39:12 +1100 Subject: A bunch of changes to make it build nicer In particular: - fix up the MCF sovler to get rid of all the warnings/errors - make the build with Wall and Werror and whatnot again --- impl/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'impl/Makefile') diff --git a/impl/Makefile b/impl/Makefile index 492528d..831857d 100644 --- a/impl/Makefile +++ b/impl/Makefile @@ -2,8 +2,8 @@ CC=gcc CPP=g++ BUILD=build PARSER=parser -FLAGS= -lantlr3c -fno-exceptions -lrt -#-Wall -Werror -Wextra -pedantic -lantlr3c -fno-exceptions -lrt +CHECKER_FLAGS=-Wall -Werror -Wextra -pedantic +FLAGS=-lantlr3c -fno-exceptions -lrt $(CHECKER_FLAGS) NORMAL_FLAGS=$(FLAGS) -g -pg OPTIMISED_FLAGS=$(FLAGS) -O3 @@ -14,12 +14,15 @@ fast: $(BUILD)/fast .PHONY: check-syntax check-syntax: $(PARSER) - -$(CPP) $(FLAGS) -o /tmp/null -x c++ $(CHK_SOURCES) + -$(CPP) $(CHECKER_FLAGS) -o /tmp/null -x c++ $(CHK_SOURCES) # the - is to ignore the return code. $(BUILD)/main: $(BUILD) $(PARSER) main.o MCFSimplex.o $(CPP) main.o MCFSimplex.o $(PARSER)/*.o -o $(BUILD)/main $(NORMAL_FLAGS) +$(BUILD)/fast: $(BUILD) $(PARSER) main.o MCFSimplex.o + $(CPP) main.o MCFSimplex.o $(PARSER)/*.o -o $(BUILD)/fast $(OPTIMISED_FLAGS) + main.o: main.cpp *.hpp *.h $(CPP) -c main.cpp $(NORMAL_FLAGS) -- cgit v1.2.3