aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: bfc1768e6f9067fc18825411c86ac9c7b03e72c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
LIB_FILES  = tree.cpp parser.cpp
PROG_FILES = main.cpp
TEST_FILES = test.cpp

all: parser test

parser:	$(PROG_FILES) $(LIB_FILES)
	g++ -std=c++11 -g -o bin/parser $(PROG_FILES) $(LIB_FILES) 

test: $(LIB_FILES) $(TEST_FILES)
	g++ -std=c++11 -O3 -o bin/test -lgtest $(LIB_FILES) $(TEST_FILES)
	./bin/test