From 609be30bf9562a86182ed0958a238b6ba9392ebf Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 5 Oct 2013 12:55:57 +0200 Subject: Added Makefile, Readme and MIT license --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3