More Cleanup
[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/stats.h \
49 libmemcached/storage.h \
50 libmemcached/strerror.h \
51 libmemcached/string.h \
52 libmemcached/types.h \
53 libmemcached/verbosity.h \
54 libmemcached/version.h \
55 libmemcached/visibility.h \
56 libmemcached/watchpoint.h
57
58 lib_LTLIBRARIES+= libmemcached/libmemcachedprotocol.la
59 libmemcached_libmemcachedprotocol_la_SOURCES = \
60 libmemcached/protocol/ascii_handler.c \
61 libmemcached/protocol/binary_handler.c \
62 libmemcached/protocol/cache.c \
63 libmemcached/protocol/pedantic.c \
64 libmemcached/protocol/protocol_handler.c
65
66 libmemcached_libmemcachedprotocol_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0
67
68 noinst_LTLIBRARIES+= \
69 libmemcached/libmemcachedcallbacks.la
70
71 libmemcached_libmemcachedcallbacks_la_CFLAGS = ${AM_CFLAGS} ${NO_STRICT_ALIASING}
72 libmemcached_libmemcachedcallbacks_la_SOURCES = libmemcached/callback.c
73
74 # This noinst lib contains things we want to be ABI private but still want to
75 # either use in client programs or be able to test in test cases
76 # These symbols will not be exposed in the shipped .so
77 noinst_LTLIBRARIES+= libmemcached/libmemcachedinternal.la
78 libmemcached_libmemcachedinternal_la_SOURCES= \
79 libmemcached/string.c
80
81 lib_LTLIBRARIES+= libmemcached/libmemcached.la
82 libmemcached_libmemcached_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION}
83 libmemcached_libmemcached_la_SOURCES = \
84 libmemcached/allocators.c \
85 libmemcached/analyze.c \
86 libmemcached/auto.c \
87 libmemcached/behavior.c \
88 libmemcached/connect.c \
89 libmemcached/delete.c \
90 libmemcached/do.c \
91 libmemcached/dump.c \
92 libmemcached/fetch.c \
93 libmemcached/flush.c \
94 libmemcached/flush_buffers.c \
95 libmemcached/get.c \
96 libmemcached/hash.c \
97 libmemcached/hosts.c \
98 libmemcached/io.c \
99 libmemcached/key.c \
100 libmemcached/memcached.c \
101 libmemcached/parse.c \
102 libmemcached/purge.c \
103 libmemcached/quit.c \
104 libmemcached/response.c \
105 libmemcached/result.c \
106 libmemcached/server.c \
107 libmemcached/server_list.c \
108 libmemcached/stats.c \
109 libmemcached/storage.c \
110 libmemcached/strerror.c \
111 libmemcached/verbosity.c \
112 libmemcached/version.c
113
114
115 libmemcached_libmemcached_la_DEPENDENCIES= libmemcached/libmemcachedcallbacks.la libmemcached/libmemcachedinternal.la libhashkit/libhashkitinc.la
116 libmemcached_libmemcached_la_LIBADD= $(LIBM) libmemcached/libmemcachedcallbacks.la libmemcached/libmemcachedinternal.la libhashkit/libhashkitinc.la
117 libmemcached_libmemcached_la_LDFLAGS= ${AM_LDFLAGS} -version-info ${MEMCACHED_LIBRARY_VERSION}
118
119 if BUILD_LIBMEMCACHEDUTIL
120 nobase_include_HEADERS+= \
121 libmemcached/memcached_util.h \
122 libmemcached/util/pool.h
123 lib_LTLIBRARIES+= libmemcached/libmemcachedutil.la
124 endif
125
126 libmemcached_libmemcachedutil_la_SOURCES= libmemcached/util/pool.c
127 libmemcached_libmemcachedutil_la_LIBADD= libmemcached/libmemcached.la
128 libmemcached_libmemcachedutil_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0
129 libmemcached_libmemcachedutil_la_DEPENDENCIES= libmemcached/libmemcached.la
130
131 if BUILD_BYTEORDER
132 noinst_LTLIBRARIES += libmemcached/libbyteorder.la
133 libmemcached_libbyteorder_la_SOURCES= libmemcached/byteorder.c
134 libmemcached_libmemcached_la_LIBADD += libmemcached/libbyteorder.la
135 libmemcached_libmemcached_la_DEPENDENCIES+= libmemcached/libbyteorder.la
136 libmemcached_libmemcachedprotocol_la_LIBADD=libmemcached/libbyteorder.la
137 libmemcached_libmemcachedprotocol_la_DEPENDENCIES=libmemcached/libbyteorder.la
138 endif
139
140 if HAVE_DTRACE
141 BUILT_SOURCES+= libmemcached/dtrace_probes.h
142 libmemcached_libmemcached_la_SOURCES += libmemcached/libmemcached_probes.d
143 endif
144
145 if DTRACE_NEEDS_OBJECTS
146 libmemcached_libmemcached_la_DEPENDENCIES += libmemcached/libmemcached_probes.o
147 endif
148
149 SUFFIXES+= .d
150
151 libmemcached/dtrace_probes.h: libmemcached/libmemcached_probes.d
152 $(DTRACE) $(DTRACEFLAGS) -h -o libmemcached/dtrace_probes.h -s libmemcached/libmemcached_probes.d
153
154 libmemcached/libmemcached_probes.o: libmemcached/libmemcached_probes.d $(libmemcached_libmemcached_la_OBJECTS)
155 $(DTRACE) $(DTRACEFLAGS) -o libmemcached/.libs/libmemcached_probes.o -G -s libmemcached/libmemcached_probes.d `grep '^pic_object' *.lo | cut -f 2 -d\'`
156 $(DTRACE) $(DTRACEFLAGS) -o libmemcached/libmemcached_probes.o -G -s libmemcached/libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `
157