From 39038fddb2032c9944e549be8f1665e028cb68b8 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 5 Jan 2013 23:06:51 +0100 Subject: Deprecated parser class in favour of plain functions; Internal lexer, priority determination and tree building functions were hidden in unnamed namespace --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6db0c9b..4fd4faf 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,18 @@ 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 +FLAGS = -std=c++11 -W -Wall -Wextra -pedantic +PARSER = -o bin/parser $(FLAGS) $(PROG_FILES) $(LIB_FILES) -all: parser test +all: dev test -parser: $(PROG_FILES) $(LIB_FILES) - g++ -g -o bin/parser $(FLAGS) $(PROG_FILES) $(LIB_FILES) +dev: $(PROG_FILES) $(LIB_FILES) + g++ -g $(PARSER) + +release: $(PROG_FILES) $(LIB_FILES) + g++ -O3 $(PARSER) test: $(LIB_FILES) $(TEST_FILES) - g++ -O3 -o bin/test -lgtest $(FLAGS) $(LIB_FILES) $(TEST_FILES) + g++ -O3 -o bin/test -lgtest $(TEST_FILES) $(FLAGS) $(LIB_FILES) ./bin/test -- cgit v1.2.3