blob: e533c41b06ec7126a4d7af4598a192468ad58c23 [file] [log] [blame]
Roger Meierc2cc61a2010-11-30 19:53:29 +00001#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
Jens Geyer86777192015-07-25 15:59:46 +020019AUTOMAKE_OPTIONS = subdir-objects serial-tests
Roger Meier81a1f992014-10-22 14:09:43 +020020
Roger Meier213a6642010-10-27 12:30:11 +000021SUBDIRS =
22
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090023BUILT_SOURCES = \
Jens Geyer54f392b2015-08-05 21:45:10 +020024 gen-c_glib/t_test_container_test_types.c \
25 gen-c_glib/t_test_container_test_types.h \
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090026 gen-c_glib/t_test_debug_proto_test_types.h \
27 gen-c_glib/t_test_empty_service.h \
28 gen-c_glib/t_test_inherited.h \
29 gen-c_glib/t_test_optional_required_test_types.h \
30 gen-c_glib/t_test_reverse_order_service.h \
31 gen-c_glib/t_test_second_service.h \
32 gen-c_glib/t_test_service_for_exception_with_a_map.h \
Jens Geyer54f392b2015-08-05 21:45:10 +020033 gen-c_glib/t_test_container_service.c \
34 gen-c_glib/t_test_container_service.h \
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090035 gen-c_glib/t_test_srv.h \
36 gen-c_glib/t_test_thrift_test.h \
37 gen-c_glib/t_test_thrift_test_types.h
38
Simon Southdb3646f2015-08-01 12:18:12 +000039AM_CPPFLAGS = -I../src
40AM_CFLAGS = -g -Wall -Wextra -pedantic $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) \
41 @GCOV_CFLAGS@
42AM_CXXFLAGS = $(AM_CFLAGS)
Roger Meier213a6642010-10-27 12:30:11 +000043AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) @GCOV_LDFLAGS@
44
Roger Meier213a6642010-10-27 12:30:11 +000045check_PROGRAMS = \
Nobuaki Sukegawa362a5ed2015-12-01 22:17:24 +090046 testserialization \
Roger Meier909f1862014-07-24 23:52:14 +020047 testapplicationexception \
Jens Geyer54f392b2015-08-05 21:45:10 +020048 testcontainertest \
Roger Meier213a6642010-10-27 12:30:11 +000049 testtransportsocket \
Roger Meierc1010922010-11-26 10:17:48 +000050 testbinaryprotocol \
Chandler May6dde90b2016-01-10 06:01:10 +000051 testcompactprotocol \
Roger Meier213a6642010-10-27 12:30:11 +000052 testbufferedtransport \
53 testframedtransport \
54 testmemorybuffer \
55 teststruct \
56 testsimpleserver \
57 testdebugproto \
58 testoptionalrequired \
59 testthrifttest
60
61if WITH_CPP
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090062 BUILT_SOURCES += gen-cpp/ThriftTest_types.cpp
Roger Meier213a6642010-10-27 12:30:11 +000063 check_PROGRAMS += testthrifttestclient
64endif
65
Nobuaki Sukegawa362a5ed2015-12-01 22:17:24 +090066testserialization_SOURCES = testserialization.c
67testserialization_LDADD = \
68 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
69 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
70 libtestgenc.la
71
Roger Meier909f1862014-07-24 23:52:14 +020072testapplicationexception_SOURCES = testapplicationexception.c
73testapplicationexception_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +020074 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_application_exception.o \
75 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
76 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_struct.o \
77 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o
Roger Meier909f1862014-07-24 23:52:14 +020078
Jens Geyer54f392b2015-08-05 21:45:10 +020079testcontainertest_SOURCES = testcontainertest.c
80testcontainertest_LDADD = \
81 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_struct.o \
82 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
83 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
84 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport_factory.o \
85 $(top_builddir)/lib/c_glib/src/thrift/c_glib/processor/libthrift_c_glib_la-thrift_processor.o \
86 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol_factory.o \
87 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol.o \
88 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol_factory.o \
89 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
90 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
91 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
92 $(top_builddir)/lib/c_glib/src/thrift/c_glib/server/libthrift_c_glib_la-thrift_server.o \
93 libtestgenc.la
94
Roger Meier213a6642010-10-27 12:30:11 +000095testtransportsocket_SOURCES = testtransportsocket.c
96testtransportsocket_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +020097 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
98 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_buffered_transport.o \
99 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
100 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o
Roger Meier213a6642010-10-27 12:30:11 +0000101
Roger Meierc1010922010-11-26 10:17:48 +0000102testbinaryprotocol_SOURCES = testbinaryprotocol.c
103testbinaryprotocol_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200104 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
105 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
106 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
107 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
108 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o
Roger Meier213a6642010-10-27 12:30:11 +0000109
Chandler May6dde90b2016-01-10 06:01:10 +0000110testcompactprotocol_SOURCES = testcompactprotocol.c
111testcompactprotocol_LDADD = \
112 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
113 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
114 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
115 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
116 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o
117
Roger Meier213a6642010-10-27 12:30:11 +0000118testbufferedtransport_SOURCES = testbufferedtransport.c
119testbufferedtransport_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200120 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
121 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
122 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
123 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o
Roger Meier213a6642010-10-27 12:30:11 +0000124
125testframedtransport_SOURCES = testframedtransport.c
126testframedtransport_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200127 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
128 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
129 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
130 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o
Roger Meier213a6642010-10-27 12:30:11 +0000131
132testmemorybuffer_SOURCES = testmemorybuffer.c
133testmemorybuffer_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200134 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o
Roger Meier213a6642010-10-27 12:30:11 +0000135
136teststruct_SOURCES = teststruct.c
137teststruct_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200138 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
139 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o
Roger Meier213a6642010-10-27 12:30:11 +0000140
141testsimpleserver_SOURCES = testsimpleserver.c
142testsimpleserver_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200143 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
144 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
145 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport_factory.o \
146 $(top_builddir)/lib/c_glib/src/thrift/c_glib/processor/libthrift_c_glib_la-thrift_processor.o \
147 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol_factory.o \
148 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol.o \
149 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol_factory.o \
150 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
151 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
152 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
153 $(top_builddir)/lib/c_glib/src/thrift/c_glib/server/libthrift_c_glib_la-thrift_server.o
Roger Meier213a6642010-10-27 12:30:11 +0000154
155testdebugproto_SOURCES = testdebugproto.c
156testdebugproto_LDADD = libtestgenc.la
157
158testoptionalrequired_SOURCES = testoptionalrequired.c
159testoptionalrequired_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200160 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
161 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
Roger Meier213a6642010-10-27 12:30:11 +0000162 libtestgenc.la
163
Chandler May3fe3df22016-01-18 11:05:40 -0500164testthrifttest_SOURCES = testthrifttest.c \
165 $(top_srcdir)/test/c_glib/src/thrift_test_handler.c \
166 $(top_srcdir)/test/c_glib/src/thrift_test_handler.h \
167 gen-c_glib/t_test_thrift_test_types.h
Roger Meier213a6642010-10-27 12:30:11 +0000168testthrifttest_LDADD = libtestgenc.la
Chandler May3fe3df22016-01-18 11:05:40 -0500169testthrifttest_CFLAGS = -I$(top_srcdir)/test/c_glib/src -I./gen-c_glib $(GLIB_CFLAGS)
Roger Meier213a6642010-10-27 12:30:11 +0000170
171testthrifttestclient_SOURCES = testthrifttestclient.cpp
172testthrifttestclient_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp -I../src -I./gen-c_glib $(GLIB_CFLAGS)
173testthrifttestclient_LDADD = ../../cpp/.libs/libthrift.la ../libthrift_c_glib.la libtestgenc.la libtestgencpp.la
174testthrifttestclient_LDFLAGS = -L../.libs -L../../cpp/.libs $(GLIB_LIBS) $(GOBJECT_LIBS)
175
176check_LTLIBRARIES = libtestgenc.la
177
178if WITH_CPP
179 check_LTLIBRARIES += libtestgencpp.la
180endif
181
Bryan Duxbury39fbb9a2011-01-13 18:09:51 +0000182nodist_libtestgenc_la_SOURCES = \
Jens Geyer54f392b2015-08-05 21:45:10 +0200183 gen-c_glib/t_test_container_test_types.c \
Roger Meier213a6642010-10-27 12:30:11 +0000184 gen-c_glib/t_test_debug_proto_test_types.c \
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900185 gen-c_glib/t_test_enum_test_types.c \
186 gen-c_glib/t_test_enum_test_service.c \
Roger Meier213a6642010-10-27 12:30:11 +0000187 gen-c_glib/t_test_empty_service.c \
188 gen-c_glib/t_test_inherited.c \
189 gen-c_glib/t_test_optional_required_test_types.c \
190 gen-c_glib/t_test_reverse_order_service.c \
191 gen-c_glib/t_test_second_service.c \
192 gen-c_glib/t_test_service_for_exception_with_a_map.c \
193 gen-c_glib/t_test_srv.c \
Jens Geyer54f392b2015-08-05 21:45:10 +0200194 gen-c_glib/t_test_container_service.c \
Roger Meier213a6642010-10-27 12:30:11 +0000195 gen-c_glib/t_test_thrift_test.c \
196 gen-c_glib/t_test_thrift_test_types.c \
Jens Geyer54f392b2015-08-05 21:45:10 +0200197 gen-c_glib/t_test_container_test_types.h \
Roger Meier213a6642010-10-27 12:30:11 +0000198 gen-c_glib/t_test_debug_proto_test_types.h \
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900199 gen-c_glib/t_test_enum_test_types.h \
200 gen-c_glib/t_test_enum_test_service.h \
Roger Meier213a6642010-10-27 12:30:11 +0000201 gen-c_glib/t_test_empty_service.h \
202 gen-c_glib/t_test_inherited.h \
203 gen-c_glib/t_test_optional_required_test_types.h \
204 gen-c_glib/t_test_reverse_order_service.h \
205 gen-c_glib/t_test_second_service.h \
206 gen-c_glib/t_test_service_for_exception_with_a_map.h \
207 gen-c_glib/t_test_srv.h \
Jens Geyer54f392b2015-08-05 21:45:10 +0200208 gen-c_glib/t_test_container_service.h \
Roger Meier213a6642010-10-27 12:30:11 +0000209 gen-c_glib/t_test_thrift_test.h \
210 gen-c_glib/t_test_thrift_test_types.h
211libtestgenc_la_LIBADD = $(top_builddir)/lib/c_glib/libthrift_c_glib.la
Jens Geyer1c190272015-07-28 23:15:18 +0200212libtestgenc_la_CPPFLAGS = $(AM_CPPFLAGS) -Wno-unused-function
Roger Meier213a6642010-10-27 12:30:11 +0000213
Bryan Duxbury39fbb9a2011-01-13 18:09:51 +0000214nodist_libtestgencpp_la_SOURCES = \
Roger Meier213a6642010-10-27 12:30:11 +0000215 gen-cpp/ThriftTest.cpp \
216 gen-cpp/ThriftTest_constants.cpp \
217 gen-cpp/ThriftTest_types.cpp \
218 gen-cpp/ThriftTest.h \
219 gen-cpp/ThriftTest_constants.h \
220 gen-cpp/ThriftTest_types.h
221libtestgencpp_la_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp
222
223THRIFT = $(top_builddir)/compiler/cpp/thrift
224
Jens Geyer54f392b2015-08-05 21:45:10 +0200225gen-c_glib/t_test_container_test_types.c gen-c_glib/t_test_container_test_types.h gen-c_glib/t_test_container_service.c gen-c_glib/t_test_container_service.h: ContainerTest.thrift
226 $(THRIFT) --gen c_glib $<
227
Roger Meier213a6642010-10-27 12:30:11 +0000228gen-c_glib/t_test_debug_proto_test_types.c gen-c_glib/t_test_debug_proto_test_types.h gen-c_glib/t_test_empty_service.c gen-c_glib/t_test_empty_service.h gen-c_glib/t_test_inherited.c gen-c_glib/t_test_inherited.h gen-c_glib/t_test_reverse_order_service.c gen-c_glib/t_test_reverse_order_service.h gen-c_glib/t_test_service_for_exception_with_a_map.c gen-c_glib/t_test_service_for_exception_with_a_map.h gen-c_glib/t_test_srv.c gen-c_glib/t_test_srv.h: ../../../test/DebugProtoTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200229 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000230
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900231gen-c_glib/t_test_enum_test_types.c gen-c_glib/t_test_enum_test_types.h gen-c_glib/t_test_enum_test_service.c gen-c_glib/t_test_enum_test_service.h : ../../../test/EnumTest.thrift
232 $(THRIFT) --gen c_glib $<
233
Roger Meier213a6642010-10-27 12:30:11 +0000234gen-c_glib/t_test_optional_required_test_types.c gen-c_glib/t_test_optional_required_test_types.h: ../../../test/OptionalRequiredTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200235 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000236
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +0900237gen-c_glib/t_test_second_service.c gen-c_glib/t_test_thrift_test.c gen-c_glib/t_test_thrift_test_types.c gen-c_glib/t_test_second_service.h gen-c_glib/t_test_thrift_test.h gen-c_glib/t_test_thrift_test_types.h: ../../../test/ThriftTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200238 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000239
Roger Meier035870d2014-10-22 23:43:05 +0200240gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest_types.cpp: ../../../test/ThriftTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200241 $(THRIFT) --gen cpp $<
Roger Meier213a6642010-10-27 12:30:11 +0000242
Roger Meier213a6642010-10-27 12:30:11 +0000243TESTS = \
Roger Meier213a6642010-10-27 12:30:11 +0000244 $(check_PROGRAMS) \
245 $(check_SCRIPTS)
246
247# globally added to all instances of valgrind calls
248# VALGRIND_OPTS = --suppressions=glib.suppress
249VALGRIND_OPTS =
250
251# globally added to all memcheck calls
252VALGRIND_MEM_OPTS = --tool=memcheck \
253 --num-callers=10 \
254 ${myextravalgrindmemopts}
255
256# globally added to all leakcheck calls
257VALGRIND_LEAK_OPTS = --tool=memcheck \
258 --num-callers=10 \
259 --leak-check=full \
260 --leak-resolution=high \
261 ${myextravalgrindleakopts}
262
263memcheck: $(check_PROGRAMS)
Jens Geyer79f988c2014-10-03 20:42:54 +0200264 @for x in $(check_PROGRAMS); \
265 do \
266 $(MAKE) memcheck-$$x; \
267 done
Roger Meier213a6642010-10-27 12:30:11 +0000268
269leakcheck: $(check_PROGRAMS)
Jens Geyer79f988c2014-10-03 20:42:54 +0200270 @for x in $(check_PROGRAMS); \
271 do \
272 $(MAKE) leakcheck-$$x; \
273 done
Roger Meier213a6642010-10-27 12:30:11 +0000274
275memcheck-%: %
Jens Geyer79f988c2014-10-03 20:42:54 +0200276 @echo "*****************************************"; \
277 echo "MEMCHECK: $<"; \
278 echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_MEM_OPTS} ${$<_VALGRIND_MEM_OPTS}"; \
279 $(LIBTOOL) --mode=execute \
280 valgrind \
281 ${VALGRIND_OPTS} \
282 ${VALGRIND_MEM_OPTS} \
283 ${$<_VALGRIND_MEM_OPTS} ./$<
Roger Meier213a6642010-10-27 12:30:11 +0000284
285leakcheck-%: %
Jens Geyer79f988c2014-10-03 20:42:54 +0200286 @echo "*****************************************"; \
287 echo "LEAKCHECK: $<"; \
288 echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_LEAK_OPTS} ${$<_VALGRIND_LEAK_OPTS}"; \
289 G_SLICE=always-malloc $(LIBTOOL) --mode=execute \
290 valgrind \
291 ${VALGRIND_OPTS} \
292 ${VALGRIND_LEAK_OPTS} \
293 ${$<_VALGRIND_LEAK_OPTS} ./$<
Roger Meier213a6642010-10-27 12:30:11 +0000294
Roger Meier213a6642010-10-27 12:30:11 +0000295clean-local:
Jens Geyer8c5fce92015-07-28 22:59:16 +0200296 $(RM) gen-c_glib/* gen-cpp/*
Roger Meier213a6642010-10-27 12:30:11 +0000297
298CLEANFILES = \
Roger Meier213a6642010-10-27 12:30:11 +0000299 *.bb \
300 *.bbg \
301 *.da \
302 *.gcno \
303 *.gcda \
Roger Meierc1010922010-11-26 10:17:48 +0000304 *.gcov
jfarrellf13e4312015-08-25 00:39:29 -0400305
306EXTRA_DIST = \
307 CMakeLists.txt \
308 ContainerTest.thrift
309