blob: 1a95001d07c2364cc693871f9f49f3867bb28576 [file] [log] [blame]
David Reiss8180c0c2008-02-04 21:14:14 +00001check_PROGRAMS = \
2 DebugProtoTest \
3 OptionalRequiredTest \
4 ReflectionTest
5
6TESTS = \
7 $(check_PROGRAMS)
8
9
10#
11# DebugProtoTest
12#
13DebugProtoTest_SOURCES = \
14 gen-cpp/DebugProtoTest_types.cpp \
15 DebugProtoTest.cpp
16
17DebugProtoTest_LDADD = \
18 $(top_srcdir)/lib/cpp/libthrift.la
19
20
21#
22# OptionalRequiredTest
23#
24OptionalRequiredTest_SOURCES = \
25 gen-cpp/OptionalRequiredTest_types.cpp \
26 OptionalRequiredTest.cpp
27
28OptionalRequiredTest_LDADD = \
29 $(top_srcdir)/lib/cpp/libthrift.la
30
31
32#
33# ReflectionTest
34#
35ReflectionTest_SOURCES = \
36 gen-cpp/DebugProtoTest_types.cpp \
37 gen-cpp/PartiallyReflectable.cpp \
38 gen-cpp/Service.cpp \
39 gen-cpp/StressTest_types.cpp \
40 ReflectionTest.cpp
41
42ReflectionTest_LDADD = \
43 $(top_srcdir)/lib/cpp/libthrift.la
44
45
46#
47# Common thrift code generation rules
48#
49THRIFT = $(top_srcdir)/compiler/cpp/thrift
50
51gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
52 $(THRIFT) -cpp $<
53
54gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
55 $(THRIFT) -cpp $<
56
57gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
58 $(THRIFT) -cpp $<
59
60
61INCLUDES = \
62 -I$(top_srcdir)/lib/cpp/src
63
64AM_CPPFLAGS = $(BOOST_CPPFLAGS)
65
66clean-local:
67 rm -rf gen-cpp