Nobuaki Sukegawa | 11da87e | 2016-09-10 14:02:19 +0900 | [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 | # |
| 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 | |
| 24 | AUTOMAKE_OPTIONS = subdir-objects serial-tests |
| 25 | |
| 26 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/compiler/cpp/src |
| 27 | AM_LDFLAGS = $(BOOST_LDFLAGS) |
| 28 | AM_CXXFLAGS = -Wall -Wextra -pedantic |
| 29 | |
| 30 | if WITH_PLUGIN |
| 31 | check_PROGRAMS = plugintest |
| 32 | |
| 33 | noinst_PROGRAMS = thrift-gen-mycpp |
| 34 | |
Chet Murthy | 6ae4023 | 2017-11-26 21:42:26 -0800 | [diff] [blame] | 35 | all-local: thrift-gen-bincat |
| 36 | |
Nobuaki Sukegawa | 11da87e | 2016-09-10 14:02:19 +0900 | [diff] [blame] | 37 | AM_CPPFLAGS += -I$(top_srcdir)/lib/cpp/src -I$(top_builddir)/lib/cpp/src |
| 38 | |
| 39 | plugintest_SOURCES = plugin/conversion_test.cc |
| 40 | plugintest_LDADD = $(top_builddir)/compiler/cpp/libthriftc.la |
| 41 | |
| 42 | thrift_gen_mycpp_SOURCES = plugin/cpp_plugin.cc \ |
| 43 | plugin/t_cpp_generator.cc |
| 44 | thrift_gen_mycpp_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/compiler/cpp -I$(top_srcdir)/compiler/cpp/src/generate |
| 45 | thrift_gen_mycpp_LDADD = $(top_builddir)/compiler/cpp/libthriftc.la |
| 46 | |
| 47 | cpp_plugin_test.sh: thrift-gen-mycpp |
Chet Murthy | 6ae4023 | 2017-11-26 21:42:26 -0800 | [diff] [blame] | 48 | |
| 49 | thrift-gen-bincat: |
| 50 | cp bincat.sh $@ |
| 51 | chmod 755 $@ |
| 52 | |
| 53 | plugin_stability_test.sh: thrift-gen-bincat |
| 54 | |
| 55 | TESTS = $(check_PROGRAMS) cpp_plugin_test.sh plugin_stability_test.sh |
Nobuaki Sukegawa | 11da87e | 2016-09-10 14:02:19 +0900 | [diff] [blame] | 56 | |
| 57 | clean-local: |
Chet Murthy | 6ae4023 | 2017-11-26 21:42:26 -0800 | [diff] [blame] | 58 | $(RM) -rf gen-cpp gen-mycpp gen-bincat thrift-gen-bincat |
Nobuaki Sukegawa | 11da87e | 2016-09-10 14:02:19 +0900 | [diff] [blame] | 59 | |
| 60 | endif |