1 1.8 thorpej # $NetBSD: Makefile.ioctl-c,v 1.8 2003/08/27 20:35:42 thorpej Exp $ 2 1.5 lukem 3 1.5 lukem # NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR 4 1.1 mrg 5 1.8 thorpej DEPFILEGLOB= ${DESTDIR}/usr/include/sys/*.h \ 6 1.8 thorpej ${DESTDIR}/usr/include/net/*.h \ 7 1.8 thorpej ${DESTDIR}/usr/include/netinet/*.h \ 8 1.8 thorpej ${DESTDIR}/usr/include/crypto/*.h 9 1.8 thorpej 10 1.8 thorpej SEARCHFILES= ${DESTDIR}/usr/include/sys/ioctl.h \ 11 1.8 thorpej ${DESTDIR}/usr/include/sys/ioctl_compat.h \ 12 1.8 thorpej ${DESTDIR}/usr/include/crypto/cryptodev.h 13 1.8 thorpej 14 1.7 christos .if !target(cleandir) && !target(obj) 15 1.8 thorpej DEPFILES != grep -l '_IO.*(' ${DEPFILEGLOB} 16 1.7 christos .endif 17 1.6 christos 18 1.6 christos ioctl.c: mkioctls ${DEPFILES} 19 1.5 lukem CC="${CC}" DESTDIR=${DESTDIR} \ 20 1.5 lukem /bin/sh ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \ 21 1.8 thorpej ${SEARCHFILES} > ioctl.c 22 1.2 mrg 23 1.6 christos ${DEPFILES}: .PRECIOUS 24