merge.
[m6w6/libmemcached] / libmemcached / include.am
1 # vim:ft=automake
2 # included from Top Level Makefile.am
3 # All paths should be given relative to the root
4
5 EXTRA_DIST+= \
6 libmemcached/configure.h.in \
7 libmemcached/libmemcached_probes.d \
8 libmemcached/memcached/README.txt
9
10 noinst_HEADERS+= \
11 libmemcached/byteorder.h \
12 libmemcached/common.h \
13 libmemcached/do.h \
14 libmemcached/internal.h \
15 libmemcached/io.h \
16 libmemcached/libmemcached_probes.h \
17 libmemcached/protocol/ascii_handler.h \
18 libmemcached/protocol/binary_handler.h \
19 libmemcached/protocol/common.h \
20 libmemcached/response.h
21
22 nobase_include_HEADERS+= \
23 libmemcached/allocators.h \
24 libmemcached/analyze.h \
25 libmemcached/auto.h \
26 libmemcached/behavior.h \
27 libmemcached/callback.h \
28 libmemcached/configure.h \
29 libmemcached/constants.h \
30 libmemcached/delete.h \
31 libmemcached/dump.h \
32 libmemcached/exception.hpp \
33 libmemcached/fetch.h \
34 libmemcached/flush.h \
35 libmemcached/flush_buffers.h \
36 libmemcached/get.h \
37 libmemcached/hash.h \
38 libmemcached/memcached.h \
39 libmemcached/memcached.hpp \
40 libmemcached/memcached/protocol_binary.h \
41 libmemcached/parse.h \
42 libmemcached/protocol/cache.h \
43 libmemcached/protocol/callback.h \
44 libmemcached/protocol_handler.h \
45 libmemcached/quit.h \
46 libmemcached/result.h \
47 libmemcached/server.h \
48 libmemcached/server_list.h \
49 libmemcached/stats.h \
50 libmemcached/storage.h \
51 libmemcached/strerror.h \
52 libmemcached/string.h \
53 libmemcached/types.h \
54 libmemcached/verbosity.h \
55 libmemcached/version.h \
56 libmemcached/visibility.h \
57 libmemcached/watchpoint.h
58
59 lib_LTLIBRARIES+= libmemcached/libmemcachedprotocol.la
60 libmemcached_libmemcachedprotocol_la_SOURCES = \
61 libmemcached/protocol/ascii_handler.c \
62 libmemcached/protocol/binary_handler.c \
63 libmemcached/protocol/cache.c \
64 libmemcached/protocol/pedantic.c \
65 libmemcached/protocol/protocol_handler.c
66
67 libmemcached_libmemcachedprotocol_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0
68
69 noinst_LTLIBRARIES+= \
70 libmemcached/libmemcachedcallbacks.la
71
72 libmemcached_libmemcachedcallbacks_la_CFLAGS = ${AM_CFLAGS} ${NO_STRICT_ALIASING}
73 libmemcached_libmemcachedcallbacks_la_SOURCES = libmemcached/callback.c
74
75 # This noinst lib contains things we want to be ABI private but still want to
76 # either use in client programs or be able to test in test cases
77 # These symbols will not be exposed in the shipped .so
78 noinst_LTLIBRARIES+= libmemcached/libmemcachedinternal.la
79 libmemcached_libmemcachedinternal_la_SOURCES= \
80 libmemcached/string.c
81
82 lib_LTLIBRARIES+= libmemcached/libmemcached.la
83 libmemcached_libmemcached_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION}
84 libmemcached_libmemcached_la_SOURCES = \
85 libmemcached/allocators.c \
86 libmemcached/analyze.c \
87 libmemcached/auto.c \
88 libmemcached/behavior.c \
89 libmemcached/connect.c \
90 libmemcached/delete.c \
91 libmemcached/do.c \
92 libmemcached/dump.c \
93 libmemcached/fetch.c \
94 libmemcached/flush.c \
95 libmemcached/flush_buffers.c \
96 libmemcached/get.c \
97 libmemcached/hash.c \
98 libmemcached/hosts.c \
99 libmemcached/io.c \
100 libmemcached/key.c \
101 libmemcached/memcached.c \
102 libmemcached/parse.c \
103 libmemcached/purge.c \
104 libmemcached/quit.c \
105 libmemcached/response.c \
106 libmemcached/result.c \
107 libmemcached/server.c \
108 libmemcached/server_list.c \
109 libmemcached/stats.c \
110 libmemcached/storage.c \
111 libmemcached/strerror.c \
112 libmemcached/verbosity.c \
113 libmemcached/version.c
114
115
116 libmemcached_libmemcached_la_DEPENDENCIES= libmemcached/libmemcachedcallbacks.la libmemcached/libmemcachedinternal.la libhashkit/libhashkitinc.la
117 libmemcached_libmemcached_la_LIBADD= $(LIBM) libmemcached/libmemcachedcallbacks.la libmemcached/libmemcachedinternal.la libhashkit/libhashkitinc.la
118 libmemcached_libmemcached_la_LDFLAGS= ${AM_LDFLAGS} -version-info ${MEMCACHED_LIBRARY_VERSION}
119
120 if BUILD_LIBMEMCACHEDUTIL
121 nobase_include_HEADERS+= \
122 libmemcached/memcached_util.h \
123 libmemcached/util/pool.h
124 lib_LTLIBRARIES+= libmemcached/libmemcachedutil.la
125 endif
126
127 libmemcached_libmemcachedutil_la_SOURCES= libmemcached/util/pool.c
128 libmemcached_libmemcachedutil_la_LIBADD= libmemcached/libmemcached.la
129 libmemcached_libmemcachedutil_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0
130 libmemcached_libmemcachedutil_la_DEPENDENCIES= libmemcached/libmemcached.la
131
132 if BUILD_BYTEORDER
133 noinst_LTLIBRARIES += libmemcached/libbyteorder.la
134 libmemcached_libbyteorder_la_SOURCES= libmemcached/byteorder.c
135 libmemcached_libmemcached_la_LIBADD += libmemcached/libbyteorder.la
136 libmemcached_libmemcached_la_DEPENDENCIES+= libmemcached/libbyteorder.la
137 libmemcached_libmemcachedprotocol_la_LIBADD=libmemcached/libbyteorder.la
138 libmemcached_libmemcachedprotocol_la_DEPENDENCIES=libmemcached/libbyteorder.la
139 endif
140
141 if HAVE_DTRACE
142 BUILT_SOURCES+= libmemcached/dtrace_probes.h
143 libmemcached_libmemcached_la_SOURCES += libmemcached/libmemcached_probes.d
144 endif
145
146 if DTRACE_NEEDS_OBJECTS
147 libmemcached_libmemcached_la_DEPENDENCIES += libmemcached/libmemcached_probes.o
148 endif
149
150 SUFFIXES+= .d
151
152 libmemcached/dtrace_probes.h: libmemcached/libmemcached_probes.d
153 $(DTRACE) $(DTRACEFLAGS) -h -o libmemcached/dtrace_probes.h -s libmemcached/libmemcached_probes.d
154
155 libmemcached/libmemcached_probes.o: libmemcached/libmemcached_probes.d $(libmemcached_libmemcached_la_OBJECTS)
156 $(DTRACE) $(DTRACEFLAGS) -o libmemcached/.libs/libmemcached_probes.o -G -s libmemcached/libmemcached_probes.d `grep '^pic_object' *.lo | cut -f 2 -d\'`
157 $(DTRACE) $(DTRACEFLAGS) -o libmemcached/libmemcached_probes.o -G -s libmemcached/libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `
158