summaryrefslogtreecommitdiff
path: root/impl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'impl/Makefile')
-rw-r--r--impl/Makefile7
1 files changed, 6 insertions, 1 deletions
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)