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 \
36 memcached_behavior.c \
37 memcached_callback.c \
42 memcached_fetch_execute.c \
49 memcached_flush_buffers.c \
54 memcached_response.c \
60 memcached_strerror.c \
61 memcached_verbosity.c \
67 libmemcached_la_SOURCES += byteorder.c
70 AM_CFLAGS = -DMEMCACHED_INTERNAL
71 libmemcached_la_DEPENDENCIES = @DTRACE_OBJ@
72 libmemcached_la_LIBADD = @DTRACE_OBJ@
73 libmemcached_la_LDFLAGS = -version-info $(MEMCACHED_LIBRARY_VERSION)
75 dtrace_probes.h: libmemcached_probes.d
76 $(DTRACE) $(DTRACEFLAGS) -o dtrace_probes.tmp -h -s libmemcached_probes.d
77 sed "s/#include <unistd.h>//g" dtrace_probes.tmp > dtrace_probes.h
81 # So libtool doesn't support dtrace, but just copy one of the existing
82 # lo-file and replace the file name ;-)
83 libmemcached_probes.lo: libmemcached_probes.o
84 sed "s,jenkins_hash,libmemcached_probes,g" jenkins_hash.lo > libmemcached_probes.lo
86 libmemcached_probes.o: $(libmemcached_la_OBJECTS)
87 $(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`
88 $(DTRACE) $(DTRACEFLAGS) -o libmemcached_probes.o -G -s libmemcached_probes.d `grep non_pic_object *.lo | cut -f 2 -d\' `