| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 1 | # | 
|  | 2 | # Licensed to the Apache Software Foundation (ASF) under one | 
|  | 3 | # or more contributor license agreements. See the NOTICE file | 
|  | 4 | # distributed with this work for additional information | 
|  | 5 | # regarding copyright ownership. The ASF licenses this file | 
|  | 6 | # to you under the Apache License, Version 2.0 (the | 
|  | 7 | # "License"); you may not use this file except in compliance | 
|  | 8 | # with the License. You may obtain a copy of the License at | 
|  | 9 | # | 
|  | 10 | #   http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 11 | # | 
|  | 12 | # Unless required by applicable law or agreed to in writing, | 
|  | 13 | # software distributed under the License is distributed on an | 
|  | 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | 
|  | 15 | # KIND, either express or implied. See the License for the | 
|  | 16 | # specific language governing permissions and limitations | 
|  | 17 | # under the License. | 
|  | 18 | # | 
| Kevin Wojniak | a392566 | 2019-07-01 11:07:45 -0700 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc | 
| Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 20 |  | 
| Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame] | 21 | BUILT_SOURCES = gen-cpp/shared_types.cpp \ | 
|  | 22 | gen-cpp/tutorial_types.cpp | 
|  | 23 |  | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 24 | noinst_LTLIBRARIES = libtutorialgencpp.la | 
|  | 25 | nodist_libtutorialgencpp_la_SOURCES = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 26 | gen-cpp/Calculator.cpp \ | 
|  | 27 | gen-cpp/Calculator.h \ | 
|  | 28 | gen-cpp/SharedService.cpp \ | 
|  | 29 | gen-cpp/SharedService.h \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 30 | gen-cpp/shared_types.cpp \ | 
|  | 31 | gen-cpp/shared_types.h \ | 
|  | 32 | gen-cpp/tutorial_constants.cpp \ | 
|  | 33 | gen-cpp/tutorial_constants.h \ | 
|  | 34 | gen-cpp/tutorial_types.cpp \ | 
|  | 35 | gen-cpp/tutorial_types.h | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 36 |  | 
|  | 37 |  | 
|  | 38 |  | 
|  | 39 | libtutorialgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la | 
|  | 40 |  | 
|  | 41 | noinst_PROGRAMS = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 42 | TutorialServer \ | 
|  | 43 | TutorialClient | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 44 |  | 
|  | 45 | TutorialServer_SOURCES = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 46 | CppServer.cpp | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 47 |  | 
|  | 48 | TutorialServer_LDADD = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 49 | libtutorialgencpp.la \ | 
|  | 50 | $(top_builddir)/lib/cpp/libthrift.la | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 51 |  | 
|  | 52 | TutorialClient_SOURCES = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 53 | CppClient.cpp | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 54 |  | 
|  | 55 | TutorialClient_LDADD = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 56 | libtutorialgencpp.la \ | 
|  | 57 | $(top_builddir)/lib/cpp/libthrift.la | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 58 |  | 
|  | 59 | # | 
|  | 60 | # Common thrift code generation rules | 
|  | 61 | # | 
| zeshuai007 | 57c2507 | 2020-04-09 11:17:05 +0800 | [diff] [blame] | 62 | gen-cpp/Calculator.cpp gen-cpp/SharedService.cpp gen-cpp/shared_types.cpp gen-cpp/tutorial_constants.cpp gen-cpp/tutorial_types.cpp: $(top_srcdir)/tutorial/tutorial.thrift | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 63 | $(THRIFT) --gen cpp -r $< | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 64 |  | 
| Konrad Grochowski | 1ff4a97 | 2014-09-19 23:57:57 +0200 | [diff] [blame] | 65 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) $(LIBEVENT_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -Igen-cpp | 
| Roger Meier | ec300e3 | 2014-10-13 02:13:35 +0200 | [diff] [blame] | 66 | AM_CXXFLAGS = -Wall -Wextra -pedantic | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 67 | AM_LDFLAGS = $(BOOST_LDFLAGS) $(LIBEVENT_LDFLAGS) | 
|  | 68 |  | 
|  | 69 | clean-local: | 
| Roger Meier | f57b57a | 2015-11-03 23:28:43 +0100 | [diff] [blame] | 70 | $(RM) gen-cpp/* | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 71 |  | 
|  | 72 | tutorialserver: all | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 73 | ./TutorialServer | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 74 |  | 
|  | 75 | tutorialclient: all | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 76 | ./TutorialClient | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 77 |  | 
| Konrad Grochowski | 16a23a6 | 2014-11-13 15:33:38 +0100 | [diff] [blame] | 78 | style-local: | 
|  | 79 | $(CPPSTYLE_CMD) | 
|  | 80 |  | 
| Thomas | 63f0458 | 2024-03-21 22:51:07 +0900 | [diff] [blame] | 81 | distdir: | 
|  | 82 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | 
|  | 83 |  | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 84 | EXTRA_DIST = \ | 
| jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 85 | CMakeLists.txt \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 86 | CppClient.cpp \ | 
|  | 87 | CppServer.cpp |