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