Moved init for socket to options.
[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/libmemcached_probes.d \
7 libmemcached/memcached/README.txt \
8 libmemcached/memcached_configure.h.in
9
10
11 noinst_HEADERS+= \
12 libmemcached/byteorder.h \
13 libmemcached/libmemcached_probes.h \
14 libmemcached/io.h \
15 libmemcached/internal.h \
16 libmemcached/common.h \
17 libmemcached/memcached/protocol_binary.h \
18 libmemcached/protocol/common.h \
19 libmemcached/protocol/ascii_handler.h \
20 libmemcached/protocol/binary_handler.h
21
22 nobase_pkginclude_HEADERS+= \
23 libmemcached/analyze.h \
24 libmemcached/auto.h \
25 libmemcached/behavior.h \
26 libmemcached/callback.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_configure.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
47
48 lib_LTLIBRARIES+= libmemcached/libmemcachedprotocol.la
49 libmemcached_libmemcachedprotocol_la_SOURCES = \
50 libmemcached/protocol/ascii_handler.c \
51 libmemcached/protocol/binary_handler.c \
52 libmemcached/protocol/cache.c \
53 libmemcached/protocol/pedantic.c \
54 libmemcached/protocol/protocol_handler.c
55
56 libmemcached_libmemcachedprotocol_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0
57
58 noinst_LTLIBRARIES+= \
59 libmemcached/libmemcachedcallbacks.la
60
61 libmemcached_libmemcachedcallbacks_la_CFLAGS = ${AM_CFLAGS} ${NO_STRICT_ALIASING}
62 libmemcached_libmemcachedcallbacks_la_SOURCES = libmemcached/callback.c
63
64 # This noinst lib contains things we want to be ABI private but still want to
65 # either use in client programs or be able to test in test cases
66 # These symbols will not be exposed in the shipped .so
67 noinst_LTLIBRARIES+= \
68 libmemcached/libmemcachedinternal.la
69 libmemcached_libmemcachedinternal_la_SOURCES = libmemcached/string.c
70
71 lib_LTLIBRARIES+= libmemcached/libmemcached.la
72 libmemcached_libmemcached_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION}
73 libmemcached_libmemcached_la_SOURCES = \
74 libmemcached/allocators.c \
75 libmemcached/analyze.c \
76 libmemcached/auto.c \
77 libmemcached/behavior.c \
78 libmemcached/connect.c \
79 libmemcached/crc.c \
80 libmemcached/delete.c \
81 libmemcached/do.c \
82 libmemcached/dump.c \
83 libmemcached/fetch.c \
84 libmemcached/flush.c \
85 libmemcached/flush_buffers.c \
86 libmemcached/get.c \
87 libmemcached/hash.c \
88 libmemcached/hosts.c \
89 libmemcached/io.c \
90 libmemcached/jenkins_hash.c \
91 libmemcached/key.c \
92 libmemcached/md5.c \
93 libmemcached/memcached.c \
94 libmemcached/murmur_hash.c \
95 libmemcached/parse.c \
96 libmemcached/purge.c \
97 libmemcached/quit.c \
98 libmemcached/response.c \
99 libmemcached/result.c \
100 libmemcached/server.c \
101 libmemcached/stats.c \
102 libmemcached/storage.c \
103 libmemcached/strerror.c \
104 libmemcached/verbosity.c \
105 libmemcached/version.c
106
107
108 if INCLUDE_HSIEH_SRC
109 libmemcached_libmemcached_la_SOURCES += libmemcached/hsieh_hash.c
110 endif
111
112 libmemcached_libmemcached_la_DEPENDENCIES= libmemcached/libmemcachedcallbacks.la libmemcached/libmemcachedinternal.la
113 libmemcached_libmemcached_la_LIBADD= $(LIBM) libmemcached/libmemcachedcallbacks.la libmemcached/libmemcachedinternal.la
114 libmemcached_libmemcached_la_LDFLAGS= ${AM_LDFLAGS} -version-info 3:0:0
115
116 if BUILD_LIBMEMCACHEDUTIL
117 pkginclude_HEADERS+= libmemcached/memcached_util.h 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