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
|
|
|
|
2011-03-01 16:42:28 +00:00
|
|
|
.if (${MACHINE_ARCH} == "amd64")
|
|
|
|
SFX= 32
|
|
|
|
.endif
|
|
|
|
|
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
|
Change kdump to print more useful information, i.e. it changes from
32229 telnet CALL mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0)
32229 telnet CALL open(0x2807bc28,0,0x1b6)
32229 telnet CALL socket(0x2,0x2,0)
to
32229 telnet CALL mmap(0,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0,0,0)
32229 telnet CALL open(0x2807bc28,O_RDONLY,<unused>0x1b6)
32229 telnet CALL socket(PF_INET,SOCK_DGRAM,0)
David wanted to implement the suggestions which came up at the review from
arch@ too, but real life rejected this proposal. So I commit what we already
got and let another volunteer pick the remaining work from the ideas list.
Submitted by: "David Kirchner" <dpk@dpk.net>
Suggested by: FreeBSD ideas list page
Reviewed by: arch
2006-05-20 14:27:22 +00:00
|
|
|
SRCS= kdump.c ioctl.c kdump_subr.c subr.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../..
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2011-03-01 16:42:28 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
|
|
|
SRCS+= linux_syscalls.c
|
|
|
|
.endif
|
|
|
|
|
2010-01-02 10:27:05 +00:00
|
|
|
WARNS?= 0
|
|
|
|
|
2011-03-01 16:42:28 +00:00
|
|
|
CLEANFILES= ioctl.c kdump_subr.c linux_syscalls.c
|
2002-06-21 10:21:21 +00:00
|
|
|
|
2002-07-23 09:15:45 +00:00
|
|
|
ioctl.c: mkioctls
|
2000-09-14 18:52:48 +00:00
|
|
|
sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
|
1994-05-27 12:33:43 +00:00
|
|
|
|
Change kdump to print more useful information, i.e. it changes from
32229 telnet CALL mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0)
32229 telnet CALL open(0x2807bc28,0,0x1b6)
32229 telnet CALL socket(0x2,0x2,0)
to
32229 telnet CALL mmap(0,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0,0,0)
32229 telnet CALL open(0x2807bc28,O_RDONLY,<unused>0x1b6)
32229 telnet CALL socket(PF_INET,SOCK_DGRAM,0)
David wanted to implement the suggestions which came up at the review from
arch@ too, but real life rejected this proposal. So I commit what we already
got and let another volunteer pick the remaining work from the ideas list.
Submitted by: "David Kirchner" <dpk@dpk.net>
Suggested by: FreeBSD ideas list page
Reviewed by: arch
2006-05-20 14:27:22 +00:00
|
|
|
kdump_subr.c: mksubr
|
|
|
|
sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include > ${.TARGET}
|
|
|
|
|
2011-03-01 16:42:28 +00:00
|
|
|
linux_syscalls.c:
|
|
|
|
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
|
|
|
|
${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf
|
|
|
|
echo "int nlinux_syscalls = sizeof(linux_syscallnames) / sizeof(linux_syscallnames[0]);" \
|
|
|
|
>> linux_syscalls.c
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|