aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 1c9b781b06986d53b5d5e13a0c6f14552706e49a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CXX      = g++ 
CXXFLAGS = -std=c++11 -W -Wall -Wextra -pedantic

SRC  = src/codepoint_iterator.cc \
       test.cc
OBJ  = $(subst .cc,.o,$(SRC))

all: test

test: ${OBJ}
	$(CXX) -o test -lgtest $(OBJ)
	./test

.PHONY: clean;
clean:
	rm -f $(OBJ)
	rm test

depend: .depend

.depend: $(SRC)
	$(CXX) -M $(CXXFLAGS) $< > $@

include .depend