From cde848ce1eb995170723f6f070b9fcba0dfdb880 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 5 Jan 2013 22:30:35 +0100 Subject: Moved node classes into separate compilation unit; File extension change --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index dcfeee7..6db0c9b 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ -LIB_FILES = src/tree.cpp src/parser.cpp -PROG_FILES = main.cpp -TEST_FILES = test.cpp +LIB_FILES = src/nodes.cc src/tree.cc src/parser.cc +PROG_FILES = main.cc +TEST_FILES = test.cc + +FLAGS = -std=c++11 -W -Wall -Wextra -pedantic all: parser test parser: $(PROG_FILES) $(LIB_FILES) - g++ -std=c++11 -g -o bin/parser $(PROG_FILES) $(LIB_FILES) + g++ -g -o bin/parser $(FLAGS) $(PROG_FILES) $(LIB_FILES) test: $(LIB_FILES) $(TEST_FILES) - g++ -std=c++11 -O3 -o bin/test -lgtest $(LIB_FILES) $(TEST_FILES) + g++ -O3 -o bin/test -lgtest $(FLAGS) $(LIB_FILES) $(TEST_FILES) ./bin/test -- cgit v1.2.3