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