| 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 | # | 
| Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests | 
 | 20 |  | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 21 | noinst_LTLIBRARIES = libtutorialgencpp.la | 
 | 22 | nodist_libtutorialgencpp_la_SOURCES = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 23 | 	gen-cpp/Calculator.cpp \ | 
 | 24 | 	gen-cpp/Calculator.h \ | 
 | 25 | 	gen-cpp/SharedService.cpp \ | 
 | 26 | 	gen-cpp/SharedService.h \ | 
 | 27 | 	gen-cpp/shared_constants.cpp \ | 
 | 28 | 	gen-cpp/shared_constants.h \ | 
 | 29 | 	gen-cpp/shared_types.cpp \ | 
 | 30 | 	gen-cpp/shared_types.h \ | 
 | 31 | 	gen-cpp/tutorial_constants.cpp \ | 
 | 32 | 	gen-cpp/tutorial_constants.h \ | 
 | 33 | 	gen-cpp/tutorial_types.cpp \ | 
 | 34 | 	gen-cpp/tutorial_types.h | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 35 |  | 
 | 36 |  | 
 | 37 |  | 
 | 38 | libtutorialgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la | 
 | 39 |  | 
 | 40 | noinst_PROGRAMS = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 41 | 	TutorialServer \ | 
 | 42 | 	TutorialClient | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 43 |  | 
 | 44 | TutorialServer_SOURCES = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 45 | 	CppServer.cpp | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 46 |  | 
 | 47 | TutorialServer_LDADD = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 48 | 	libtutorialgencpp.la \ | 
 | 49 | 	$(top_builddir)/lib/cpp/libthrift.la | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 50 |  | 
 | 51 | TutorialClient_SOURCES = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 52 | 	CppClient.cpp | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 53 |  | 
 | 54 | TutorialClient_LDADD = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 55 | 	libtutorialgencpp.la \ | 
 | 56 | 	$(top_builddir)/lib/cpp/libthrift.la | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 57 |  | 
 | 58 | # | 
 | 59 | # Common thrift code generation rules | 
 | 60 | # | 
 | 61 | THRIFT = $(top_builddir)/compiler/cpp/thrift | 
 | 62 |  | 
| Roger Meier | a5bf1a1 | 2014-10-22 23:26:01 +0200 | [diff] [blame^] | 63 | gen-cpp/Calculator.cpp gen-cpp/SharedService.cpp gen-cpp/shared_constants.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] | 64 | 	$(THRIFT) --gen cpp -r $< | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 65 |  | 
| Konrad Grochowski | 1ff4a97 | 2014-09-19 23:57:57 +0200 | [diff] [blame] | 66 | 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] | 67 | AM_CXXFLAGS = -Wall -Wextra -pedantic | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 68 | AM_LDFLAGS = $(BOOST_LDFLAGS) $(LIBEVENT_LDFLAGS) | 
 | 69 |  | 
 | 70 | clean-local: | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 71 | 	$(RM) -r gen-cpp | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 72 |  | 
 | 73 | tutorialserver: all | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 74 | 	./TutorialServer | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 75 |  | 
 | 76 | tutorialclient: all | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 77 | 	./TutorialClient | 
| Roger Meier | 18a90d1 | 2012-10-24 18:40:06 +0000 | [diff] [blame] | 78 |  | 
 | 79 | EXTRA_DIST = \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 80 | 	CppClient.cpp \ | 
 | 81 | 	CppServer.cpp |