summaryrefslogtreecommitdiff
path: root/usr.bin/kdump/Makefile
blob: 9b1beef54ffa30d7e9d2a46c4cd7f544fc659bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#	$OpenBSD: Makefile,v 1.24 2013/08/22 02:02:33 guenther Exp $

LDSTATIC=${STATIC}
PROG=	kdump
CFLAGS+=-I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../../sys
SRCS=	kdump.c ioctl.c kdump_subr.c subr.c ktrstruct.c
.PATH:	${.CURDIR}/../ktrace
CLEANFILES+=ioctl.c kdump_subr.c

ioctl.c: ${.CURDIR}/Makefile ${.CURDIR}/mkioctls
	CC="${CC}" \
	/bin/sh ${.CURDIR}/mkioctls /usr/include/sys/ioctl.h \
	    /usr/include/sys/ioctl_compat.h \
	    /usr/include/crypto/cryptodev.h \
	    /usr/include/dev/biovar.h \
	    /usr/include/dev/systrace.h \
	    /usr/include/dev/wscons/wsconsio.h \
	    /usr/include/dev/vndioctl.h \
	    /usr/include/net/bpf.h \
	    /usr/include/net/if_ppp.h \
	    /usr/include/net/if_pppoe.h \
	    /usr/include/net/if_tun.h \
	    /usr/include/net/pfvar.h \
	    /usr/include/net80211/ieee80211_ioctl.h \
	    /usr/include/netinet6/in6_var.h \
	    /usr/include/sys/tty.h \
	    /usr/include/sys/agpio.h \
	    /usr/include/sys/ataio.h \
	    /usr/include/sys/audioio.h \
	    /usr/include/sys/cdio.h \
	    /usr/include/sys/chio.h \
	    /usr/include/sys/dkio.h \
	    /usr/include/sys/filio.h \
	    /usr/include/sys/gpio.h \
	    /usr/include/sys/mtio.h \
	    /usr/include/sys/pciio.h \
	    /usr/include/sys/radioio.h \
	    /usr/include/sys/scanio.h \
	    /usr/include/sys/scsiio.h \
	    /usr/include/sys/sockio.h > ioctl.c

kdump_subr.c: ${.CURDIR}/mksubr
	sh ${.CURDIR}/mksubr /usr/include > ${.TARGET}

.include <bsd.prog.mk>