diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c9b781 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |