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