Fix for solaris.
[m6w6/libmemcached] / libmemcached / Makefile.am
1 EXTRA_DIST = \
2 libmemcached.ver \
3 libmemcached_probes.d \
4 memcached/README.txt \
5 memcached_configure.h.in \
6 protocol/libmemcachedprotocol.ver \
7 util/libmemcachedutil.ver
8
9
10 EXTRA_HEADERS =
11 BUILT_SOURCES=
12
13 noinst_HEADERS = libmemcached_probes.h \
14 io.h \
15 internal.h \
16 common.h \
17 memcached/protocol_binary.h \
18 protocol/common.h \
19 protocol/ascii_handler.h \
20 protocol/binary_handler.h
21
22 pkginclude_HEADERS= \
23 behavior.h \
24 callback.h \
25 constants.h \
26 exception.hpp \
27 get.h \
28 memcached.h \
29 memcached.hpp \
30 memcached_configure.h \
31 protocol_handler.h \
32 result.h \
33 server.h \
34 storage.h \
35 string.h \
36 types.h \
37 visibility.h \
38 watchpoint.h
39
40 nobase_pkginclude_HEADERS = \
41 protocol/cache.h \
42 protocol/callback.h
43
44
45 libmemcachedprotocol_la_SOURCES = \
46 protocol/ascii_handler.c \
47 protocol/binary_handler.c \
48 protocol/cache.c \
49 protocol/pedantic.c \
50 protocol/protocol_handler.c
51
52 libmemcachedprotocol_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0
53
54 lib_LTLIBRARIES = libmemcached.la libmemcachedprotocol.la
55 noinst_LTLIBRARIES = libmemcachedcallbacks.la
56 libmemcachedcallbacks_la_CFLAGS = ${AM_CFLAGS} ${NO_STRICT_ALIASING}
57 libmemcachedcallbacks_la_SOURCES = callback.c
58
59 libmemcached_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION}
60 libmemcached_la_SOURCES = \
61 allocators.c \
62 analyze.c \
63 auto.c \
64 behavior.c \
65 connect.c \
66 crc.c \
67 delete.c \
68 do.c \
69 dump.c \
70 fetch.c \
71 flush.c \
72 flush_buffers.c \
73 get.c \
74 hash.c \
75 hosts.c \
76 io.c \
77 jenkins_hash.c \
78 key.c \
79 md5.c \
80 memcached.c \
81 murmur_hash.c \
82 parse.c \
83 purge.c \
84 quit.c \
85 response.c \
86 result.c \
87 server.c \
88 stats.c \
89 storage.c \
90 strerror.c \
91 string.c \
92 verbosity.c \
93 version.c
94
95
96 if INCLUDE_HSIEH_SRC
97 libmemcached_la_SOURCES += hsieh_hash.c
98 endif
99
100 libmemcached_la_DEPENDENCIES= libmemcachedcallbacks.la
101 libmemcached_la_LIBADD= $(LIBM) libmemcachedcallbacks.la
102 libmemcached_la_LDFLAGS= ${AM_LDFLAGS} -version-info 3:0:0
103
104 if BUILD_LIBMEMCACHEDUTIL
105 pkginclude_HEADERS+= memcached_util.h pool.h
106 lib_LTLIBRARIES+= libmemcachedutil.la
107 endif
108
109 libmemcachedutil_la_SOURCES= util/pool.c
110 libmemcachedutil_la_LIBADD= libmemcached.la
111 libmemcachedutil_la_LDFLAGS= ${AM_LDFLAGS} -version-info 0:0:0
112 libmemcachedutil_la_DEPENDENCIES=libmemcached.la
113
114 if BUILD_BYTEORDER
115 noinst_LTLIBRARIES += libbyteorder.la
116 libbyteorder_la_SOURCES= byteorder.c byteorder.h
117 libmemcached_la_LIBADD += libbyteorder.la
118 libmemcached_la_DEPENDENCIES+= libbyteorder.la
119 libmemcachedprotocol_la_LIBADD=libbyteorder.la
120 libmemcachedprotocol_la_DEPENDENCIES=libbyteorder.la
121 endif
122
123 if HAVE_DTRACE
124 BUILT_SOURCES+= dtrace_probes.h
125 libmemcached_la_SOURCES += libmemcached_probes.d
126 endif
127
128 if DTRACE_NEEDS_OBJECTS
129 libmemcached_la_DEPENDENCIES += libmemcached_probes.o
130 endif
131
132 SUFFIXES= .d
133
134 dtrace_probes.h: libmemcached_probes.d
135 $(DTRACE) $(DTRACEFLAGS) -h -o dtrace_probes.h -s libmemcached_probes.d
136
137 libmemcached_probes.o: libmemcached_probes.d $(libmemcached_la_OBJECTS)
138 $(DTRACE) $(DTRACEFLAGS) -o .libs/libmemcached_probes.o -G -s libmemcached_probes.d `grep '^pic_object' *.lo | cut -f 2 -d\'`
139 $(DTRACE) $(DTRACEFLAGS) -o libmemcached_probes.o -G -s libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `
140