]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/tutorial/cpp/Makefile.am
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / tutorial / cpp / Makefile.am
CommitLineData
f67539c2
TL
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#
19AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc
20
21BUILT_SOURCES = gen-cpp/shared_types.cpp \
22 gen-cpp/tutorial_types.cpp
23
24noinst_LTLIBRARIES = libtutorialgencpp.la
25nodist_libtutorialgencpp_la_SOURCES = \
26 gen-cpp/Calculator.cpp \
27 gen-cpp/Calculator.h \
28 gen-cpp/SharedService.cpp \
29 gen-cpp/SharedService.h \
30 gen-cpp/shared_constants.cpp \
31 gen-cpp/shared_constants.h \
32 gen-cpp/shared_types.cpp \
33 gen-cpp/shared_types.h \
34 gen-cpp/tutorial_constants.cpp \
35 gen-cpp/tutorial_constants.h \
36 gen-cpp/tutorial_types.cpp \
37 gen-cpp/tutorial_types.h
38
39
40
41libtutorialgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
42
43noinst_PROGRAMS = \
44 TutorialServer \
45 TutorialClient
46
47TutorialServer_SOURCES = \
48 CppServer.cpp
49
50TutorialServer_LDADD = \
51 libtutorialgencpp.la \
52 $(top_builddir)/lib/cpp/libthrift.la
53
54TutorialClient_SOURCES = \
55 CppClient.cpp
56
57TutorialClient_LDADD = \
58 libtutorialgencpp.la \
59 $(top_builddir)/lib/cpp/libthrift.la
60
61#
62# Common thrift code generation rules
63#
64gen-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
65 $(THRIFT) --gen cpp -r $<
66
67AM_CPPFLAGS = $(BOOST_CPPFLAGS) $(LIBEVENT_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -Igen-cpp
68AM_CXXFLAGS = -Wall -Wextra -pedantic
69AM_LDFLAGS = $(BOOST_LDFLAGS) $(LIBEVENT_LDFLAGS)
70
71clean-local:
72 $(RM) gen-cpp/*
73
74tutorialserver: all
75 ./TutorialServer
76
77tutorialclient: all
78 ./TutorialClient
79
80style-local:
81 $(CPPSTYLE_CMD)
82
83EXTRA_DIST = \
84 CMakeLists.txt \
85 CppClient.cpp \
86 CppServer.cpp