David Reiss | 9ff3b9d | 2008-02-15 01:10:23 +0000 | [diff] [blame] | 1 | SUBDIRS = py |
| 2 | |
David Reiss | ff50f28 | 2008-02-23 22:07:46 +0000 | [diff] [blame] | 3 | if ENABLE_JAVA |
| 4 | SUBDIRS += java |
| 5 | endif |
| 6 | |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 7 | check_PROGRAMS = \ |
| 8 | DebugProtoTest \ |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 9 | JSONProtoTest \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 10 | OptionalRequiredTest \ |
| 11 | ReflectionTest |
| 12 | |
| 13 | TESTS = \ |
| 14 | $(check_PROGRAMS) |
| 15 | |
| 16 | |
| 17 | # |
| 18 | # DebugProtoTest |
| 19 | # |
| 20 | DebugProtoTest_SOURCES = \ |
| 21 | gen-cpp/DebugProtoTest_types.cpp \ |
| 22 | DebugProtoTest.cpp |
| 23 | |
| 24 | DebugProtoTest_LDADD = \ |
| 25 | $(top_srcdir)/lib/cpp/libthrift.la |
| 26 | |
| 27 | |
| 28 | # |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 29 | # JSONProtoTest |
| 30 | # |
| 31 | JSONProtoTest_SOURCES = \ |
| 32 | gen-cpp/DebugProtoTest_types.cpp \ |
| 33 | JSONProtoTest.cpp |
| 34 | |
| 35 | JSONProtoTest_LDADD = \ |
| 36 | $(top_srcdir)/lib/cpp/libthrift.la |
| 37 | |
| 38 | # |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 39 | # OptionalRequiredTest |
| 40 | # |
| 41 | OptionalRequiredTest_SOURCES = \ |
| 42 | gen-cpp/OptionalRequiredTest_types.cpp \ |
| 43 | OptionalRequiredTest.cpp |
| 44 | |
| 45 | OptionalRequiredTest_LDADD = \ |
| 46 | $(top_srcdir)/lib/cpp/libthrift.la |
| 47 | |
| 48 | |
| 49 | # |
| 50 | # ReflectionTest |
| 51 | # |
| 52 | ReflectionTest_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 | |
| 59 | ReflectionTest_LDADD = \ |
| 60 | $(top_srcdir)/lib/cpp/libthrift.la |
| 61 | |
| 62 | |
| 63 | # |
| 64 | # Common thrift code generation rules |
| 65 | # |
| 66 | THRIFT = $(top_srcdir)/compiler/cpp/thrift |
| 67 | |
| 68 | gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift |
| 69 | $(THRIFT) -cpp $< |
| 70 | |
| 71 | gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift |
| 72 | $(THRIFT) -cpp $< |
| 73 | |
| 74 | gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift |
| 75 | $(THRIFT) -cpp $< |
| 76 | |
| 77 | |
| 78 | INCLUDES = \ |
| 79 | -I$(top_srcdir)/lib/cpp/src |
| 80 | |
| 81 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) |
| 82 | |
| 83 | clean-local: |
David Reiss | 2ca456a | 2008-02-24 16:42:18 +0000 | [diff] [blame^] | 84 | $(RM) -r gen-cpp |