Avoid test failures with ASAN.
[libsigsegv.git] / Makefile.am
blob9e0137442f633abd72d3439a5a7e5300e8c3e56c
1 ## Makefile for libsigsegv.
2 ## Copyright (C) 2002-2003, 2007, 2009, 2011, 2016-2018, 2021-2023 Bruno Haible <bruno@clisp.org>
3 ##
4 ## This program is free software: you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2 of the License, or
7 ## (at your option) any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program.  If not, see <https://www.gnu.org/licenses/>.
17 ## Process this file with automake to produce Makefile.in.
19 AUTOMAKE_OPTIONS = 1.7h gnu no-dependencies
21 # This package does not support parallel make.
22 # So, turn off parallel execution (at least in GNU make >= 4.0).
23 GNUMAKEFLAGS = -j1
25 SUBDIRS = src tests
27 EXTRA_DIST = \
28   ChangeLog.1 PORTING INSTALL.windows HACKING JOIN-GNU \
29   autogen.sh
31 DISTCLEANFILES = termbold termnorm
34 # Lead the user through the installation, in the hope that he will help us
35 # by sending his config.log.
37 TARGETSTACK =
38 AM_MAKEFLAGS = TARGETSTACK="$(TARGETSTACK) $@"
40 all-am: all-next
41 all-next:
42         @if echo "$(TARGETSTACK)" | grep check-recursive > /dev/null; then :; else \
43            if echo "$(TARGETSTACK)" | grep install-recursive > /dev/null; then :; else \
44              echo; echo "Now please type '"`cat termbold`"make check"`cat termnorm`"' to run a quick test suite. Hope it works."; echo; \
45            fi; \
46          fi
48 check-am: check-next
49 check-next:
50         @when="Now"; \
51         if grep '^@PLATFORM@ .* @VERSION@$$' $(srcdir)/PORTING > /dev/null; then :; else \
52           case '@PLATFORM@' in \
53             i?86-*-linux* | x86_64-*-linux* | *-apple-darwin*) ;; \
54             *) \
55               echo; \
56               echo "Please send the following summary line via email to the main author"; \
57               echo "Bruno Haible <bruno@clisp.org> for inclusion into the list of"; \
58               echo "successfully tested platforms (see PORTING file)."; echo; \
59               if test @HAVE_SIGSEGV_RECOVERY@ = 1; then have1=yes; else have1=no; fi; \
60               if test @HAVE_STACK_OVERFLOW_RECOVERY@ = 1; then have2=yes; else have2=no; fi; \
61               echo `cat termbold`"libsigsegv: @PLATFORM@ | $$have1 | $$have2 | @VERSION@"`cat termnorm`; \
62               when="Then"; \
63               ;; \
64           esac; \
65         fi; \
66         echo; echo "$$when please type '"`cat termbold`"make install"`cat termnorm`"' to install the package."; echo
68 install-data-hook: install-next
69 install-next:
70         @echo; echo "Now use the package; you can remove it later via '"`cat termbold`"make uninstall"`cat termnorm`"'."; echo