aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAdrian Kummerländer2013-01-05 22:30:35 +0100
committerAdrian Kummerländer2013-01-05 22:30:35 +0100
commitcde848ce1eb995170723f6f070b9fcba0dfdb880 (patch)
treeb28b436619ade0f9b3ff7603cc987d7b5a621ff3 /Makefile
parente3081360c65eb4994e7e8042898cec72de0d560b (diff)
downloadSimpleParser-cde848ce1eb995170723f6f070b9fcba0dfdb880.tar
SimpleParser-cde848ce1eb995170723f6f070b9fcba0dfdb880.tar.gz
SimpleParser-cde848ce1eb995170723f6f070b9fcba0dfdb880.tar.bz2
SimpleParser-cde848ce1eb995170723f6f070b9fcba0dfdb880.tar.lz
SimpleParser-cde848ce1eb995170723f6f070b9fcba0dfdb880.tar.xz
SimpleParser-cde848ce1eb995170723f6f070b9fcba0dfdb880.tar.zst
SimpleParser-cde848ce1eb995170723f6f070b9fcba0dfdb880.zip
Moved node classes into separate compilation unit; File extension change
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
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