## Makefile for libsigsegv/src. ## Copyright (C) 2002-2003 Bruno Haible ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## This program 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 General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ## Process this file with automake to produce Makefile.in. AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies RM = rm -f lib_LTLIBRARIES = libsigsegv.la noinst_HEADERS = \ fault.h fault-aix.h fault-aix-powerpc.h fault-beos.h fault-beos-i386.h \ fault-bsd.h fault-freebsd-i386.h \ fault-hpux.h fault-hpux-hppa.h fault-hurd.h fault-irix.h fault-irix-mips.h \ fault-linux.h fault-linux-alpha.h fault-linux-arm.h fault-linux-cris.h \ fault-linux-hppa.h fault-linux-i386.h fault-linux-i386-old.h \ fault-linux-ia64.h fault-linux-m68k.h fault-linux-m68k.c fault-linux-mips.h \ fault-linux-powerpc.h fault-linux-s390.h fault-linux-sh.h \ fault-linux-sparc.h fault-linux-x86_64.h \ fault-macos-i386.h fault-macos-powerpc.h fault-macos-powerpc.c \ fault-netbsd-alpha.h fault-netbsd-alpha.c \ fault-none.h \ fault-openbsd.h fault-openbsd-i386.h \ fault-osf.h fault-osf-alpha.h \ fault-posix.h fault-solaris.h fault-solaris-i386.h fault-solaris-sparc.h \ signals.h signals-bsd.h signals-hpux.h signals-hurd.h signals-macos.h \ leave.h \ stackvma.h EXTRA_DIST = \ handler-none.c handler-unix.c handler-win32.c \ stackvma-none.c stackvma-linux.c stackvma-freebsd.c stackvma-procfs.c \ stackvma-beos.c stackvma-mach.c \ leave-none.c leave-nop.c leave-sigaltstack.c leave-setcontext.c \ sigsegv.h.msvc INCLUDES = -I. -I$(srcdir) DEFS = @DEFS@ libsigsegv_la_SOURCES = handler.c stackvma.c leave.c dispatcher.c libsigsegv_la_LDFLAGS = -lc -no-undefined # Dependencies. handler.$(OBJEXT) : ../config.h sigsegv.h @CFG_HANDLER@ $(noinst_HEADERS) stackvma.$(OBJEXT) : ../config.h @CFG_STACKVMA@ stackvma.h leave.$(OBJEXT) : ../config.h @CFG_LEAVE@ dispatcher.$(OBJEXT) : sigsegv.h # Special rules for installing sigsegv.h. install-data-local: $(mkinstalldirs) $(DESTDIR)$(includedir) $(INSTALL_DATA) sigsegv.h $(DESTDIR)$(includedir)/sigsegv.h installdirs-local: $(mkinstalldirs) $(DESTDIR)$(includedir) uninstall-local: $(RM) $(DESTDIR)$(includedir)/sigsegv.h DISTCLEANFILES = sigsegv.h # Rules for "make dist". sigsegv.h.msvc : sigsegv.h.in sed -e 's/@''FAULT_CONTEXT_INCLUDE''@/#include /' \ -e 's/@''FAULT_CONTEXT''@/CONTEXT/' \ -e 's/@''HAVE_SIGSEGV_RECOVERY''@/1/' \ -e 's/@''HAVE_STACK_OVERFLOW_RECOVERY''@/1/' \ < $(srcdir)/sigsegv.h.in > $@ # One more automake bug. installdirs: installdirs-local