blob: 6db0c9b478f07d9e951c489e77d08140d5f64174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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++ -g -o bin/parser $(FLAGS) $(PROG_FILES) $(LIB_FILES)
test: $(LIB_FILES) $(TEST_FILES)
g++ -O3 -o bin/test -lgtest $(FLAGS) $(LIB_FILES) $(TEST_FILES)
./bin/test
|