aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAdrian Kummerländer2013-10-05 12:55:57 +0200
committerAdrian Kummerländer2013-10-05 12:55:57 +0200
commit609be30bf9562a86182ed0958a238b6ba9392ebf (patch)
tree11e32d547489994ebd00118f7baf3bf1c486c5df /Makefile
parent4d1b9a918f8a189ba1e9887c6a9da04e7392db90 (diff)
downloadCodepointIterator-609be30bf9562a86182ed0958a238b6ba9392ebf.tar
CodepointIterator-609be30bf9562a86182ed0958a238b6ba9392ebf.tar.gz
CodepointIterator-609be30bf9562a86182ed0958a238b6ba9392ebf.tar.bz2
CodepointIterator-609be30bf9562a86182ed0958a238b6ba9392ebf.tar.lz
CodepointIterator-609be30bf9562a86182ed0958a238b6ba9392ebf.tar.xz
CodepointIterator-609be30bf9562a86182ed0958a238b6ba9392ebf.tar.zst
CodepointIterator-609be30bf9562a86182ed0958a238b6ba9392ebf.zip
Added Makefile, Readme and MIT license
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
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