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