blob: ab1c7f083f33a62d0b7d024ced3dcdca09738e1e [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
Nobuaki Sukegawa60769702016-01-23 19:25:06 +090039AM_CPPFLAGS = -I../src -I./gen-c_glib
Simon Southdb3646f2015-08-01 12:18:12 +000040AM_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
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900164testthrifttest_SOURCES = testthrifttest.c
165testthrifttest_LDADD = libtestgenc.la \
166 $(top_builddir)/test/c_glib/src/thrift_test_handler.o
Chandler May3fe3df22016-01-18 11:05:40 -0500167testthrifttest_CFLAGS = -I$(top_srcdir)/test/c_glib/src -I./gen-c_glib $(GLIB_CFLAGS)
Roger Meier213a6642010-10-27 12:30:11 +0000168
169testthrifttestclient_SOURCES = testthrifttestclient.cpp
170testthrifttestclient_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp -I../src -I./gen-c_glib $(GLIB_CFLAGS)
171testthrifttestclient_LDADD = ../../cpp/.libs/libthrift.la ../libthrift_c_glib.la libtestgenc.la libtestgencpp.la
172testthrifttestclient_LDFLAGS = -L../.libs -L../../cpp/.libs $(GLIB_LIBS) $(GOBJECT_LIBS)
173
174check_LTLIBRARIES = libtestgenc.la
175
176if WITH_CPP
177 check_LTLIBRARIES += libtestgencpp.la
178endif
179
Bryan Duxbury39fbb9a2011-01-13 18:09:51 +0000180nodist_libtestgenc_la_SOURCES = \
Jens Geyer54f392b2015-08-05 21:45:10 +0200181 gen-c_glib/t_test_container_test_types.c \
Roger Meier213a6642010-10-27 12:30:11 +0000182 gen-c_glib/t_test_debug_proto_test_types.c \
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900183 gen-c_glib/t_test_enum_test_types.c \
184 gen-c_glib/t_test_enum_test_service.c \
Roger Meier213a6642010-10-27 12:30:11 +0000185 gen-c_glib/t_test_empty_service.c \
186 gen-c_glib/t_test_inherited.c \
187 gen-c_glib/t_test_optional_required_test_types.c \
188 gen-c_glib/t_test_reverse_order_service.c \
189 gen-c_glib/t_test_second_service.c \
190 gen-c_glib/t_test_service_for_exception_with_a_map.c \
191 gen-c_glib/t_test_srv.c \
Jens Geyer54f392b2015-08-05 21:45:10 +0200192 gen-c_glib/t_test_container_service.c \
Roger Meier213a6642010-10-27 12:30:11 +0000193 gen-c_glib/t_test_thrift_test.c \
194 gen-c_glib/t_test_thrift_test_types.c \
Jens Geyer54f392b2015-08-05 21:45:10 +0200195 gen-c_glib/t_test_container_test_types.h \
Roger Meier213a6642010-10-27 12:30:11 +0000196 gen-c_glib/t_test_debug_proto_test_types.h \
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900197 gen-c_glib/t_test_enum_test_types.h \
198 gen-c_glib/t_test_enum_test_service.h \
Roger Meier213a6642010-10-27 12:30:11 +0000199 gen-c_glib/t_test_empty_service.h \
200 gen-c_glib/t_test_inherited.h \
201 gen-c_glib/t_test_optional_required_test_types.h \
202 gen-c_glib/t_test_reverse_order_service.h \
203 gen-c_glib/t_test_second_service.h \
204 gen-c_glib/t_test_service_for_exception_with_a_map.h \
205 gen-c_glib/t_test_srv.h \
Jens Geyer54f392b2015-08-05 21:45:10 +0200206 gen-c_glib/t_test_container_service.h \
Roger Meier213a6642010-10-27 12:30:11 +0000207 gen-c_glib/t_test_thrift_test.h \
208 gen-c_glib/t_test_thrift_test_types.h
209libtestgenc_la_LIBADD = $(top_builddir)/lib/c_glib/libthrift_c_glib.la
Jens Geyer1c190272015-07-28 23:15:18 +0200210libtestgenc_la_CPPFLAGS = $(AM_CPPFLAGS) -Wno-unused-function
Roger Meier213a6642010-10-27 12:30:11 +0000211
Bryan Duxbury39fbb9a2011-01-13 18:09:51 +0000212nodist_libtestgencpp_la_SOURCES = \
Roger Meier213a6642010-10-27 12:30:11 +0000213 gen-cpp/ThriftTest.cpp \
214 gen-cpp/ThriftTest_constants.cpp \
215 gen-cpp/ThriftTest_types.cpp \
216 gen-cpp/ThriftTest.h \
217 gen-cpp/ThriftTest_constants.h \
218 gen-cpp/ThriftTest_types.h
219libtestgencpp_la_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp
220
221THRIFT = $(top_builddir)/compiler/cpp/thrift
222
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900223gen-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 $(THRIFT)
Jens Geyer54f392b2015-08-05 21:45:10 +0200224 $(THRIFT) --gen c_glib $<
225
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900226gen-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 $(THRIFT)
Jens Geyer79f988c2014-10-03 20:42:54 +0200227 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000228
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900229gen-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 $(THRIFT)
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900230 $(THRIFT) --gen c_glib $<
231
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900232gen-c_glib/t_test_optional_required_test_types.c gen-c_glib/t_test_optional_required_test_types.h: ../../../test/OptionalRequiredTest.thrift $(THRIFT)
Jens Geyer79f988c2014-10-03 20:42:54 +0200233 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000234
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900235gen-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 $(THRIFT)
Jens Geyer79f988c2014-10-03 20:42:54 +0200236 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000237
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900238gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest_types.cpp: ../../../test/ThriftTest.thrift $(THRIFT)
Jens Geyer79f988c2014-10-03 20:42:54 +0200239 $(THRIFT) --gen cpp $<
Roger Meier213a6642010-10-27 12:30:11 +0000240
Roger Meier213a6642010-10-27 12:30:11 +0000241TESTS = \
Roger Meier213a6642010-10-27 12:30:11 +0000242 $(check_PROGRAMS) \
243 $(check_SCRIPTS)
244
245# globally added to all instances of valgrind calls
246# VALGRIND_OPTS = --suppressions=glib.suppress
247VALGRIND_OPTS =
248
249# globally added to all memcheck calls
250VALGRIND_MEM_OPTS = --tool=memcheck \
251 --num-callers=10 \
252 ${myextravalgrindmemopts}
253
254# globally added to all leakcheck calls
255VALGRIND_LEAK_OPTS = --tool=memcheck \
256 --num-callers=10 \
257 --leak-check=full \
258 --leak-resolution=high \
259 ${myextravalgrindleakopts}
260
261memcheck: $(check_PROGRAMS)
Jens Geyer79f988c2014-10-03 20:42:54 +0200262 @for x in $(check_PROGRAMS); \
263 do \
264 $(MAKE) memcheck-$$x; \
265 done
Roger Meier213a6642010-10-27 12:30:11 +0000266
267leakcheck: $(check_PROGRAMS)
Jens Geyer79f988c2014-10-03 20:42:54 +0200268 @for x in $(check_PROGRAMS); \
269 do \
270 $(MAKE) leakcheck-$$x; \
271 done
Roger Meier213a6642010-10-27 12:30:11 +0000272
273memcheck-%: %
Jens Geyer79f988c2014-10-03 20:42:54 +0200274 @echo "*****************************************"; \
275 echo "MEMCHECK: $<"; \
276 echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_MEM_OPTS} ${$<_VALGRIND_MEM_OPTS}"; \
277 $(LIBTOOL) --mode=execute \
278 valgrind \
279 ${VALGRIND_OPTS} \
280 ${VALGRIND_MEM_OPTS} \
281 ${$<_VALGRIND_MEM_OPTS} ./$<
Roger Meier213a6642010-10-27 12:30:11 +0000282
283leakcheck-%: %
Jens Geyer79f988c2014-10-03 20:42:54 +0200284 @echo "*****************************************"; \
285 echo "LEAKCHECK: $<"; \
286 echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_LEAK_OPTS} ${$<_VALGRIND_LEAK_OPTS}"; \
287 G_SLICE=always-malloc $(LIBTOOL) --mode=execute \
288 valgrind \
289 ${VALGRIND_OPTS} \
290 ${VALGRIND_LEAK_OPTS} \
291 ${$<_VALGRIND_LEAK_OPTS} ./$<
Roger Meier213a6642010-10-27 12:30:11 +0000292
Roger Meier213a6642010-10-27 12:30:11 +0000293clean-local:
Jens Geyer8c5fce92015-07-28 22:59:16 +0200294 $(RM) gen-c_glib/* gen-cpp/*
Roger Meier213a6642010-10-27 12:30:11 +0000295
296CLEANFILES = \
Roger Meier213a6642010-10-27 12:30:11 +0000297 *.bb \
298 *.bbg \
299 *.da \
300 *.gcno \
301 *.gcda \
Roger Meierc1010922010-11-26 10:17:48 +0000302 *.gcov
jfarrellf13e4312015-08-25 00:39:29 -0400303
304EXTRA_DIST = \
305 CMakeLists.txt \
306 ContainerTest.thrift
307