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