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