forked from basho-labs/riak-c-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
217 lines (190 loc) · 5.96 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
ACLOCAL_AMFLAGS = -I m4
SRCDIR = $(top_srcdir)/src
RIAK_PB = $(top_srcdir)/riak_pb
EXAMPLESDIR = $(top_srcdir)/examples
TESTCUNITDIR = $(top_srcdir)/test/cunit
include_HEADERS = src/include/riak.h \
src/include/riak_array.h \
src/include/riak_async.h \
src/include/riak_binary.h \
src/include/riak_bucketprops.h \
src/include/riak_config.h \
src/include/riak_connection.h \
src/include/riak_error.h \
src/include/riak_log.h \
src/include/riak_log_config.h \
src/include/riak_messages.h \
src/include/riak_network.h \
src/include/riak_object.h \
src/include/riak_operation.h \
src/include/riak_types.h \
src/include/riak_print.h \
src/adapters/riak_libevent.h
msgincludedir = $(includedir)/messages
dist_msginclude_DATA = src/include/messages/riak_2i.h \
src/include/messages/riak_delete.h \
src/include/messages/riak_server_error.h \
src/include/messages/riak_get.h \
src/include/messages/riak_get_bucketprops.h \
src/include/messages/riak_get_clientid.h \
src/include/messages/riak_listbuckets.h \
src/include/messages/riak_listkeys.h \
src/include/messages/riak_mapreduce.h \
src/include/messages/riak_ping.h \
src/include/messages/riak_put.h \
src/include/messages/riak_reset_bucketprops.h \
src/include/messages/riak_search.h \
src/include/messages/riak_serverinfo.h \
src/include/messages/riak_set_bucketprops.h \
src/include/messages/riak_set_clientid.h
lib_LTLIBRARIES = libriak_c_client-0.5.la
libriak_c_client_0_5_la_SOURCES = \
src/riak.c \
src/riak_async.c \
src/riak_array.c \
src/riak_binary.c \
src/riak_bucketprops.c \
src/riak_config.c \
src/riak_connection.c \
src/riak_error.c \
src/riak_log.c \
src/riak_messages.c \
src/riak_network.c \
src/riak_object.c \
src/riak_operation.c \
src/riak_print.c \
src/riak_utils.c \
src/messages/riak_2i.c \
src/messages/riak_delete.c \
src/messages/riak_server_error.c \
src/messages/riak_get.c \
src/messages/riak_get_bucketprops.c \
src/messages/riak_get_clientid.c \
src/messages/riak_listbuckets.c \
src/messages/riak_listkeys.c \
src/messages/riak_mapreduce.c \
src/messages/riak_ping.c \
src/messages/riak_put.c \
src/messages/riak_reset_bucketprops.c \
src/messages/riak_search.c \
src/messages/riak_serverinfo.c \
src/messages/riak_set_bucketprops.c \
src/messages/riak_set_clientid.c \
riak_pb/c/riak.pb-c.c \
riak_pb/c/riak_dt.pb-c.c \
riak_pb/c/riak_kv.pb-c.c \
riak_pb/c/riak_search.pb-c.c \
riak_pb/c/riak_yokozuna.pb-c.c
libriak_c_client_0_5_la_CPPFLAGS = \
$(PROTOBUFC_CFLAGS) \
$(PROTOBUF_CFLAGS) \
$(EVENT_CFLAGS) \
$(GLIB_CFLAGS) \
-I$(SRCDIR)/include \
-I$(SRCDIR)/internal \
-I$(RIAK_PB)/c \
-I$(SRCDIR) \
-DUSE_DEBUG
libriak_c_client_0_5_la_LIBADD = \
$(PROTOBUFC_LIBS) \
$(PROTOBUF_LIBS) \
$(EVENT_LIBS) \
$(GLIB_LIBS)
AM_CFLAGS = -g -Wall
EXTRA_DIST = $(SRCDIR)/include $(SRCDIR)/internal $(SRCDIR)/adapters \
$(EXAMPLESDIR)/include/example_call_backs.h \
$(EXAMPLESDIR)/include/riak_command.h \
$(TESTCUNITDIR)/include
bin_PROGRAMS = riak_c_example riak_c_async_example
riak_c_example_SOURCES = examples/example.c \
examples/riak_command.c \
examples/example_log.c
riak_c_example_CPPFLAGS = \
-DUSE_DEBUG -D_RIAK_DEBUG \
-I$(SRCDIR)/include \
-I$(SRCDIR)/internal \
-I$(RIAK_PB)/c \
-I$(SRCDIR)/adapters \
-I$(SRCDIR) \
$(GLIB_CFLAGS) \
-Iexamples/include
riak_c_example_LDADD = \
-lriak_c_client-0.5 \
$(PROTOBUFC_LIBS) \
$(PROTOBUF_LIBS) \
$(GLIB_LIBS)
riak_c_async_example_DEPENDENCIES = libriak_c_client-0.5.la
riak_c_async_example_SOURCES = examples/async_example.c \
examples/riak_command.c \
examples/example_call_backs.c \
examples/example_log.c
riak_c_async_example_CPPFLAGS = \
-DUSE_DEBUG -D_RIAK_DEBUG \
-I$(SRCDIR)/include \
-I$(SRCDIR)/internal \
-I$(RIAK_PB)/c \
-I$(SRCDIR)/adapters \
-I$(SRCDIR) \
-Iexamples/include \
$(EVENT_CFLAGS) \
$(GLIB_CFLAGS)
riak_c_async_example_LDADD = \
-lriak_c_client-0.5 \
$(PROTOBUFC_LIBS) \
$(PROTOBUF_LIBS) \
$(EVENT_LIBS) \
$(GLIB_LIBS)
check_PROGRAMS = riak_c_cunit
riak_c_cunit_SOURCES = test/cunit/test.c \
test/cunit/registry.c \
test/cunit/test_2i.c \
test/cunit/test_array.c \
test/cunit/test_binary.c \
test/cunit/test_bucket_key_value.c \
test/cunit/test_bucketprops.c \
test/cunit/test_clientid.c \
test/cunit/test_config.c \
test/cunit/test_connection.c \
test/cunit/test_delete.c \
test/cunit/test_get.c \
test/cunit/test_log.c \
test/cunit/test_mapreduce.c \
test/cunit/test_operation.c \
test/cunit/test_listbuckets.c \
test/cunit/test_listkeys.c \
test/cunit/test_object.c \
test/cunit/test_ping.c \
test/cunit/test_put.c \
test/cunit/test_search.c \
test/cunit/test_server_error.c \
test/cunit/test_serverinfo.c
riak_c_cunit_CPPFLAGS = -I$(SRCDIR)/include \
-I$(SRCDIR)/internal \
-I$(RIAK_PB)/c \
-I$(SRCDIR) \
-I$(TESTCUNITDIR)/include \
$(EVENT_CFLAGS) \
$(CUNIT_CFLAGS) \
$(GLIB_CFLAGS)
riak_c_cunit_LDADD = -lriak_c_client-0.5 \
$(PROTOBUFC_LIBS) \
$(PROTOBUF_LIBS) \
$(EVENT_LIBS) \
$(CUNIT_LIBS) \
$(GLIB_LIBS)
riak_c_cunit_DEPENDENCIES = libriak_c_client-0.5.la
TESTS = riak_c_cunit
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = riak-c-client-async.pc \
riak-c-client.pc
integration-tests: $(check_PROGRAMS)
./riak_c_cunit --integration
valgrind-tests: $(check_PROGRAMS)
$(LIBTOOL) --mode=execute valgrind --leak-check=full --show-leak-kinds=all ./riak_c_cunit
valgrind-integration-tests: $(check_PROGRAMS)
$(LIBTOOL) --mode=execute valgrind --leak-check=full --show-leak-kinds=all ./riak_c_cunit --integration
gdb-tests: $(check_PROGRAMS)
$(LIBTOOL) --mode=execute gdb ./riak_c_cunit
lldb-tests: $(check_PROGRAMS)
$(LIBTOOL) --mode=execute lldb ./riak_c_cunit
.PHONY: integration-tests valgrind-tests valgrind-integration-tests gdb-tests lldb-tests