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