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.c ioctl.c subr.c 10DPSRCS= kdump_subr.h 11CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I. 12 13.if ${MK_CASPER} != "no" 14LIBADD= capsicum 15CFLAGS+=-DHAVE_LIBCAPSICUM 16.endif 17 18.if ${MK_PF} != "no" 19CFLAGS+=-DPF 20.endif 21 22NO_WERROR?= YES 23 24CLEANFILES= ioctl.c kdump_subr.c kdump_subr.h 25 26.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386") 27CLEANFILES+= linux_syscalls.c 28.endif 29.if (${MACHINE_ARCH} == "amd64") 30CLEANFILES+= linux32_syscalls.c 31.endif 32 33ioctl.c: mkioctls 34 env MACHINE=${MACHINE} CPP="${CPP}" \ 35 sh ${.CURDIR}/mkioctls print ${DESTDIR}/usr/include > ${.TARGET} 36 37kdump_subr.h: mksubr 38 sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include | \ 39 sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET} 40 41kdump_subr.c: mksubr kdump_subr.h 42 sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include >${.TARGET} 43.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386") 44 sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \ 45 ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux/syscalls.master ${.CURDIR}/linux_syscalls.conf 46.endif 47.if (${MACHINE_ARCH} == "amd64") 48 sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \ 49 ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux32/syscalls.master ${.CURDIR}/linux32_syscalls.conf 50.endif 51 52.include <bsd.prog.mk> 53