blob: 09fdd4991127227904cfbdc6407ac477fd9c84f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
LIB_FILES = src/nodes.cc src/tree.cc src/utils.cc
PROG_FILES = main.cc
TEST_FILES = test.cc
FLAGS = -std=c++11 -W -Wall -Wextra -pedantic
PARSER = -o bin/parser $(FLAGS) $(PROG_FILES) $(LIB_FILES)
all: dev test
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 $(TEST_FILES) $(FLAGS) $(LIB_FILES)
./bin/test
|