Updating for 1.0.2 release
[awesomized/libmemcached] / libmemcached / include.am
1 # vim:ft=automake
2 # included from Top Level Makefile.am
3 # All paths should be given relative to the root
4
5 libmemcached_libmemcached_la_SOURCES =
6
7 include libmemcached/csl/include.am
8
9 EXTRA_DIST+= \
10 libmemcached/libmemcached_probes.d \
11 libmemcached/memcached/README.txt
12
13 nobase_include_HEADERS+= \
14 libmemcached/memcached.h \
15 libmemcached/memcached.hpp \
16 libmemcached/util.h
17
18 noinst_HEADERS+= \
19 libmemcached/array.h \
20 libmemcached/assert.hpp \
21 libmemcached/backtrace.hpp \
22 libmemcached/byteorder.h \
23 libmemcached/common.h \
24 libmemcached/continuum.hpp \
25 libmemcached/do.hpp \
26 libmemcached/error.hpp \
27 libmemcached/initialize_query.h \
28 libmemcached/internal.h \
29 libmemcached/io.h \
30 libmemcached/io.hpp \
31 libmemcached/is.h \
32 libmemcached/key.hpp \
33 libmemcached/libmemcached_probes.h \
34 libmemcached/memcached/protocol_binary.h \
35 libmemcached/memcached/vbucket.h \
36 libmemcached/memory.h \
37 libmemcached/namespace.h \
38 libmemcached/options.hpp \
39 libmemcached/response.h \
40 libmemcached/server.hpp \
41 libmemcached/server_instance.h \
42 libmemcached/string.hpp \
43 libmemcached/virtual_bucket.h \
44 libmemcached/watchpoint.h
45
46 lib_LTLIBRARIES+= libmemcached/libmemcached.la
47 libmemcached_libmemcached_la_CFLAGS= -DBUILDING_LIBMEMCACHED
48
49 libmemcached_libmemcached_la_CXXFLAGS= -DBUILDING_LIBMEMCACHED
50
51 libmemcached_libmemcached_la_SOURCES+= \
52 ${libhashkit_libhashkit_la_SOURCES} \
53 libmemcached/allocators.cc \
54 libmemcached/analyze.cc \
55 libmemcached/array.c \
56 libmemcached/auto.cc \
57 libmemcached/backtrace.cc \
58 libmemcached/behavior.cc \
59 libmemcached/byteorder.cc \
60 libmemcached/callback.cc \
61 libmemcached/connect.cc \
62 libmemcached/delete.cc \
63 libmemcached/do.cc \
64 libmemcached/dump.cc \
65 libmemcached/error.cc \
66 libmemcached/exist.cc \
67 libmemcached/fetch.cc \
68 libmemcached/flush.cc \
69 libmemcached/flush_buffers.cc \
70 libmemcached/get.cc \
71 libmemcached/touch.cc \
72 libmemcached/hash.cc \
73 libmemcached/hosts.cc \
74 libmemcached/initialize_query.cc \
75 libmemcached/io.cc \
76 libmemcached/key.cc \
77 libmemcached/memcached.cc \
78 libmemcached/options.cc \
79 libmemcached/parse.cc \
80 libmemcached/namespace.cc \
81 libmemcached/purge.cc \
82 libmemcached/quit.cc \
83 libmemcached/response.cc \
84 libmemcached/result.cc \
85 libmemcached/server.cc \
86 libmemcached/server_list.cc \
87 libmemcached/stats.cc \
88 libmemcached/storage.cc \
89 libmemcached/strerror.cc \
90 libmemcached/string.cc \
91 libmemcached/verbosity.cc \
92 libmemcached/version.cc \
93 libmemcached/virtual_bucket.c
94
95 libmemcached/options.cc: libmemcached/csl/parser.h
96
97
98 libmemcached_libmemcached_la_DEPENDENCIES=
99 libmemcached_libmemcached_la_LIBADD=
100 if TARGET_LINUX
101 libmemcached_libmemcached_la_LIBADD+= -lm
102 endif
103 libmemcached_libmemcached_la_LDFLAGS+= -version-info ${MEMCACHED_LIBRARY_VERSION}
104
105 libmemcached_libmemcached_la_LIBADD+= $(LTLIBSASL) $(LTLIBSASL2)
106 libmemcached_libmemcached_la_SOURCES += libmemcached/sasl.cc
107 if HAVE_SASL
108 libmemcached_libmemcached_la_CXXFLAGS+= ${PTHREAD_CFLAGS}
109 libmemcached_libmemcached_la_LIBADD+= ${PTHREAD_LIBS}
110 endif
111
112 if HAVE_DTRACE
113 BUILT_SOURCES+= libmemcached/dtrace_probes.h
114 CLEANFILES+= libmemcached/dtrace_probes.h
115 CLEANFILES+= libmemcached/libmemcached_probes.o
116
117 libmemcached_libmemcached_la_DEPENDENCIES += libmemcached/libmemcached_probes.o
118 libmemcached_libmemcached_la_LIBADD += libmemcached/libmemcached_probes.o
119 libmemcached_libmemcached_la_SOURCES += libmemcached/libmemcached_probes.d
120 endif
121
122 SUFFIXES+= .d
123
124 libmemcached/dtrace_probes.h: libmemcached/libmemcached_probes.d
125 $(DTRACE) $(DTRACEFLAGS) -h -o ${top_srcdir}/libmemcached/dtrace_probes.h -s ${top_srcdir}/libmemcached/libmemcached_probes.d
126
127 libmemcached/libmemcached_probes.o: libmemcached/libmemcached_probes.d ${libmemcached_libmemcached_la_OBJECTS} config.h
128
129 .d.o:
130 $(DTRACE) $(DTRACEFLAGS) -o $@ -G -s libmemcached/libmemcached_probes.d