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 | # |
| 19 | noinst_LTLIBRARIES = libtestgencpp.la libstresstestgencpp.la |
| 20 | nodist_libtestgencpp_la_SOURCES = \ |
| 21 | gen-cpp/ThriftTest_constants.cpp \ |
| 22 | gen-cpp/ThriftTest_types.cpp \ |
| 23 | gen-cpp/ThriftTest_constants.h \ |
| 24 | gen-cpp/ThriftTest_types.h \ |
| 25 | gen-cpp/ThriftTest_types.tcc \ |
| 26 | gen-cpp/ThriftTest.tcc |
| 27 | |
| 28 | libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 29 | |
| 30 | nodist_libstresstestgencpp_la_SOURCES = \ |
| 31 | gen-cpp/StressTest_constants.cpp \ |
| 32 | gen-cpp/StressTest_types.cpp \ |
| 33 | gen-cpp/StressTest_constants.h \ |
| 34 | gen-cpp/StressTest_types.h \ |
| 35 | gen-cpp/Service.cpp \ |
| 36 | gen-cpp/Service.h |
| 37 | |
| 38 | libstresstestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 39 | |
| 40 | check_PROGRAMS = \ |
| 41 | TestServer \ |
| 42 | TestClient \ |
| 43 | StressTest \ |
| 44 | StressTestNonBlocking |
| 45 | |
| 46 | # we currently do not run the testsuite, stop c++ server issue |
| 47 | # TESTS = \ |
| 48 | # $(check_PROGRAMS) |
| 49 | |
| 50 | TestServer_SOURCES = \ |
| 51 | src/TestServer.cpp |
| 52 | |
| 53 | TestServer_LDADD = \ |
| 54 | libtestgencpp.la \ |
| 55 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 56 | $(top_builddir)/lib/cpp/libthriftz.la \ |
| 57 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
| 58 | -levent -lboost_program_options |
| 59 | |
| 60 | TestClient_SOURCES = \ |
| 61 | src/TestClient.cpp |
| 62 | |
| 63 | TestClient_LDADD = \ |
| 64 | libtestgencpp.la \ |
| 65 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 66 | $(top_builddir)/lib/cpp/libthriftz.la \ |
| 67 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
| 68 | -levent -lboost_program_options |
| 69 | |
| 70 | StressTest_SOURCES = \ |
| 71 | src/StressTest.cpp |
| 72 | |
| 73 | StressTest_LDADD = \ |
| 74 | libstresstestgencpp.la \ |
| 75 | $(top_builddir)/lib/cpp/libthrift.la |
| 76 | |
| 77 | StressTestNonBlocking_SOURCES = \ |
| 78 | src/StressTestNonBlocking.cpp |
| 79 | |
| 80 | StressTestNonBlocking_LDADD = \ |
| 81 | libstresstestgencpp.la \ |
| 82 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
| 83 | -levent |
| 84 | # |
| 85 | # Common thrift code generation rules |
| 86 | # |
| 87 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 88 | |
| 89 | gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_constants.cpp: $(top_srcdir)/test/ThriftTest.thrift |
| 90 | $(THRIFT) --gen cpp:templates $< |
| 91 | |
| 92 | gen-cpp/ThriftTest.cpp gen-cpp/StressTest_types.cpp gen-cpp/StressTest_constants.cpp: $(top_srcdir)/test/StressTest.thrift |
| 93 | $(THRIFT) --gen cpp $< |
| 94 | |
| 95 | INCLUDES = \ |
| 96 | -I$(top_srcdir)/lib/cpp/src -Igen-cpp |
| 97 | |
| 98 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) |
| 99 | AM_CXXFLAGS = -Wall |
| 100 | |
| 101 | clean-local: |
| 102 | $(RM) -r gen-cpp |
| 103 | |
| 104 | EXTRA_DIST = \ |
| 105 | src/TestClient.cpp \ |
| 106 | src/TestServer.cpp \ |
| 107 | src/StressTest.cpp \ |
| 108 | src/StressTestNonBlocking.cpp \ |
| 109 | realloc/realloc_test.c \ |
| 110 | realloc/Makefile |
| 111 | |
| 112 | |