diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 |