Bug #442914: 'delete noreply' may hang the client
[m6w6/libmemcached] / libmemcached / Makefile.am
1 EXTRA_DIST = libmemcached.ver \
2 libmemcached_probes.d \
3 memcached/README.txt \
4 memcached_configure.h.in \
5 protocol/libmemcachedprotocol.ver \
6 util/libmemcachedutil.ver
7
8
9 EXTRA_HEADERS =
10 BUILT_SOURCES=
11
12 noinst_HEADERS = libmemcached_probes.h \
13 memcached_io.h \
14 memcached_internal.h \
15 common.h \
16 memcached/protocol_binary.h \
17 protocol/common.h \
18 protocol/ascii_handler.h \
19 protocol/binary_handler.h
20
21 pkginclude_HEADERS= memcached.h \
22 memcached.hpp \
23 exception.hpp \
24 memcached_configure.h \
25 memcached_constants.h \
26 memcached_get.h \
27 memcached_result.h \
28 memcached_server.h \
29 memcached_storage.h \
30 memcached_string.h \
31 memcached_types.h \
32 memcached_watchpoint.h \
33 protocol_handler.h \
34 visibility.h
35
36 nobase_pkginclude_HEADERS=protocol/cache.h \
37 protocol/callback.h
38
39
40 libmemcachedprotocol_la_SOURCES= protocol/ascii_handler.c \
41 protocol/binary_handler.c \
42 protocol/cache.c \
43 protocol/pedantic.c \
44 protocol/protocol_handler.c
45
46 libmemcachedprotocol_la_LDFLAGS= -version-info $(MEMCACHEDPROTOCOL_LIBRARY_VERSION) $(LD_PROTOCOL_VERSION_SCRIPT)
47
48 lib_LTLIBRARIES = libmemcached.la libmemcachedprotocol.la
49 noinst_LTLIBRARIES = libmemcachedcallbacks.la
50 libmemcachedcallbacks_la_CFLAGS = ${AM_CFLAGS} ${NO_STRICT_ALIASING}
51 libmemcachedcallbacks_la_SOURCES = memcached_callback.c
52
53 libmemcached_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION}
54 libmemcached_la_SOURCES = crc.c \
55 memcached.c \
56 memcached_auto.c \
57 memcached_analyze.c \
58 memcached_behavior.c \
59 memcached_connect.c \
60 memcached_delete.c \
61 memcached_do.c \
62 memcached_dump.c \
63 memcached_fetch.c \
64 memcached_flush.c \
65 memcached_get.c \
66 memcached_hash.c \
67 memcached_hosts.c \
68 memcached_io.c \
69 memcached_purge.c \
70 memcached_flush_buffers.c \
71 md5.c \
72 memcached_key.c \
73 memcached_quit.c \
74 memcached_parse.c \
75 memcached_response.c \
76 memcached_result.c \
77 memcached_server.c \
78 memcached_storage.c \
79 memcached_string.c \
80 memcached_stats.c \
81 memcached_strerror.c \
82 memcached_verbosity.c \
83 memcached_version.c \
84 murmur_hash.c \
85 jenkins_hash.c \
86 memcached_allocators.c
87
88
89 if INCLUDE_HSIEH_SRC
90 libmemcached_la_SOURCES += hsieh_hash.c
91 endif
92
93 libmemcached_la_DEPENDENCIES= libmemcachedcallbacks.la
94 libmemcached_la_LIBADD= $(LIBM) libmemcachedcallbacks.la
95 libmemcached_la_LDFLAGS = -version-info $(MEMCACHED_LIBRARY_VERSION) $(LD_VERSION_SCRIPT) $(LIBM)
96
97 if BUILD_LIBMEMCACHEDUTIL
98 pkginclude_HEADERS+= memcached_util.h memcached_pool.h
99 lib_LTLIBRARIES+= libmemcachedutil.la
100 endif
101
102 libmemcachedutil_la_SOURCES= util/memcached_pool.c
103 libmemcachedutil_la_LDFLAGS= -version-info $(MEMCACHEDUTIL_LIBRARY_VERSION) $(LD_UTIL_VERSION_SCRIPT)
104 libmemcachedutil_la_LIBADD= libmemcached.la
105 libmemcachedutil_la_DEPENDENCIES=libmemcached.la
106
107 if BUILD_BYTEORDER
108 noinst_LTLIBRARIES += libbyteorder.la
109 libbyteorder_la_SOURCES= byteorder.c byteorder.h
110 libmemcached_la_LIBADD += libbyteorder.la
111 libmemcached_la_DEPENDENCIES+= libbyteorder.la
112 libmemcachedprotocol_la_LIBADD=libbyteorder.la
113 libmemcachedprotocol_la_DEPENDENCIES=libbyteorder.la
114 endif
115
116 if HAVE_DTRACE
117 BUILT_SOURCES+= dtrace_probes.h
118 libmemcached_la_SOURCES += libmemcached_probes.d
119 endif
120
121 if DTRACE_NEEDS_OBJECTS
122 libmemcached_la_DEPENDENCIES += libmemcached_probes.o
123 endif
124
125 SUFFIXES= .d
126
127 dtrace_probes.h: libmemcached_probes.d
128 $(DTRACE) $(DTRACEFLAGS) -h -o dtrace_probes.h -s libmemcached_probes.d
129
130 libmemcached_probes.o: libmemcached_probes.d $(libmemcached_la_OBJECTS)
131 $(DTRACE) $(DTRACEFLAGS) -o .libs/libmemcached_probes.o -G -s libmemcached_probes.d `grep '^pic_object' *.lo | cut -f 2 -d\'`
132 $(DTRACE) $(DTRACEFLAGS) -o libmemcached_probes.o -G -s libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `
133