mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
lang/c/msgpack: autotoolized
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@59 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
parent
97bc0441b1
commit
b5f13e7d26
23 changed files with 218 additions and 48 deletions
0
cpp/AUTHORS
Normal file
0
cpp/AUTHORS
Normal file
0
cpp/ChangeLog
Normal file
0
cpp/ChangeLog
Normal file
25
cpp/Makefile
25
cpp/Makefile
|
|
@ -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)
|
||||
|
||||
20
cpp/Makefile.am
Normal file
20
cpp/Makefile.am
Normal file
|
|
@ -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 $< > $@
|
||||
|
||||
0
cpp/NEWS
Normal file
0
cpp/NEWS
Normal file
0
cpp/README
Normal file
0
cpp/README
Normal file
3
cpp/bootstrap
Executable file
3
cpp/bootstrap
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
NO_NEST=1
|
||||
source ../bootstrap
|
||||
14
cpp/configure.in
Normal file
14
cpp/configure.in
Normal file
|
|
@ -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])
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue