1 # $NetBSD: Makefile.ioctl-c,v 1.22 2008/10/19 22:05:23 apb Exp $
3 # NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR
5 DEPFILEGLOB= ${DESTDIR}/usr/include/*/*.h ${DESTDIR}/usr/include/*/*/*.h
7 .if !make(cleandir) && !make(obj) && !make(includes)
8 DEPFILES != egrep -l '(_IO\(|_IOR\(|_IOW\(|_IOWR\()' ${DEPFILEGLOB} | fgrep -v xenio
11 ${PROG}-ioctl.c: mkioctls Makefile ${DEPFILES}
13 AWK=${TOOL_AWK:Q} CC="${CC}" DESTDIR="${DESTDIR}" SED=${TOOL_SED:Q} \
14 ${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
15 ${DEPFILES} >${.TARGET}
17 SRCS+= ${PROG}-ioctl.c
18 CLEANFILES+= ${PROG}-ioctl.c
19 DPSRCS+= ${PROG}-ioctl.c
21 ${DEPFILES}: .PRECIOUS