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