1 ## Makefile for libsigsegv.
2 ## Copyright (C) 2002-2003, 2007, 2009 Bruno Haible <bruno@clisp.org>
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, or (at your option)
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, write to the Free Software
16 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 ## Process this file with automake to produce Makefile.in.
21 AUTOMAKE_OPTIONS = 1.7h gnu no-dependencies
22 ACLOCAL_AMFLAGS = -I m4
26 EXTRA_DIST = ChangeLog.1 PORTING README.woe32 Makefile.msvc config.h.msvc
28 DISTCLEANFILES = termbold termnorm
31 # Lead the user through the installation, in the hope that he will help us
32 # by sending his config.log.
35 AM_MAKEFLAGS = TARGETSTACK="$(TARGETSTACK) $@"
39 @if echo "$(TARGETSTACK)" | grep check-recursive > /dev/null; then :; else \
40 if echo "$(TARGETSTACK)" | grep install-recursive > /dev/null; then :; else \
41 echo; echo "Now please type '"`cat termbold`"make check"`cat termnorm`"' to run a quick test suite. Hope it works."; echo; \
48 if grep '^@PLATFORM@ .* @VERSION@$$' $(srcdir)/PORTING > /dev/null; then :; else \
49 case '@PLATFORM@' in \
50 i?86-*-linux* | x86_64-*-linux*) ;; \
53 echo "Please send the following summary line via email to the author"; \
54 echo "Bruno Haible <bruno@clisp.org> for inclusion into the list of"; \
55 echo "successfully tested platforms (see PORTING file)."; echo; \
56 if test @HAVE_SIGSEGV_RECOVERY@ = 1; then have1=yes; else have1=no; fi; \
57 if test @HAVE_STACK_OVERFLOW_RECOVERY@ = 1; then have2=yes; else have2=no; fi; \
58 echo `cat termbold`"libsigsegv: @PLATFORM@ | $$have1 | $$have2 | @VERSION@"`cat termnorm`; \
63 echo; echo "$$when please type '"`cat termbold`"make install"`cat termnorm`"' to install the package."; echo
65 install-data-hook: install-next
67 @echo; echo "Now use the package; you can remove it later via '"`cat termbold`"make uninstall"`cat termnorm`"'."; echo
70 # Rules for "make dist".
72 $(srcdir)/config.h.msvc : config.h.in
73 sed -e 's/#undef CFG_HANDLER/#define CFG_HANDLER "handler-win32.c"/' < $(srcdir)/config.h.in > $@