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 | |
Nobuaki Sukegawa | 6076970 | 2016-01-23 19:25:06 +0900 | [diff] [blame] | 39 | AM_CPPFLAGS = -I../src -I./gen-c_glib |
James E. King, III | 36628a2 | 2017-02-13 15:25:41 -0500 | [diff] [blame] | 40 | AM_CFLAGS = -g -Wall -Wextra -pedantic $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) $(OPENSSL_INCLUDES) \ |
Simon South | db3646f | 2015-08-01 12:18:12 +0000 | [diff] [blame] | 41 | @GCOV_CFLAGS@ |
| 42 | AM_CXXFLAGS = $(AM_CFLAGS) |
James E. King, III | 36628a2 | 2017-02-13 15:25:41 -0500 | [diff] [blame] | 43 | AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) $(OPENSSL_LIBS) @GCOV_LDFLAGS@ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 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 \ |
James E. King, III | 36628a2 | 2017-02-13 15:25:41 -0500 | [diff] [blame] | 50 | testtransportsslsocket \ |
Roger Meier | c101092 | 2010-11-26 10:17:48 +0000 | [diff] [blame] | 51 | testbinaryprotocol \ |
Chandler May | 6dde90b | 2016-01-10 06:01:10 +0000 | [diff] [blame] | 52 | testcompactprotocol \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 53 | testbufferedtransport \ |
| 54 | testframedtransport \ |
Simon South | e71f20c | 2016-02-11 06:52:37 -0500 | [diff] [blame] | 55 | testfdtransport \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 56 | testmemorybuffer \ |
| 57 | teststruct \ |
| 58 | testsimpleserver \ |
| 59 | testdebugproto \ |
| 60 | testoptionalrequired \ |
| 61 | testthrifttest |
| 62 | |
| 63 | if WITH_CPP |
Nobuaki Sukegawa | ef0a8fa | 2015-05-10 20:21:17 +0900 | [diff] [blame] | 64 | BUILT_SOURCES += gen-cpp/ThriftTest_types.cpp |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 65 | check_PROGRAMS += testthrifttestclient |
| 66 | endif |
| 67 | |
Nobuaki Sukegawa | 362a5ed | 2015-12-01 22:17:24 +0900 | [diff] [blame] | 68 | testserialization_SOURCES = testserialization.c |
| 69 | testserialization_LDADD = \ |
| 70 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \ |
| 71 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
| 72 | libtestgenc.la |
| 73 | |
Roger Meier | 909f186 | 2014-07-24 23:52:14 +0200 | [diff] [blame] | 74 | testapplicationexception_SOURCES = testapplicationexception.c |
| 75 | testapplicationexception_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 76 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_application_exception.o \ |
| 77 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \ |
| 78 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_struct.o \ |
| 79 | $(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] | 80 | |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 81 | testcontainertest_SOURCES = testcontainertest.c |
| 82 | testcontainertest_LDADD = \ |
| 83 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_struct.o \ |
| 84 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \ |
| 85 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
| 86 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport_factory.o \ |
| 87 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/processor/libthrift_c_glib_la-thrift_processor.o \ |
| 88 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol_factory.o \ |
| 89 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol.o \ |
| 90 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol_factory.o \ |
| 91 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \ |
| 92 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \ |
| 93 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \ |
| 94 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/server/libthrift_c_glib_la-thrift_server.o \ |
| 95 | libtestgenc.la |
| 96 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 97 | testtransportsocket_SOURCES = testtransportsocket.c |
| 98 | testtransportsocket_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 99 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
| 100 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_buffered_transport.o \ |
| 101 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \ |
| 102 | $(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] | 103 | |
James E. King, III | 36628a2 | 2017-02-13 15:25:41 -0500 | [diff] [blame] | 104 | |
| 105 | testtransportsslsocket_SOURCES = testtransportsslsocket.c |
| 106 | testtransportsslsocket_LDADD = \ |
| 107 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
| 108 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \ |
| 109 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_buffered_transport.o \ |
| 110 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \ |
| 111 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o |
| 112 | |
| 113 | |
Roger Meier | c101092 | 2010-11-26 10:17:48 +0000 | [diff] [blame] | 114 | testbinaryprotocol_SOURCES = testbinaryprotocol.c |
| 115 | testbinaryprotocol_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 116 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \ |
| 117 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
Chandler May | 1ccd81b | 2016-02-11 08:25:25 -0500 | [diff] [blame] | 118 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_framed_transport.o \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 119 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \ |
| 120 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \ |
| 121 | $(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] | 122 | |
Chandler May | 6dde90b | 2016-01-10 06:01:10 +0000 | [diff] [blame] | 123 | testcompactprotocol_SOURCES = testcompactprotocol.c |
| 124 | testcompactprotocol_LDADD = \ |
| 125 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \ |
| 126 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
Chandler May | 1ccd81b | 2016-02-11 08:25:25 -0500 | [diff] [blame] | 127 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_framed_transport.o \ |
Chandler May | 6dde90b | 2016-01-10 06:01:10 +0000 | [diff] [blame] | 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 |
| 131 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 132 | testbufferedtransport_SOURCES = testbufferedtransport.c |
| 133 | testbufferedtransport_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 \ |
| 135 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \ |
| 136 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \ |
| 137 | $(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] | 138 | |
| 139 | testframedtransport_SOURCES = testframedtransport.c |
| 140 | testframedtransport_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 141 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
| 142 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \ |
| 143 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \ |
| 144 | $(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] | 145 | |
Simon South | e71f20c | 2016-02-11 06:52:37 -0500 | [diff] [blame] | 146 | testfdtransport_SOURCES = testfdtransport.c |
| 147 | testfdtransport_LDADD = \ |
| 148 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
| 149 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_fd_transport.o |
| 150 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 151 | testmemorybuffer_SOURCES = testmemorybuffer.c |
| 152 | testmemorybuffer_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 153 | $(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] | 154 | |
| 155 | teststruct_SOURCES = teststruct.c |
| 156 | teststruct_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 157 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \ |
| 158 | $(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] | 159 | |
| 160 | testsimpleserver_SOURCES = testsimpleserver.c |
| 161 | testsimpleserver_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 162 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \ |
| 163 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \ |
| 164 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport_factory.o \ |
| 165 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/processor/libthrift_c_glib_la-thrift_processor.o \ |
| 166 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol_factory.o \ |
| 167 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol.o \ |
| 168 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol_factory.o \ |
| 169 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \ |
| 170 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \ |
| 171 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \ |
| 172 | $(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] | 173 | |
| 174 | testdebugproto_SOURCES = testdebugproto.c |
| 175 | testdebugproto_LDADD = libtestgenc.la |
| 176 | |
| 177 | testoptionalrequired_SOURCES = testoptionalrequired.c |
| 178 | testoptionalrequired_LDADD = \ |
Jens Geyer | 8677719 | 2015-07-25 15:59:46 +0200 | [diff] [blame] | 179 | $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \ |
| 180 | $(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] | 181 | libtestgenc.la |
| 182 | |
Nobuaki Sukegawa | 6076970 | 2016-01-23 19:25:06 +0900 | [diff] [blame] | 183 | testthrifttest_SOURCES = testthrifttest.c |
| 184 | testthrifttest_LDADD = libtestgenc.la \ |
| 185 | $(top_builddir)/test/c_glib/src/thrift_test_handler.o |
Chandler May | 3fe3df2 | 2016-01-18 11:05:40 -0500 | [diff] [blame] | 186 | testthrifttest_CFLAGS = -I$(top_srcdir)/test/c_glib/src -I./gen-c_glib $(GLIB_CFLAGS) |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 187 | |
| 188 | testthrifttestclient_SOURCES = testthrifttestclient.cpp |
| 189 | testthrifttestclient_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp -I../src -I./gen-c_glib $(GLIB_CFLAGS) |
| 190 | testthrifttestclient_LDADD = ../../cpp/.libs/libthrift.la ../libthrift_c_glib.la libtestgenc.la libtestgencpp.la |
| 191 | testthrifttestclient_LDFLAGS = -L../.libs -L../../cpp/.libs $(GLIB_LIBS) $(GOBJECT_LIBS) |
| 192 | |
| 193 | check_LTLIBRARIES = libtestgenc.la |
| 194 | |
| 195 | if WITH_CPP |
| 196 | check_LTLIBRARIES += libtestgencpp.la |
| 197 | endif |
| 198 | |
Bryan Duxbury | 39fbb9a | 2011-01-13 18:09:51 +0000 | [diff] [blame] | 199 | nodist_libtestgenc_la_SOURCES = \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 200 | gen-c_glib/t_test_container_test_types.c \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 201 | gen-c_glib/t_test_debug_proto_test_types.c \ |
Nobuaki Sukegawa | ba3fe86 | 2015-12-01 22:42:55 +0900 | [diff] [blame] | 202 | gen-c_glib/t_test_enum_test_types.c \ |
| 203 | gen-c_glib/t_test_enum_test_service.c \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 204 | gen-c_glib/t_test_empty_service.c \ |
| 205 | gen-c_glib/t_test_inherited.c \ |
| 206 | gen-c_glib/t_test_optional_required_test_types.c \ |
| 207 | gen-c_glib/t_test_reverse_order_service.c \ |
| 208 | gen-c_glib/t_test_second_service.c \ |
| 209 | gen-c_glib/t_test_service_for_exception_with_a_map.c \ |
| 210 | gen-c_glib/t_test_srv.c \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 211 | gen-c_glib/t_test_container_service.c \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 212 | gen-c_glib/t_test_thrift_test.c \ |
| 213 | gen-c_glib/t_test_thrift_test_types.c \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 214 | gen-c_glib/t_test_container_test_types.h \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 215 | gen-c_glib/t_test_debug_proto_test_types.h \ |
Nobuaki Sukegawa | ba3fe86 | 2015-12-01 22:42:55 +0900 | [diff] [blame] | 216 | gen-c_glib/t_test_enum_test_types.h \ |
| 217 | gen-c_glib/t_test_enum_test_service.h \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 218 | gen-c_glib/t_test_empty_service.h \ |
| 219 | gen-c_glib/t_test_inherited.h \ |
| 220 | gen-c_glib/t_test_optional_required_test_types.h \ |
| 221 | gen-c_glib/t_test_reverse_order_service.h \ |
| 222 | gen-c_glib/t_test_second_service.h \ |
| 223 | gen-c_glib/t_test_service_for_exception_with_a_map.h \ |
| 224 | gen-c_glib/t_test_srv.h \ |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 225 | gen-c_glib/t_test_container_service.h \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 226 | gen-c_glib/t_test_thrift_test.h \ |
| 227 | gen-c_glib/t_test_thrift_test_types.h |
| 228 | libtestgenc_la_LIBADD = $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Jens Geyer | 1c19027 | 2015-07-28 23:15:18 +0200 | [diff] [blame] | 229 | libtestgenc_la_CPPFLAGS = $(AM_CPPFLAGS) -Wno-unused-function |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 230 | |
Bryan Duxbury | 39fbb9a | 2011-01-13 18:09:51 +0000 | [diff] [blame] | 231 | nodist_libtestgencpp_la_SOURCES = \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 232 | gen-cpp/ThriftTest.cpp \ |
| 233 | gen-cpp/ThriftTest_constants.cpp \ |
| 234 | gen-cpp/ThriftTest_types.cpp \ |
| 235 | gen-cpp/ThriftTest.h \ |
| 236 | gen-cpp/ThriftTest_constants.h \ |
| 237 | gen-cpp/ThriftTest_types.h |
| 238 | libtestgencpp_la_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp |
| 239 | |
Nobuaki Sukegawa | 6076970 | 2016-01-23 19:25:06 +0900 | [diff] [blame] | 240 | 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 $(THRIFT) |
Jens Geyer | 54f392b | 2015-08-05 21:45:10 +0200 | [diff] [blame] | 241 | $(THRIFT) --gen c_glib $< |
| 242 | |
Nobuaki Sukegawa | 6076970 | 2016-01-23 19:25:06 +0900 | [diff] [blame] | 243 | 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 $(THRIFT) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 244 | $(THRIFT) --gen c_glib $< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 245 | |
Nobuaki Sukegawa | 6076970 | 2016-01-23 19:25:06 +0900 | [diff] [blame] | 246 | 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 $(THRIFT) |
Nobuaki Sukegawa | ba3fe86 | 2015-12-01 22:42:55 +0900 | [diff] [blame] | 247 | $(THRIFT) --gen c_glib $< |
| 248 | |
Nobuaki Sukegawa | 6076970 | 2016-01-23 19:25:06 +0900 | [diff] [blame] | 249 | gen-c_glib/t_test_optional_required_test_types.c gen-c_glib/t_test_optional_required_test_types.h: ../../../test/OptionalRequiredTest.thrift $(THRIFT) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 250 | $(THRIFT) --gen c_glib $< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 251 | |
Nobuaki Sukegawa | 6076970 | 2016-01-23 19:25:06 +0900 | [diff] [blame] | 252 | 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 $(THRIFT) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 253 | $(THRIFT) --gen c_glib $< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 254 | |
Nobuaki Sukegawa | 6076970 | 2016-01-23 19:25:06 +0900 | [diff] [blame] | 255 | gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest_types.cpp: ../../../test/ThriftTest.thrift $(THRIFT) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 256 | $(THRIFT) --gen cpp $< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 257 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 258 | TESTS = \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 259 | $(check_PROGRAMS) \ |
| 260 | $(check_SCRIPTS) |
| 261 | |
| 262 | # globally added to all instances of valgrind calls |
| 263 | # VALGRIND_OPTS = --suppressions=glib.suppress |
| 264 | VALGRIND_OPTS = |
| 265 | |
| 266 | # globally added to all memcheck calls |
| 267 | VALGRIND_MEM_OPTS = --tool=memcheck \ |
| 268 | --num-callers=10 \ |
| 269 | ${myextravalgrindmemopts} |
| 270 | |
| 271 | # globally added to all leakcheck calls |
| 272 | VALGRIND_LEAK_OPTS = --tool=memcheck \ |
| 273 | --num-callers=10 \ |
| 274 | --leak-check=full \ |
| 275 | --leak-resolution=high \ |
| 276 | ${myextravalgrindleakopts} |
| 277 | |
| 278 | memcheck: $(check_PROGRAMS) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 279 | @for x in $(check_PROGRAMS); \ |
| 280 | do \ |
| 281 | $(MAKE) memcheck-$$x; \ |
| 282 | done |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 283 | |
| 284 | leakcheck: $(check_PROGRAMS) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 285 | @for x in $(check_PROGRAMS); \ |
| 286 | do \ |
| 287 | $(MAKE) leakcheck-$$x; \ |
| 288 | done |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 289 | |
| 290 | memcheck-%: % |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 291 | @echo "*****************************************"; \ |
| 292 | echo "MEMCHECK: $<"; \ |
| 293 | echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_MEM_OPTS} ${$<_VALGRIND_MEM_OPTS}"; \ |
| 294 | $(LIBTOOL) --mode=execute \ |
| 295 | valgrind \ |
| 296 | ${VALGRIND_OPTS} \ |
| 297 | ${VALGRIND_MEM_OPTS} \ |
| 298 | ${$<_VALGRIND_MEM_OPTS} ./$< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 299 | |
| 300 | leakcheck-%: % |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 301 | @echo "*****************************************"; \ |
| 302 | echo "LEAKCHECK: $<"; \ |
| 303 | echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_LEAK_OPTS} ${$<_VALGRIND_LEAK_OPTS}"; \ |
| 304 | G_SLICE=always-malloc $(LIBTOOL) --mode=execute \ |
| 305 | valgrind \ |
| 306 | ${VALGRIND_OPTS} \ |
| 307 | ${VALGRIND_LEAK_OPTS} \ |
| 308 | ${$<_VALGRIND_LEAK_OPTS} ./$< |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 309 | |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 310 | clean-local: |
Jens Geyer | 8c5fce9 | 2015-07-28 22:59:16 +0200 | [diff] [blame] | 311 | $(RM) gen-c_glib/* gen-cpp/* |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 312 | |
| 313 | CLEANFILES = \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 314 | *.bb \ |
| 315 | *.bbg \ |
| 316 | *.da \ |
| 317 | *.gcno \ |
| 318 | *.gcda \ |
Roger Meier | c101092 | 2010-11-26 10:17:48 +0000 | [diff] [blame] | 319 | *.gcov |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 320 | |
| 321 | EXTRA_DIST = \ |
| 322 | CMakeLists.txt \ |
| 323 | ContainerTest.thrift |
| 324 | |