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