blob: 5a232029a009add29851d845c016cf7cb1a06f69 [file] [log] [blame]
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +09001#
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#
19#
20# Contains some contributions under the Thrift Software License.
21# Please see doc/old-thrift-license.txt in the Thrift distribution for
22# details.
23
24AUTOMAKE_OPTIONS = subdir-objects serial-tests
25
26AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/compiler/cpp/src
27AM_LDFLAGS = $(BOOST_LDFLAGS)
28AM_CXXFLAGS = -Wall -Wextra -pedantic
29
30if WITH_PLUGIN
31check_PROGRAMS = plugintest
32
33noinst_PROGRAMS = thrift-gen-mycpp
34
35AM_CPPFLAGS += -I$(top_srcdir)/lib/cpp/src -I$(top_builddir)/lib/cpp/src
36
37plugintest_SOURCES = plugin/conversion_test.cc
38plugintest_LDADD = $(top_builddir)/compiler/cpp/libthriftc.la
39
40thrift_gen_mycpp_SOURCES = plugin/cpp_plugin.cc \
41 plugin/t_cpp_generator.cc
42thrift_gen_mycpp_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/compiler/cpp -I$(top_srcdir)/compiler/cpp/src/generate
43thrift_gen_mycpp_LDADD = $(top_builddir)/compiler/cpp/libthriftc.la
44
45cpp_plugin_test.sh: thrift-gen-mycpp
46TESTS = $(check_PROGRAMS) cpp_plugin_test.sh
47
48clean-local:
49 $(RM) -rf gen-cpp gen-mycpp
50
51endif