22 lines
686 B
Makefile
22 lines
686 B
Makefile
# $NetBSD: Makefile.ioctl-c,v 1.23 2008/10/25 22:23:55 apb Exp $
|
|
|
|
# NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR
|
|
|
|
DEPFILEGLOB= ${DESTDIR}/usr/include/*/*.h ${DESTDIR}/usr/include/*/*/*.h
|
|
|
|
.if !make(cleandir) && !make(obj) && !make(includes)
|
|
DEPFILES != egrep -l '(_IO\(|_IOR\(|_IOW\(|_IOWR\()' ${DEPFILEGLOB} | fgrep -v xenio
|
|
.endif
|
|
|
|
${PROG}-ioctl.c: mkioctls Makefile ${DEPFILES}
|
|
${_MKTARGET_CREATE}
|
|
AWK=${TOOL_AWK:Q} CC="${CC}" DESTDIR="${DESTDIR}" SED=${TOOL_SED:Q} \
|
|
${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
|
|
${DEPFILES} >${.TARGET}
|
|
|
|
SRCS+= ${PROG}-ioctl.c
|
|
CLEANFILES+= ${PROG}-ioctl.c
|
|
DPSRCS+= ${PROG}-ioctl.c
|
|
|
|
${DEPFILES}: .PRECIOUS
|