Fix from Trond for deprecation
[m6w6/libmemcached] / libmemcached / Makefile.am
1 EXTRA_DIST = libmemcached_probes.d memcached/README.txt libmemcached.ver \
2 memcached_configure.h.in
3
4 BUILT_SOURCES= @DTRACE_HEADER@
5
6 EXTRA_HEADERS =
7 DTRACE = @DTRACE@
8 DTRACEFLAGS = @DTRACEFLAGS@
9
10 noinst_HEADERS = libmemcached_probes.h \
11 libmemcached_config.h \
12 memcached_io.h \
13 memcached_internal.h \
14 common.h \
15 memcached/protocol_binary.h @DTRACE_HEADER@
16
17 pkginclude_HEADERS= memcached.h \
18 memcached.hh \
19 memcached_configure.h \
20 memcached_constants.h \
21 memcached_get.h \
22 memcached_result.h \
23 memcached_server.h \
24 memcached_storage.h \
25 memcached_string.h \
26 memcached_types.h \
27 memcached_watchpoint.h
28
29 if BUILD_LIBMEMCACHEDUTIL
30 pkginclude_HEADERS+= memcached_util.h memcached_pool.h
31 endif
32
33 lib_LTLIBRARIES = libmemcached.la
34
35 libmemcached_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION}
36 libmemcached_la_SOURCES = crc.c \
37 memcached.c \
38 memcached_auto.c \
39 memcached_analyze.c \
40 memcached_behavior.c \
41 memcached_callback.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 if INCLUDE_HSIEH_SRC
72 libmemcached_la_SOURCES += hsieh_hash.c
73 endif
74
75 if BUILD_BYTEORDER
76 libmemcached_la_SOURCES += byteorder.c
77 endif
78
79 DEFS += -DMEMCACHED_INTERNAL
80 libmemcached_la_DEPENDENCIES = @DTRACE_OBJ@
81 libmemcached_la_LIBADD = @DTRACE_OBJ@ $(LIBM)
82 libmemcached_la_LDFLAGS = -version-info $(MEMCACHED_LIBRARY_VERSION) $(LD_VERSION_SCRIPT) $(LIBM)
83
84 dtrace_probes.h: libmemcached_probes.d
85 $(DTRACE) $(DTRACEFLAGS) -o dtrace_probes.tmp -h -s libmemcached_probes.d
86 sed "s/#include <unistd.h>//g" dtrace_probes.tmp > dtrace_probes.h
87 rm dtrace_probes.tmp
88
89
90 # So libtool doesn't support dtrace, but just copy one of the existing
91 # lo-file and replace the file name ;-)
92 libmemcached_probes.lo: libmemcached_probes.o
93 sed "s,jenkins_hash,libmemcached_probes,g" jenkins_hash.lo > libmemcached_probes.lo
94
95 libmemcached_probes.o: $(libmemcached_la_OBJECTS)
96 $(DTRACE) $(DTRACEFLAGS) -o .libs/libmemcached_probes.o -G -s libmemcached_probes.d `grep pic_object *.lo | cut -f 2 -d\' | grep -v non_pic_object`
97 $(DTRACE) $(DTRACEFLAGS) -o libmemcached_probes.o -G -s libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `
98