Roger Meier | c2cc61a | 2010-11-30 19:53:29 +0000 | [diff] [blame] | 1 | # |
| 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 Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 20 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 21 | SUBDIRS = |
| 22 | |
Nobuaki Sukegawa | ef0a8fa | 2015-05-10 20:21:17 +0900 | [diff] [blame] | 23 | BUILT_SOURCES = \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 24 | gen-c_glib/t_test_container_test_types.c \ |
| 25 | gen-c_glib/t_test_container_test_types.h \ |
Nobuaki Sukegawa | ef0a8fa | 2015-05-10 20:21:17 +0900 | [diff] [blame] | 26 | 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 Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 33 | gen-c_glib/t_test_container_service.c \ |
| 34 | gen-c_glib/t_test_container_service.h \ |
Nobuaki Sukegawa | ef0a8fa | 2015-05-10 20:21:17 +0900 | [diff] [blame] | 35 | 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 South | db3646f | 2015-08-01 12:18:12 +0000 | [diff] [blame] | 39 | AM_CPPFLAGS = -I../src |
| 40 | AM_CFLAGS = -g -Wall -Wextra -pedantic $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) \ |
| 41 | @GCOV_CFLAGS@ |
| 42 | AM_CXXFLAGS = $(AM_CFLAGS) |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 43 | AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) @GCOV_LDFLAGS@ |
| 44 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 45 | check_PROGRAMS = \ |
Nobuaki Sukegawa | 362a5ed | 2015-12-01 22:17:24 +0900 | [diff] [blame] | 46 | testserialization \ |
Roger Meier | 909f186 | 2014-07-24 23:52:14 +0200 | [diff] [blame] | 47 | testapplicationexception \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 48 | testcontainertest \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 49 | testtransportsocket \ |
Roger Meier | c101092 | 2010-11-26 10:17:48 +0000 | [diff] [blame] | 50 | testbinaryprotocol \ |
Chandler May | 6dde90b | 2016-01-10 06:01:10 +0000 | [diff] [blame^] | 51 | testcompactprotocol \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 52 | testbufferedtransport \ |
| 53 | testframedtransport \ |
| 54 | testmemorybuffer \ |
| 55 | teststruct \ |
| 56 | testsimpleserver \ |
| 57 | testdebugproto \ |
| 58 | testoptionalrequired \ |
| 59 | testthrifttest |
| 60 | |
| 61 | if WITH_CPP |
Nobuaki Sukegawa | ef0a8fa | 2015-05-10 20:21:17 +0900 | [diff] [blame] | 62 | BUILT_SOURCES += gen-cpp/ThriftTest_types.cpp |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 63 | check_PROGRAMS += testthrifttestclient |
| 64 | endif |
| 65 | |
Nobuaki Sukegawa | 362a5ed | 2015-12-01 22:17:24 +0900 | [diff] [blame] | 66 | testserialization_SOURCES = testserialization.c |
| 67 | testserialization_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 Meier | 909f186 | 2014-07-24 23:52:14 +0200 | [diff] [blame] | 72 | testapplicationexception_SOURCES = testapplicationexception.c |
| 73 | testapplicationexception_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 74 | $(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 Meier | 909f186 | 2014-07-24 23:52:14 +0200 | [diff] [blame] | 78 | |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 79 | testcontainertest_SOURCES = testcontainertest.c |
| 80 | testcontainertest_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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 95 | testtransportsocket_SOURCES = testtransportsocket.c |
| 96 | testtransportsocket_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 97 | $(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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 101 | |
Roger Meier | c101092 | 2010-11-26 10:17:48 +0000 | [diff] [blame] | 102 | testbinaryprotocol_SOURCES = testbinaryprotocol.c |
| 103 | testbinaryprotocol_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 104 | $(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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 109 | |
Chandler May | 6dde90b | 2016-01-10 06:01:10 +0000 | [diff] [blame^] | 110 | testcompactprotocol_SOURCES = testcompactprotocol.c |
| 111 | testcompactprotocol_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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 118 | testbufferedtransport_SOURCES = testbufferedtransport.c |
| 119 | testbufferedtransport_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 120 | $(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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 124 | |
| 125 | testframedtransport_SOURCES = testframedtransport.c |
| 126 | testframedtransport_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 127 | $(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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 131 | |
| 132 | testmemorybuffer_SOURCES = testmemorybuffer.c |
| 133 | testmemorybuffer_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 134 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 135 | |
| 136 | teststruct_SOURCES = teststruct.c |
| 137 | teststruct_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 138 | $(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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 140 | |
| 141 | testsimpleserver_SOURCES = testsimpleserver.c |
| 142 | testsimpleserver_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 143 | $(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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 154 | |
| 155 | testdebugproto_SOURCES = testdebugproto.c |
| 156 | testdebugproto_LDADD = libtestgenc.la |
| 157 | |
| 158 | testoptionalrequired_SOURCES = testoptionalrequired.c |
| 159 | testoptionalrequired_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 160 | $(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 Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 162 | libtestgenc.la |
| 163 | |
| 164 | testthrifttest_SOURCES = testthrifttest.c |
| 165 | testthrifttest_LDADD = libtestgenc.la |
| 166 | |
| 167 | testthrifttestclient_SOURCES = testthrifttestclient.cpp |
| 168 | testthrifttestclient_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp -I../src -I./gen-c_glib $(GLIB_CFLAGS) |
| 169 | testthrifttestclient_LDADD = ../../cpp/.libs/libthrift.la ../libthrift_c_glib.la libtestgenc.la libtestgencpp.la |
| 170 | testthrifttestclient_LDFLAGS = -L../.libs -L../../cpp/.libs $(GLIB_LIBS) $(GOBJECT_LIBS) |
| 171 | |
| 172 | check_LTLIBRARIES = libtestgenc.la |
| 173 | |
| 174 | if WITH_CPP |
| 175 | check_LTLIBRARIES += libtestgencpp.la |
| 176 | endif |
| 177 | |
Bryan Duxbury | 39fbb9a | 2011-01-13 18:09:51 +0000 | [diff] [blame] | 178 | nodist_libtestgenc_la_SOURCES = \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 179 | gen-c_glib/t_test_container_test_types.c \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 180 | gen-c_glib/t_test_debug_proto_test_types.c \ |
Nobuaki Sukegawa | ba3fe86 | 2015-12-01 22:42:55 +0900 | [diff] [blame] | 181 | gen-c_glib/t_test_enum_test_types.c \ |
| 182 | gen-c_glib/t_test_enum_test_service.c \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 183 | gen-c_glib/t_test_empty_service.c \ |
| 184 | gen-c_glib/t_test_inherited.c \ |
| 185 | gen-c_glib/t_test_optional_required_test_types.c \ |
| 186 | gen-c_glib/t_test_reverse_order_service.c \ |
| 187 | gen-c_glib/t_test_second_service.c \ |
| 188 | gen-c_glib/t_test_service_for_exception_with_a_map.c \ |
| 189 | gen-c_glib/t_test_srv.c \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 190 | gen-c_glib/t_test_container_service.c \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 191 | gen-c_glib/t_test_thrift_test.c \ |
| 192 | gen-c_glib/t_test_thrift_test_types.c \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 193 | gen-c_glib/t_test_container_test_types.h \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 194 | gen-c_glib/t_test_debug_proto_test_types.h \ |
Nobuaki Sukegawa | ba3fe86 | 2015-12-01 22:42:55 +0900 | [diff] [blame] | 195 | gen-c_glib/t_test_enum_test_types.h \ |
| 196 | gen-c_glib/t_test_enum_test_service.h \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 197 | gen-c_glib/t_test_empty_service.h \ |
| 198 | gen-c_glib/t_test_inherited.h \ |
| 199 | gen-c_glib/t_test_optional_required_test_types.h \ |
| 200 | gen-c_glib/t_test_reverse_order_service.h \ |
| 201 | gen-c_glib/t_test_second_service.h \ |
| 202 | gen-c_glib/t_test_service_for_exception_with_a_map.h \ |
| 203 | gen-c_glib/t_test_srv.h \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 204 | gen-c_glib/t_test_container_service.h \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 205 | gen-c_glib/t_test_thrift_test.h \ |
| 206 | gen-c_glib/t_test_thrift_test_types.h |
| 207 | libtestgenc_la_LIBADD = $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Jens Geyer | 1c19027 | 2015-07-28 23:15:18 +0200 | [diff] [blame] | 208 | libtestgenc_la_CPPFLAGS = $(AM_CPPFLAGS) -Wno-unused-function |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 209 | |
Bryan Duxbury | 39fbb9a | 2011-01-13 18:09:51 +0000 | [diff] [blame] | 210 | nodist_libtestgencpp_la_SOURCES = \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 211 | gen-cpp/ThriftTest.cpp \ |
| 212 | gen-cpp/ThriftTest_constants.cpp \ |
| 213 | gen-cpp/ThriftTest_types.cpp \ |
| 214 | gen-cpp/ThriftTest.h \ |
| 215 | gen-cpp/ThriftTest_constants.h \ |
| 216 | gen-cpp/ThriftTest_types.h |
| 217 | libtestgencpp_la_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp |
| 218 | |
| 219 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 220 | |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 221 | gen-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 |
| 222 | $(THRIFT) --gen c_glib $< |
| 223 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 224 | gen-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 Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 225 | $(THRIFT) --gen c_glib $< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 226 | |
Nobuaki Sukegawa | ba3fe86 | 2015-12-01 22:42:55 +0900 | [diff] [blame] | 227 | gen-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 |
| 228 | $(THRIFT) --gen c_glib $< |
| 229 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 230 | gen-c_glib/t_test_optional_required_test_types.c gen-c_glib/t_test_optional_required_test_types.h: ../../../test/OptionalRequiredTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 231 | $(THRIFT) --gen c_glib $< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 232 | |
Nobuaki Sukegawa | ef0a8fa | 2015-05-10 20:21:17 +0900 | [diff] [blame] | 233 | gen-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 Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 234 | $(THRIFT) --gen c_glib $< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 235 | |
Roger Meier | 035870d | 2014-10-22 23:43:05 +0200 | [diff] [blame] | 236 | gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest_types.cpp: ../../../test/ThriftTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 237 | $(THRIFT) --gen cpp $< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 238 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 239 | TESTS = \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 240 | $(check_PROGRAMS) \ |
| 241 | $(check_SCRIPTS) |
| 242 | |
| 243 | # globally added to all instances of valgrind calls |
| 244 | # VALGRIND_OPTS = --suppressions=glib.suppress |
| 245 | VALGRIND_OPTS = |
| 246 | |
| 247 | # globally added to all memcheck calls |
| 248 | VALGRIND_MEM_OPTS = --tool=memcheck \ |
| 249 | --num-callers=10 \ |
| 250 | ${myextravalgrindmemopts} |
| 251 | |
| 252 | # globally added to all leakcheck calls |
| 253 | VALGRIND_LEAK_OPTS = --tool=memcheck \ |
| 254 | --num-callers=10 \ |
| 255 | --leak-check=full \ |
| 256 | --leak-resolution=high \ |
| 257 | ${myextravalgrindleakopts} |
| 258 | |
| 259 | memcheck: $(check_PROGRAMS) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 260 | @for x in $(check_PROGRAMS); \ |
| 261 | do \ |
| 262 | $(MAKE) memcheck-$$x; \ |
| 263 | done |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 264 | |
| 265 | leakcheck: $(check_PROGRAMS) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 266 | @for x in $(check_PROGRAMS); \ |
| 267 | do \ |
| 268 | $(MAKE) leakcheck-$$x; \ |
| 269 | done |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 270 | |
| 271 | memcheck-%: % |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 272 | @echo "*****************************************"; \ |
| 273 | echo "MEMCHECK: $<"; \ |
| 274 | echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_MEM_OPTS} ${$<_VALGRIND_MEM_OPTS}"; \ |
| 275 | $(LIBTOOL) --mode=execute \ |
| 276 | valgrind \ |
| 277 | ${VALGRIND_OPTS} \ |
| 278 | ${VALGRIND_MEM_OPTS} \ |
| 279 | ${$<_VALGRIND_MEM_OPTS} ./$< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 280 | |
| 281 | leakcheck-%: % |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 282 | @echo "*****************************************"; \ |
| 283 | echo "LEAKCHECK: $<"; \ |
| 284 | echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_LEAK_OPTS} ${$<_VALGRIND_LEAK_OPTS}"; \ |
| 285 | G_SLICE=always-malloc $(LIBTOOL) --mode=execute \ |
| 286 | valgrind \ |
| 287 | ${VALGRIND_OPTS} \ |
| 288 | ${VALGRIND_LEAK_OPTS} \ |
| 289 | ${$<_VALGRIND_LEAK_OPTS} ./$< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 290 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 291 | clean-local: |
Jens Geyer | 8c5fce9 | 2015-07-28 22:59:16 +0200 | [diff] [blame] | 292 | $(RM) gen-c_glib/* gen-cpp/* |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 293 | |
| 294 | CLEANFILES = \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 295 | *.bb \ |
| 296 | *.bbg \ |
| 297 | *.da \ |
| 298 | *.gcno \ |
| 299 | *.gcda \ |
Roger Meier | c101092 | 2010-11-26 10:17:48 +0000 | [diff] [blame] | 300 | *.gcov |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 301 | |
| 302 | EXTRA_DIST = \ |
| 303 | CMakeLists.txt \ |
| 304 | ContainerTest.thrift |
| 305 | |