diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/AUTHORS | 0 | ||||
-rw-r--r-- | cpp/ChangeLog | 0 | ||||
-rw-r--r-- | cpp/Makefile | 25 | ||||
-rw-r--r-- | cpp/Makefile.am | 20 | ||||
-rw-r--r-- | cpp/NEWS | 0 | ||||
-rw-r--r-- | cpp/README | 0 | ||||
-rwxr-xr-x | cpp/bootstrap | 3 | ||||
-rw-r--r-- | cpp/configure.in | 14 |
8 files changed, 37 insertions, 25 deletions
diff --git a/cpp/AUTHORS b/cpp/AUTHORS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/cpp/AUTHORS diff --git a/cpp/ChangeLog b/cpp/ChangeLog new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/cpp/ChangeLog diff --git a/cpp/Makefile b/cpp/Makefile deleted file mode 100644 index 4a3677e..0000000 --- a/cpp/Makefile +++ /dev/null @@ -1,25 +0,0 @@ - -#CXXFLAGS = -I.. -I. -Wall -g -CXXFLAGS = -I.. -I. -Wall -g -O4 -LDFLAGS = -L. $(CXXFLAGS) - -NEED_PREPROCESS = zone.hpp - -all: test bench - -%.hpp: %.hpp.erb - erb $< > $@ - -test: $(NEED_PREPROCESS) unpack.o unpack_inline.o object.o zone.o test.o object.hpp unpack.hpp pack.hpp - $(CXX) $(LDFLAGS) unpack.o unpack_inline.o zone.o object.o test.o -o $@ - -bench: $(NEED_PREPROCESS) unpack.o unpack_inline.o object.o zone.o bench.o object.hpp unpack.hpp pack.hpp - $(CXX) $(LDFLAGS) unpack.o unpack_inline.o zone.o object.o bench.o -o $@ - -.PHONY: clean -clean: - $(RM) unpack.o unpack_inline.o object.o zone.o - $(RM) test.o test - $(RM) bench.o bench - $(RM) $(NEED_PREPROCESS) - diff --git a/cpp/Makefile.am b/cpp/Makefile.am new file mode 100644 index 0000000..664f1ed --- /dev/null +++ b/cpp/Makefile.am @@ -0,0 +1,20 @@ +lib_LTLIBRARIES = libmsgpack.la + +libmsgpack_la_SOURCES = \ + object.cpp \ + unpack.cpp \ + unpack_inline.cpp \ + zone.cpp + +nobase_include_HEADERS = \ + msgpack/pack.hpp \ + msgpack/unpack.hpp \ + msgpack/object.hpp \ + msgpack/zone.hpp + +noinst_HEADERS = \ + unpack_context.hpp + +zone.hpp: zone.hpp.erb + erb $< > $@ + diff --git a/cpp/NEWS b/cpp/NEWS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/cpp/NEWS diff --git a/cpp/README b/cpp/README new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/cpp/README diff --git a/cpp/bootstrap b/cpp/bootstrap new file mode 100755 index 0000000..6a1e814 --- /dev/null +++ b/cpp/bootstrap @@ -0,0 +1,3 @@ +#!/bin/sh +NO_NEST=1 +source ../bootstrap diff --git a/cpp/configure.in b/cpp/configure.in new file mode 100644 index 0000000..a94738a --- /dev/null +++ b/cpp/configure.in @@ -0,0 +1,14 @@ +AC_INIT(object.hpp) +AM_INIT_AUTOMAKE(msgpack, 0.1) +AC_CONFIG_HEADER(config.h) + +AC_PROG_CXX +AC_PROG_LIBTOOL +AC_CHECK_PROG(ERB, erb, erb, [$PATH]) + +AC_CHECK_LIB(stdc++, main) + +CXXFLAGS="-O4 $CXXFLAGS -Wall -I.." + +AC_OUTPUT([Makefile]) + |