Add half-hearted support for Clang, because its `blocks' are deficient.
[finally] / Makefile.am
CommitLineData
d58b8198
MW
1### -*-automake-*-
2###
3### Build script for `finally'
4###
5### (c) 2023 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of the `Finally' package.
11###
12### Finally is free software: you can redistribute it and/or modify it
13### under the terms of the GNU Library General Public License as published
14### by the Free Software Foundation; either version 2 of the License, or
15### (at your option) any later version.
16###
17### Finally is distributed in the hope that it will be useful, but WITHOUT
18### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19### FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
20### License for more details.
21###
22### You should have received a copy of the GNU Library General Public
23### License along with Finally. If not, write to the Free Software
24### Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
25### USA.
26
27include_HEADERS =
28dist_man_MANS =
29EXTRA_DIST =
30
31###--------------------------------------------------------------------------
32### The main build.
33
34include_HEADERS += finally.h
35dist_man_MANS += FINALLY.3
36
37###--------------------------------------------------------------------------
38### Test configuration.
39
40check_PROGRAMS =
41check_LIBRARIES =
42TESTS =
43
44AM_TESTS_ENVIRONMENT = env TEST_OUTFORM=tap
45LOG_DRIVER = env AM_TAP_AWK=$(AWK) $(SHELL) \
46 $(top_srcdir)/config/tap-driver.sh
47
48check_LIBRARIES += libfintest.a
49libfintest_a_SOURCES =
50libfintest_a_SOURCES += finally-test.h
51libfintest_a_SOURCES += test-guts.c
52if FEXCEPTIONS
53libfintest_a_SOURCES += try-catch.cc
54endif
55
56if C
57## The C test program.
58check_PROGRAMS += finally-test
59finally_test_SOURCES = finally-test.c
60if FEXCEPTIONS
61nodist_EXTRA_finally_test_SOURCES = bodge.cc
62endif
63finally_test_LDADD = libfintest.a $(FINALLY_LIBS)
64TESTS += finally-test
65TESTS += examine-binary
66EXTRA_DIST += examine-binary
67endif
68
69if CXX14
70## The C++ test program. Which is actually exactly the same program, only
71## (partially) compiled with a C++ compiler.
72check_PROGRAMS += finally-cxx-test
73finally_cxx_test_SOURCES = finally-cxx-test.cc
74finally_cxx_test_LDADD = libfintest.a
75TESTS += finally-cxx-test
76endif
77
78###----- That's all, folks --------------------------------------------------