Update pandora
[m6w6/libmemcached] / libmemcached / Makefile.am
1 EXTRA_DIST = libmemcached_probes.d memcached/README.txt libmemcached.ver \
2 memcached_configure.h.in
3
4 EXTRA_HEADERS =
5 BUILT_SOURCES=
6
7 noinst_HEADERS = libmemcached_probes.h \
8 memcached_io.h \
9 memcached_internal.h \
10 common.h \
11 memcached/protocol_binary.h
12
13 pkginclude_HEADERS= memcached.h \
14 memcached.hpp \
15 memcached_configure.h \
16 memcached_constants.h \
17 memcached_get.h \
18 memcached_result.h \
19 memcached_server.h \
20 memcached_storage.h \
21 memcached_string.h \
22 memcached_types.h \
23 memcached_watchpoint.h \
24 visibility.h
25
26
27 if BUILD_LIBMEMCACHEDUTIL
28 pkginclude_HEADERS+= memcached_util.h memcached_pool.h
29 endif
30
31 lib_LTLIBRARIES = libmemcached.la
32 noinst_LTLIBRARIES = libmemcachedcallbacks.la
33 libmemcachedcallbacks_la_CFLAGS = ${AM_CFLAGS} ${NO_STRICT_ALIASING}
34 libmemcachedcallbacks_la_SOURCES = memcached_callback.c
35
36 libmemcached_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION}
37 libmemcached_la_SOURCES = crc.c \
38 memcached.c \
39 memcached_auto.c \
40 memcached_analyze.c \
41 memcached_behavior.c \
42 memcached_connect.c \
43 memcached_delete.c \
44 memcached_do.c \
45 memcached_dump.c \
46 memcached_fetch.c \
47 memcached_flush.c \
48 memcached_get.c \
49 memcached_hash.c \
50 memcached_hosts.c \
51 memcached_io.c \
52 memcached_purge.c \
53 memcached_flush_buffers.c \
54 md5.c \
55 memcached_key.c \
56 memcached_quit.c \
57 memcached_parse.c \
58 memcached_response.c \
59 memcached_result.c \
60 memcached_server.c \
61 memcached_storage.c \
62 memcached_string.c \
63 memcached_stats.c \
64 memcached_strerror.c \
65 memcached_verbosity.c \
66 memcached_version.c \
67 murmur_hash.c \
68 jenkins_hash.c \
69 memcached_allocators.c
70
71
72 if INCLUDE_HSIEH_SRC
73 libmemcached_la_SOURCES += hsieh_hash.c
74 endif
75
76 if BUILD_BYTEORDER
77 libmemcached_la_SOURCES += byteorder.c
78 endif
79
80 libmemcached_la_DEPENDENCIES= libmemcachedcallbacks.la
81 libmemcached_la_LIBADD= $(LIBM) libmemcachedcallbacks.la
82 libmemcached_la_LDFLAGS = -version-info $(MEMCACHED_LIBRARY_VERSION) $(LD_VERSION_SCRIPT) $(LIBM)
83
84 if HAVE_DTRACE
85 BUILT_SOURCES+= dtrace_probes.h
86 libmemcached_la_SOURCES += libmemcached_probes.d
87 endif
88
89 if DTRACE_NEEDS_OBJECTS
90 libmemcached_la_DEPENDENCIES += libmemcached_probes.o
91 endif
92
93 SUFFIXES= .d
94
95 dtrace_probes.h: libmemcached_probes.d
96 $(DTRACE) $(DTRACEFLAGS) -h -o dtrace_probes.h -s libmemcached_probes.d
97
98 libmemcached_probes.o: libmemcached_probes.d $(libmemcached_la_OBJECTS)
99 $(DTRACE) $(DTRACEFLAGS) -o .libs/libmemcached_probes.o -G -s libmemcached_probes.d `grep '^pic_object' *.lo | cut -f 2 -d\'`
100 $(DTRACE) $(DTRACEFLAGS) -o libmemcached_probes.o -G -s libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `
101