1# @(#)Makefile 8.1 (Berkeley) 6/6/93 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6.PATH: ${.CURDIR}/../ktrace 7 8PROG= kdump 9SRCS= kdump_subr.c kdump_subr.h kdump.c subr.c 10CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I. 11 12LIBADD= sysdecode 13.if ${MK_CASPER} != "no" 14LIBADD+= capsicum 15CFLAGS+=-DHAVE_LIBCAPSICUM 16.endif 17 18NO_WERROR?= YES 19 20CLEANFILES= kdump_subr.c kdump_subr.h 21 22.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386") 23beforedepend: linux_syscalls.c 24 25CLEANFILES+= linux_syscalls.c 26kdump.o: linux_syscalls.c 27linux_syscalls.c: linux_syscalls.conf 28 sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \ 29 ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux/syscalls.master ${.CURDIR}/linux_syscalls.conf 30.endif 31.if (${MACHINE_ARCH} == "amd64") 32beforedepend: linux32_syscalls.c 33 34CLEANFILES+= linux32_syscalls.c 35kdump.o: linux32_syscalls.c 36linux32_syscalls.c: linux32_syscalls.conf 37 sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \ 38 ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux32/syscalls.master ${.CURDIR}/linux32_syscalls.conf 39.endif 40 41kdump_subr.h: mksubr 42 sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} | \ 43 sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET} 44 45kdump_subr.c: mksubr kdump_subr.h 46 sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} >${.TARGET} 47 48.include <bsd.prog.mk> 49