X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2FMakefile.am;h=360739c5335aab5b9ec7bbc257cfb3a01c7310f1;hb=d4c5a2229396c74f3e66767f01ce4c8853eba92b;hp=f192eda45b5d6f035cbb5d5ba0ebf33b7cb7c6ac;hpb=fa50444663754645f6c03c67a3d60cb928562086;p=m6w6%2Flibmemcached diff --git a/libmemcached/Makefile.am b/libmemcached/Makefile.am index f192eda4..360739c5 100644 --- a/libmemcached/Makefile.am +++ b/libmemcached/Makefile.am @@ -1,14 +1,22 @@ -EXTRA_DIST = libmemcached_probes.d memcached/README.txt libmemcached.ver \ - memcached_configure.h.in +EXTRA_DIST = libmemcached.ver \ + libmemcached_probes.d \ + memcached/README.txt \ + memcached_configure.h.in \ + protocol/libmemcachedprotocol.ver \ + util/libmemcachedutil.ver -EXTRA_HEADERS = -BUILT_SOURCES= + +EXTRA_HEADERS = +BUILT_SOURCES= noinst_HEADERS = libmemcached_probes.h \ memcached_io.h \ memcached_internal.h \ common.h \ - memcached/protocol_binary.h + memcached/protocol_binary.h \ + protocol/common.h \ + protocol/ascii_handler.h \ + protocol/binary_handler.h pkginclude_HEADERS= memcached.h \ memcached.hpp \ @@ -22,14 +30,22 @@ pkginclude_HEADERS= memcached.h \ memcached_string.h \ memcached_types.h \ memcached_watchpoint.h \ + protocol_handler.h \ visibility.h +nobase_pkginclude_HEADERS=protocol/cache.h \ + protocol/callback.h -if BUILD_LIBMEMCACHEDUTIL -pkginclude_HEADERS+= memcached_util.h memcached_pool.h -endif -lib_LTLIBRARIES = libmemcached.la +libmemcachedprotocol_la_SOURCES= protocol/ascii_handler.c \ + protocol/binary_handler.c \ + protocol/cache.c \ + protocol/pedantic.c \ + protocol/protocol_handler.c + +libmemcachedprotocol_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0 + +lib_LTLIBRARIES = libmemcached.la libmemcachedprotocol.la noinst_LTLIBRARIES = libmemcachedcallbacks.la libmemcachedcallbacks_la_CFLAGS = ${AM_CFLAGS} ${NO_STRICT_ALIASING} libmemcachedcallbacks_la_SOURCES = memcached_callback.c @@ -74,13 +90,28 @@ if INCLUDE_HSIEH_SRC libmemcached_la_SOURCES += hsieh_hash.c endif -if BUILD_BYTEORDER -libmemcached_la_SOURCES += byteorder.c -endif - libmemcached_la_DEPENDENCIES= libmemcachedcallbacks.la libmemcached_la_LIBADD= $(LIBM) libmemcachedcallbacks.la -libmemcached_la_LDFLAGS = -version-info $(MEMCACHED_LIBRARY_VERSION) $(LD_VERSION_SCRIPT) $(LIBM) +libmemcached_la_LDFLAGS= ${AM_LDFLAGS} -version-info 3:0:0 + +if BUILD_LIBMEMCACHEDUTIL +pkginclude_HEADERS+= memcached_util.h memcached_pool.h +lib_LTLIBRARIES+= libmemcachedutil.la +endif + +libmemcachedutil_la_SOURCES= util/memcached_pool.c +libmemcachedutil_la_LIBADD= libmemcached.la +libmemcachedutil_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0 +libmemcachedutil_la_DEPENDENCIES=libmemcached.la + +if BUILD_BYTEORDER +noinst_LTLIBRARIES += libbyteorder.la +libbyteorder_la_SOURCES= byteorder.c byteorder.h +libmemcached_la_LIBADD += libbyteorder.la +libmemcached_la_DEPENDENCIES+= libbyteorder.la +libmemcachedprotocol_la_LIBADD=libbyteorder.la +libmemcachedprotocol_la_DEPENDENCIES=libbyteorder.la +endif if HAVE_DTRACE BUILT_SOURCES+= dtrace_probes.h