1 ## Copyright (C) 2018-2021 Free Software Foundation, Inc.
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.
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
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
)
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
)
42 EXTRA_DIST
+= %D
%/simple.
test
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
)
57 EXTRA_DIST
+= %D
%/variant.
test
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
)
68 EXTRA_DIST
+= %D
%/variant-11.
test
70 dist_cxx_DATA
= %D
%/README.md
%D
%/Makefile
%D
%/variant.yy
%D
%/variant-11.yy
72 %D
%/simple.output
%D
%/variant.output
%D
%/variant-11.output \
73 %D
%/simple.hh
%D
%/variant.hh
%D
%/variant-11.hh