Add installation information for the tarball users and from a git checkout.
[libsigsegv.git] / tests / Makefile.am
blobcfee994bbdd168e15958976a3977a650c4f97c98
1 ## Makefile for libsigsegv/tests.
2 ## Copyright (C) 2002-2003, 2008-2010, 2016, 2021 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.11 gnits no-dependencies color-tests
21 TESTS = \
22   test-catch-segv1 \
23   test-catch-segv2 \
24   test-segv-dispatcher1 \
25   test-catch-stackoverflow1 \
26   test-catch-stackoverflow2
28 EXTRA_DIST = mmap-anon-util.h altstack-util.h
30 AM_CPPFLAGS = -I../src
31 DEFS = @DEFS@
32 LDADD = ../src/libsigsegv.la
33 noinst_PROGRAMS = \
34   test-catch-segv1 \
35   test-catch-segv2 \
36   test-segv-dispatcher1 \
37   test-catch-stackoverflow1 \
38   test-catch-stackoverflow2
40 if CYGWIN
41 TESTS += cygwin1
42 noinst_PROGRAMS += cygwin1
43 endif
45 if ENABLE_EFAULT
46 TESTS += efault1 efault2 efault3
47 noinst_PROGRAMS += efault1 efault2 efault3
48 endif
50 # The following rule is necessary to avoid a toplevel "make -n" failure.
51 ../src/libsigsegv.la :
52         cd ../src && $(MAKE) libsigsegv.la