2006-06-02 17:56:49 +04:00
|
|
|
# $NetBSD: Makefile.ioctl-c,v 1.17 2006/06/02 13:56:49 christos Exp $
|
2002-09-19 15:31:21 +04:00
|
|
|
|
|
|
|
# NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR
|
1999-07-12 08:13:34 +04:00
|
|
|
|
2004-04-23 02:31:18 +04:00
|
|
|
DEPFILEGLOB= ${DESTDIR}/usr/include/*/*.h
|
2003-08-28 00:35:42 +04:00
|
|
|
|
2004-07-07 18:28:17 +04:00
|
|
|
.if !make(cleandir) && !make(obj) && !make(includes)
|
2006-06-02 17:56:49 +04:00
|
|
|
DEPFILES != egrep -l '(_IO\(|_IOR\(|_IOW\(|_IOWR\()' ${DEPFILEGLOB}
|
2003-04-18 18:43:49 +04:00
|
|
|
.endif
|
2003-04-13 09:04:00 +04:00
|
|
|
|
2004-07-10 16:12:49 +04:00
|
|
|
${PROG}-ioctl.c: mkioctls Makefile ${DEPFILES}
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2002-09-19 15:31:21 +04:00
|
|
|
CC="${CC}" DESTDIR=${DESTDIR} \
|
2003-10-19 08:25:00 +04:00
|
|
|
${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
|
2004-07-10 16:12:49 +04:00
|
|
|
${DEPFILES} >${.TARGET}
|
|
|
|
|
|
|
|
SRCS+= ${PROG}-ioctl.c
|
|
|
|
CLEANFILES+= ${PROG}-ioctl.c
|
2000-07-27 15:51:14 +04:00
|
|
|
|
2003-04-13 09:04:00 +04:00
|
|
|
${DEPFILES}: .PRECIOUS
|