Roger Meier | d3b9dca | 2011-06-24 14:01:10 +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 | # |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests |
| 20 | |
Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame^] | 21 | BUILT_SOURCES = gen-cpp/ThriftTest.cpp \ |
| 22 | gen-cpp/ThriftTest_types.cpp \ |
| 23 | gen-cpp/ThriftTest_constants.cpp \ |
| 24 | gen-cpp/StressTest_types.cpp \ |
| 25 | gen-cpp/StressTest_constants.cpp \ |
| 26 | gen-cpp/Service.cpp |
| 27 | |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 28 | noinst_LTLIBRARIES = libtestgencpp.la libstresstestgencpp.la |
| 29 | nodist_libtestgencpp_la_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 30 | gen-cpp/ThriftTest_constants.cpp \ |
| 31 | gen-cpp/ThriftTest_constants.h \ |
| 32 | gen-cpp/ThriftTest_types.cpp \ |
| 33 | gen-cpp/ThriftTest_types.h \ |
| 34 | gen-cpp/ThriftTest_types.tcc \ |
| 35 | gen-cpp/ThriftTest.cpp \ |
| 36 | gen-cpp/ThriftTest.h \ |
| 37 | gen-cpp/ThriftTest.tcc \ |
| 38 | src/ThriftTest_extras.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 39 | |
| 40 | libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 41 | |
| 42 | nodist_libstresstestgencpp_la_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 43 | gen-cpp/StressTest_constants.cpp \ |
| 44 | gen-cpp/StressTest_types.cpp \ |
| 45 | gen-cpp/StressTest_constants.h \ |
| 46 | gen-cpp/StressTest_types.h \ |
| 47 | gen-cpp/Service.cpp \ |
| 48 | gen-cpp/Service.h |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 49 | |
| 50 | libstresstestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 51 | |
| 52 | check_PROGRAMS = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 53 | TestServer \ |
| 54 | TestClient \ |
| 55 | StressTest \ |
| 56 | StressTestNonBlocking |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 57 | |
| 58 | # we currently do not run the testsuite, stop c++ server issue |
| 59 | # TESTS = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 60 | # $(check_PROGRAMS) |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 61 | |
| 62 | TestServer_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 63 | src/TestServer.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 64 | |
| 65 | TestServer_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 66 | libtestgencpp.la \ |
| 67 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 68 | $(top_builddir)/lib/cpp/libthriftz.la \ |
| 69 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
| 70 | -levent -lboost_program_options -lboost_system -lboost_filesystem |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 71 | |
| 72 | TestClient_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 73 | src/TestClient.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 74 | |
| 75 | TestClient_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 76 | libtestgencpp.la \ |
| 77 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 78 | $(top_builddir)/lib/cpp/libthriftz.la \ |
| 79 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
| 80 | -levent -lboost_program_options -lboost_system -lboost_filesystem |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 81 | |
| 82 | StressTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 83 | src/StressTest.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 84 | |
| 85 | StressTest_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 86 | libstresstestgencpp.la \ |
| 87 | $(top_builddir)/lib/cpp/libthrift.la |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 88 | |
| 89 | StressTestNonBlocking_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 90 | src/StressTestNonBlocking.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 91 | |
| 92 | StressTestNonBlocking_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 93 | libstresstestgencpp.la \ |
| 94 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
| 95 | -levent |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 96 | # |
| 97 | # Common thrift code generation rules |
| 98 | # |
| 99 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 100 | |
| 101 | gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_constants.cpp: $(top_srcdir)/test/ThriftTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 102 | $(THRIFT) --gen cpp:templates,cob_style -r $< |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 103 | |
Roger Meier | a5bf1a1 | 2014-10-22 23:26:01 +0200 | [diff] [blame] | 104 | gen-cpp/StressTest_types.cpp gen-cpp/StressTest_constants.cpp gen-cpp/Service.cpp: $(top_srcdir)/test/StressTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 105 | $(THRIFT) --gen cpp $< |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 106 | |
Konrad Grochowski | 1ff4a97 | 2014-09-19 23:57:57 +0200 | [diff] [blame] | 107 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) $(LIBEVENT_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -Igen-cpp |
Roger Meier | ec300e3 | 2014-10-13 02:13:35 +0200 | [diff] [blame] | 108 | AM_CXXFLAGS = -Wall -Wextra -pedantic |
Roger Meier | 051ea1c | 2014-12-20 22:43:24 +0100 | [diff] [blame] | 109 | AM_LDFLAGS = $(BOOST_LDFLAGS) $(LIBEVENT_LDFLAGS) $(ZLIB_LIBS) |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 110 | |
| 111 | clean-local: |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 112 | $(RM) -r gen-cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 113 | |
Konrad Grochowski | 16a23a6 | 2014-11-13 15:33:38 +0100 | [diff] [blame] | 114 | style-local: |
| 115 | $(CPPSTYLE_CMD) |
| 116 | |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 117 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 118 | src/TestClient.cpp \ |
| 119 | src/TestServer.cpp \ |
| 120 | src/StressTest.cpp \ |
| 121 | src/StressTestNonBlocking.cpp \ |
| 122 | realloc/realloc_test.c \ |
| 123 | realloc/Makefile |