### -*-automake-*- ### ### Build script for `finally' ### ### (c) 2023 Mark Wooding ### ###----- Licensing notice --------------------------------------------------- ### ### This file is part of the `Finally' package. ### ### Finally is free software: you can redistribute it and/or modify it ### under the terms of the GNU Library General Public License as published ### by the Free Software Foundation; either version 2 of the License, or ### (at your option) any later version. ### ### Finally is distributed in the hope that it will be useful, but WITHOUT ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public ### License for more details. ### ### You should have received a copy of the GNU Library General Public ### License along with Finally. If not, write to the Free Software ### Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, ### USA. include_HEADERS = dist_man_MANS = EXTRA_DIST = ###-------------------------------------------------------------------------- ### The main build. include_HEADERS += finally.h dist_man_MANS += FINALLY.3 ###-------------------------------------------------------------------------- ### Test configuration. check_PROGRAMS = check_LIBRARIES = TESTS = AM_TESTS_ENVIRONMENT = env TEST_OUTFORM=tap LOG_DRIVER = env AM_TAP_AWK=$(AWK) $(SHELL) \ $(top_srcdir)/config/tap-driver.sh check_LIBRARIES += libfintest.a libfintest_a_SOURCES = libfintest_a_SOURCES += finally-test.h libfintest_a_SOURCES += test-guts.c if FEXCEPTIONS libfintest_a_SOURCES += try-catch.cc endif if C ## The C test program. check_PROGRAMS += finally-test finally_test_SOURCES = finally-test.c if FEXCEPTIONS nodist_EXTRA_finally_test_SOURCES = bodge.cc endif finally_test_LDADD = libfintest.a $(FINALLY_LIBS) TESTS += finally-test TESTS += examine-binary EXTRA_DIST += examine-binary endif if CXX14 ## The C++ test program. Which is actually exactly the same program, only ## (partially) compiled with a C++ compiler. check_PROGRAMS += finally-cxx-test finally_cxx_test_SOURCES = finally-cxx-test.cc finally_cxx_test_LDADD = libfintest.a TESTS += finally-cxx-test endif ###----- That's all, folks --------------------------------------------------