Update URLs to prefer https: to http:
[bison.git] / examples / c++ / local.mk
blobb3a3a39781bae3ce456e03ccce4c2c2bdc859f87
1 ## Copyright (C) 2018-2021 Free Software Foundation, Inc.
2 ##
3 ## This program is free software: you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation, either version 3 of the License, or
6 ## (at your option) any later version.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ## GNU General Public License for more details.
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program. If not, see <https://www.gnu.org/licenses/>.
16 cxxdir = $(docdir)/%D%
17 include %D%/calc++/local.mk
19 ## -------- ##
20 ## Simple. ##
21 ## -------- ##
23 BUILT_SOURCES += $(simple_sources)
24 CLEANFILES += %D%/simple.[ch] %D%/simple.output
25 CLEANDIRS += %D%/*.dSYM
26 cxx_DATA = $(simple_extracted)
28 simple_extracted = %D%/simple.yy
29 simple_sources = $(simple_extracted)
30 extracted += $(simple_extracted)
32 if ENABLE_CXX14
33 check_PROGRAMS += %D%/simple
34 nodist_%C%_simple_SOURCES = $(simple_sources)
36 %C%_simple_CXXFLAGS = $(CXX11_CXXFLAGS) $(WARN_CXXFLAGS_TEST)
37 # Don't use gnulib's system headers.
38 %C%_simple_CPPFLAGS = -I$(top_builddir)
39 TESTS += %D%/simple.test
40 %D%/simple.cc: $(dependencies)
41 endif
42 EXTRA_DIST += %D%/simple.test
45 ## ---------- ##
46 ## Variants. ##
47 ## ---------- ##
49 if ENABLE_CXX
50 check_PROGRAMS += %D%/variant
51 nodist_%C%_variant_SOURCES = %D%/variant.yy
52 # Don't use gnulib's system headers.
53 %C%_variant_CPPFLAGS = -I$(top_builddir)
54 TESTS += %D%/variant.test
55 %D%/variant.cc: $(dependencies)
56 endif
57 EXTRA_DIST += %D%/variant.test
59 if ENABLE_CXX11
60 check_PROGRAMS += %D%/variant-11
61 nodist_%C%_variant_11_SOURCES = %D%/variant-11.yy
62 %C%_variant_11_CXXFLAGS = $(CXX11_CXXFLAGS) $(WARN_CXXFLAGS_TEST)
63 # Don't use gnulib's system headers.
64 %C%_variant_11_CPPFLAGS = -I$(top_builddir)
65 TESTS += %D%/variant-11.test
66 %D%/variant-11.cc: $(dependencies)
67 endif
68 EXTRA_DIST += %D%/variant-11.test
70 dist_cxx_DATA = %D%/README.md %D%/Makefile %D%/variant.yy %D%/variant-11.yy
71 CLEANFILES += \
72 %D%/simple.output %D%/variant.output %D%/variant-11.output \
73 %D%/simple.hh %D%/variant.hh %D%/variant-11.hh