From f7d846f18354e254353bc417ed1a666c59ef3ea2 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Mon, 9 Jul 2012 03:36:11 +1000 Subject: Better implementation: smarter strategy iteration Also add the beginnings of some log stuff, mayhaps. --- impl/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'impl/Makefile') diff --git a/impl/Makefile b/impl/Makefile index a6d5999..588c3ab 100644 --- a/impl/Makefile +++ b/impl/Makefile @@ -1,10 +1,15 @@ CC=gcc CPP=g++ BUILD=build/ -FLAGS=-Wall -Werror -g -lantlr3c -pg +FLAGS=-Wall -Werror -Wextra -pedantic -g -lantlr3c -pg -std=c++11 all: main +.PHONY: check-syntax +check-syntax: + -$(CPP) $(FLAGS) -fsyntax-only -x c++ $(CHK_SOURCES) +# the - is to ignore the return code. + main: build-dir grammar $(CPP) main.cpp *.o -o $(BUILD)/main $(FLAGS) -- cgit v1.2.3