Merge from trunk.
[m6w6/libmemcached] / libmemcached / Makefile.am
1 EXTRA_DIST = libmemcached_probes.d memcached/README.txt libmemcached.ver \
2 memcached_configure.h.in protocol/libmemcachedprotocol.ver
3
4
5 EXTRA_HEADERS =
6 BUILT_SOURCES=
7
8 noinst_HEADERS = libmemcached_probes.h \
9 memcached_io.h \
10 memcached_internal.h \
11 common.h \
12 memcached/protocol_binary.h \
13 protocol/common.h \
14 protocol/ascii_handler.h \
15 protocol/binary_handler.h
16
17 pkginclude_HEADERS= memcached.h \
18 memcached.hpp \
19 exception.hpp \
20 memcached_configure.h \
21 memcached_constants.h \
22 memcached_get.h \
23 memcached_result.h \
24 memcached_server.h \
25 memcached_storage.h \
26 memcached_string.h \
27 memcached_types.h \
28 memcached_watchpoint.h \
29 protocol_handler.h \
30 visibility.h
31
32 nobase_pkginclude_HEADERS=protocol/cache.h \
33 protocol/callback.h
34
35
36 if BUILD_LIBMEMCACHEDUTIL
37 pkginclude_HEADERS+= memcached_util.h memcached_pool.h
38 endif
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_BYTEORDER
98 noinst_LTLIBRARIES += libbyteorder.la
99 libbyteorder_la_SOURCES= byteorder.c byteorder.h
100 libmemcached_la_LIBADD += libbyteorder.la
101 libmemcached_la_DEPENDENCIES+= libbyteorder.la
102 libmemcachedprotocol_la_LIBADD=libbyteorder.la
103 libmemcachedprotocol_la_DEPENDENCIES=libbyteorder.la
104 endif
105
106 if HAVE_DTRACE
107 BUILT_SOURCES+= dtrace_probes.h
108 libmemcached_la_SOURCES += libmemcached_probes.d
109 endif
110
111 if DTRACE_NEEDS_OBJECTS
112 libmemcached_la_DEPENDENCIES += libmemcached_probes.o
113 endif
114
115 SUFFIXES= .d
116
117 dtrace_probes.h: libmemcached_probes.d
118 $(DTRACE) $(DTRACEFLAGS) -h -o dtrace_probes.h -s libmemcached_probes.d
119
120 libmemcached_probes.o: libmemcached_probes.d $(libmemcached_la_OBJECTS)
121 $(DTRACE) $(DTRACEFLAGS) -o .libs/libmemcached_probes.o -G -s libmemcached_probes.d `grep '^pic_object' *.lo | cut -f 2 -d\'`
122 $(DTRACE) $(DTRACEFLAGS) -o libmemcached_probes.o -G -s libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `
123