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