NetBSD/usr.bin/kdump/Makefile.ioctl-c

25 lines
723 B
Makefile

# $NetBSD: Makefile.ioctl-c,v 1.10 2003/10/21 10:01:22 lukem Exp $
# NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR
DEPFILEGLOB= ${DESTDIR}/usr/include/sys/*.h \
${DESTDIR}/usr/include/net/*.h \
${DESTDIR}/usr/include/netinet/*.h \
${DESTDIR}/usr/include/crypto/*.h
SEARCHFILES= ${DESTDIR}/usr/include/sys/ioctl.h \
${DESTDIR}/usr/include/sys/ioctl_compat.h \
${DESTDIR}/usr/include/crypto/cryptodev.h
.if !target(cleandir) && !target(obj)
DEPFILES != grep -l '_IO.*(' ${DEPFILEGLOB}
.endif
ioctl.c: mkioctls ${DEPFILES}
${_MKTARGET_CREATE}
CC="${CC}" DESTDIR=${DESTDIR} \
${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
${SEARCHFILES} > ioctl.c
${DEPFILES}: .PRECIOUS