blob: a828e5797d81b356ccf88a6db2de6c76a2a45e3c [file] [log] [blame]
Roger Meierd3b9dca2011-06-24 14:01:10 +00001#
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#
19noinst_LTLIBRARIES = libtestgencpp.la libstresstestgencpp.la
20nodist_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
28libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
29
30nodist_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
38libstresstestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
39
40check_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
50TestServer_SOURCES = \
51 src/TestServer.cpp
52
53TestServer_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
60TestClient_SOURCES = \
61 src/TestClient.cpp
62
63TestClient_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
70StressTest_SOURCES = \
71 src/StressTest.cpp
72
73StressTest_LDADD = \
74 libstresstestgencpp.la \
75 $(top_builddir)/lib/cpp/libthrift.la
76
77StressTestNonBlocking_SOURCES = \
78 src/StressTestNonBlocking.cpp
79
80StressTestNonBlocking_LDADD = \
81 libstresstestgencpp.la \
82 $(top_builddir)/lib/cpp/libthriftnb.la \
83 -levent
84#
85# Common thrift code generation rules
86#
87THRIFT = $(top_builddir)/compiler/cpp/thrift
88
89gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_constants.cpp: $(top_srcdir)/test/ThriftTest.thrift
90 $(THRIFT) --gen cpp:templates $<
91
92gen-cpp/ThriftTest.cpp gen-cpp/StressTest_types.cpp gen-cpp/StressTest_constants.cpp: $(top_srcdir)/test/StressTest.thrift
93 $(THRIFT) --gen cpp $<
94
95INCLUDES = \
96 -I$(top_srcdir)/lib/cpp/src -Igen-cpp
97
98AM_CPPFLAGS = $(BOOST_CPPFLAGS)
99AM_CXXFLAGS = -Wall
100
101clean-local:
102 $(RM) -r gen-cpp
103
104EXTRA_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