1994-05-27 12:33:43 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
1999-12-02 13:47:17 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2013-12-15 23:49:42 +00:00
|
|
|
|
2002-07-23 09:15:45 +00:00
|
|
|
.PATH: ${.CURDIR}/../ktrace
|
2002-06-21 10:21:21 +00:00
|
|
|
|
2002-06-21 11:06:11 +00:00
|
|
|
PROG= kdump
|
2015-11-25 20:38:17 +00:00
|
|
|
SRCS= kdump_subr.c kdump_subr.h kdump.c ioctl.c subr.c utrace.c
|
2011-10-08 09:57:29 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I.
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2013-12-15 23:09:05 +00:00
|
|
|
.if ${MK_CASPER} != "no"
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= capsicum
|
2013-12-15 23:09:05 +00:00
|
|
|
CFLAGS+=-DHAVE_LIBCAPSICUM
|
|
|
|
.endif
|
|
|
|
|
2014-02-12 09:59:48 +00:00
|
|
|
.if ${MK_PF} != "no"
|
|
|
|
CFLAGS+=-DPF
|
|
|
|
.endif
|
|
|
|
|
2011-10-12 21:45:12 +00:00
|
|
|
NO_WERROR?= YES
|
2010-01-02 10:27:05 +00:00
|
|
|
|
2015-01-06 18:53:09 +00:00
|
|
|
CLEANFILES= ioctl.c kdump_subr.c kdump_subr.h
|
|
|
|
|
2015-06-15 06:48:43 +00:00
|
|
|
beforedepend: ioctl.c
|
|
|
|
|
2015-01-06 18:53:09 +00:00
|
|
|
.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386")
|
2015-06-15 06:48:43 +00:00
|
|
|
beforedepend: linux_syscalls.c
|
|
|
|
|
2015-01-06 18:53:09 +00:00
|
|
|
CLEANFILES+= linux_syscalls.c
|
2015-06-14 03:30:39 +00:00
|
|
|
kdump.o: linux_syscalls.c
|
|
|
|
linux_syscalls.c: linux_syscalls.conf
|
|
|
|
sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
|
|
|
|
${.CURDIR}/../../sys/${MACHINE_ARCH}/linux/syscalls.master ${.CURDIR}/linux_syscalls.conf
|
2015-01-06 18:53:09 +00:00
|
|
|
.endif
|
2015-05-24 16:22:03 +00:00
|
|
|
.if (${MACHINE_ARCH} == "amd64")
|
2015-06-15 06:48:43 +00:00
|
|
|
beforedepend: linux32_syscalls.c
|
|
|
|
|
2015-05-24 16:22:03 +00:00
|
|
|
CLEANFILES+= linux32_syscalls.c
|
2015-06-14 03:30:39 +00:00
|
|
|
kdump.o: linux32_syscalls.c
|
|
|
|
linux32_syscalls.c: linux32_syscalls.conf
|
|
|
|
sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
|
|
|
|
${.CURDIR}/../../sys/${MACHINE_ARCH}/linux32/syscalls.master ${.CURDIR}/linux32_syscalls.conf
|
2015-05-24 16:22:03 +00:00
|
|
|
.endif
|
2002-06-21 10:21:21 +00:00
|
|
|
|
2002-07-23 09:15:45 +00:00
|
|
|
ioctl.c: mkioctls
|
2012-04-09 14:47:18 +00:00
|
|
|
env MACHINE=${MACHINE} CPP="${CPP}" \
|
2015-06-11 14:25:53 +00:00
|
|
|
sh ${.CURDIR}/mkioctls print ${DESTDIR}${INCLUDEDIR} > ${.TARGET}
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2011-10-08 09:57:29 +00:00
|
|
|
kdump_subr.h: mksubr
|
2015-06-11 14:25:53 +00:00
|
|
|
sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} | \
|
2011-10-08 09:57:29 +00:00
|
|
|
sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET}
|
|
|
|
|
|
|
|
kdump_subr.c: mksubr kdump_subr.h
|
2015-06-11 14:25:53 +00:00
|
|
|
sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} >${.TARGET}
|
2011-03-01 16:42:28 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|