1# @(#)Makefile 8.1 (Berkeley) 6/6/93 2# $FreeBSD$ 3 4.if (${MACHINE_ARCH} == "amd64") 5SFX= 32 6.endif 7 8.PATH: ${.CURDIR}/../ktrace 9 10PROG= kdump 11SRCS= kdump.c ioctl.c kdump_subr.c subr.c 12CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. 13 14.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" 15SRCS+= linux_syscalls.c 16.endif 17 18WARNS?= 0 19 20CLEANFILES= ioctl.c kdump_subr.c linux_syscalls.c 21 22ioctl.c: mkioctls 23 sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET} 24 25kdump_subr.c: mksubr 26 sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include > ${.TARGET} 27 28linux_syscalls.c: 29 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \ 30 ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf 31 echo "int nlinux_syscalls = sizeof(linux_syscallnames) / sizeof(linux_syscallnames[0]);" \ 32 >> linux_syscalls.c 33 34.include <bsd.prog.mk> 35