1 EXTRA_DIST = libmemcached_probes.d memcached/README.txt
3 BUILT_SOURCES= @DTRACE_HEADER@
5 INCLUDES = -I$(top_builddir)
10 DTRACEFLAGS = @DTRACEFLAGS@
12 noinst_HEADERS = libmemcached_probes.h \
15 memcached/protocol_binary.h @DTRACE_HEADER@
17 pkginclude_HEADERS= memcached.h \
19 libmemcached_config.h \
20 memcached_constants.h \
27 memcached_watchpoint.h
29 lib_LTLIBRARIES = libmemcached.la
31 libmemcached_la_SOURCES = crc.c \
35 memcached_behavior.c \
36 memcached_callback.c \
41 memcached_fetch_execute.c \
48 memcached_flush_buffers.c \
53 memcached_response.c \
59 memcached_strerror.c \
60 memcached_verbosity.c \
66 libmemcached_la_DEPENDENCIES = @DTRACE_OBJ@
67 libmemcached_la_LIBADD = @DTRACE_OBJ@
68 libmemcached_la_LDFLAGS = -version-info $(MEMCACHED_LIBRARY_VERSION)
70 dtrace_probes.h: libmemcached_probes.d
71 $(DTRACE) $(DTRACEFLAGS) -o dtrace_probes.tmp -h -s libmemcached_probes.d
72 sed "s/#include <unistd.h>//g" dtrace_probes.tmp > dtrace_probes.h
76 # So libtool doesn't support dtrace, but just copy one of the existing
77 # lo-file and replace the file name ;-)
78 libmemcached_probes.lo: libmemcached_probes.o
79 sed "s,jenkins_hash,libmemcached_probes,g" jenkins_hash.lo > libmemcached_probes.lo
81 libmemcached_probes.o: $(libmemcached_la_OBJECTS)
82 $(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`
83 $(DTRACE) $(DTRACEFLAGS) -o libmemcached_probes.o -G -s libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `