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 \
52 memcached_response.c \
58 memcached_strerror.c \
59 memcached_verbosity.c \
65 libmemcached_la_DEPENDENCIES = @DTRACE_OBJ@
66 libmemcached_la_LIBADD = @DTRACE_OBJ@
67 libmemcached_la_LDFLAGS = -version-info $(MEMCACHED_LIBRARY_VERSION)
69 dtrace_probes.h: libmemcached_probes.d
70 $(DTRACE) $(DTRACEFLAGS) -o dtrace_probes.tmp -h -s libmemcached_probes.d
71 sed "s/#include <unistd.h>//g" dtrace_probes.tmp > dtrace_probes.h
75 # So libtool doesn't support dtrace, but just copy one of the existing
76 # lo-file and replace the file name ;-)
77 libmemcached_probes.lo: libmemcached_probes.o
78 sed "s,jenkins_hash,libmemcached_probes,g" jenkins_hash.lo > libmemcached_probes.lo
80 libmemcached_probes.o: $(libmemcached_la_OBJECTS)
81 $(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`
82 $(DTRACE) $(DTRACEFLAGS) -o libmemcached_probes.o -G -s libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `