summaryrefslogtreecommitdiff
path: root/cpp/Makefile
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:56 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:56 +0000
commit529a50633dffc91dd5ce58ae5a905a0ac4a5fdf9 (patch)
treedd81e58a7ef270790969f3179b655136757bc303 /cpp/Makefile
parent9f460f17d73e749d58c2f58beb621e1f7292cfa6 (diff)
downloadmsgpack-python-529a50633dffc91dd5ce58ae5a905a0ac4a5fdf9.tar.gz
lang/c/msgpack: added C++ binding
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@50 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'cpp/Makefile')
-rw-r--r--cpp/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/cpp/Makefile b/cpp/Makefile
new file mode 100644
index 0000000..eafa683
--- /dev/null
+++ b/cpp/Makefile
@@ -0,0 +1,21 @@
+
+CXXFLAGS = -I.. -I. -Wall -g -O4
+LDFLAGS = -L.
+
+NEED_PREPROCESS = zone.hpp
+
+all: test
+
+%.hpp: %.hpp.erb
+ erb $< > $@
+
+test: $(NEED_PREPROCESS) unpack.o unpack_inline.o zone.o test.o object.hpp unpack.hpp
+ $(CXX) $(LDFLAGS) unpack.o unpack_inline.o zone.o test.o -o $@
+
+.PHONY: clean
+clean:
+ $(RM) unpack.o unpack_inline.o zone.o
+ $(RM) test.o
+ $(RM) test
+ $(RM) $(NEED_PREPROCESS)
+