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