Home | History | Annotate | Line # | Download | only in kdump
Makefile.ioctl-c revision 1.24
      1  1.24       dsl #	$NetBSD: Makefile.ioctl-c,v 1.24 2013/04/04 22:35:28 dsl 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.24       dsl # We are trying to get the list of .h files that define all ioctls
      6  1.24       dsl # This version grabs the non-obsolete .h files from the set lists
      7  1.24       dsl # and silently ignores any that don't exist in ${DESTDIR}.
      8  1.24       dsl # NB: The compiler uses the .h files in ${NETBSDSRCDIR}.
      9  1.24       dsl 
     10  1.24       dsl SETBASE=${NETBSDSRCDIR}/distrib/sets/lists/comp
     11  1.24       dsl SETFILES:=${SETBASE}/mi
     12  1.24       dsl .for md in md.${MACHINE} /md.${MACHINE}.${MACHINE_ARCH}
     13  1.24       dsl .if exists(${SETBASE}/${md})
     14  1.24       dsl SETFILES:= ${SETFILES} ${SETBASE}/${md}
     15  1.24       dsl .endif
     16  1.24       dsl .endfor
     17   1.8   thorpej 
     18  1.15      tron .if !make(cleandir) && !make(obj) && !make(includes)
     19  1.24       dsl DEPFILEGLOB != ${TOOL_SED} -ne '/\/usr\/include\/.*\.h[ 	]/{s/[ 	]obsolete$$//;t' -e 's/xenio//;t' -e 's,\.\([^ 	]*\).*,${DESTDIR}\1,;p;}' ${SETFILES}
     20  1.24       dsl DEPFILES != egrep -l '(_IO\(|_IOR\(|_IOW\(|_IOWR\()' ${DEPFILEGLOB} 2>/dev/null || :
     21   1.7  christos .endif
     22   1.6  christos 
     23  1.24       dsl ${PROG}-ioctl.c: mkioctls Makefile ${DEPFILES} ${SETFILES}
     24  1.10     lukem 	${_MKTARGET_CREATE}
     25  1.23       apb 	AWK=${TOOL_AWK:Q} CC="${CC}" DESTDIR="${DESTDIR}" SED=${TOOL_SED:Q} \
     26   1.9     lukem 	    ${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
     27  1.16      tron 	    ${DEPFILES} >${.TARGET}
     28  1.16      tron 
     29  1.16      tron SRCS+=		${PROG}-ioctl.c
     30  1.16      tron CLEANFILES+=	${PROG}-ioctl.c
     31  1.19      matt DPSRCS+=	${PROG}-ioctl.c
     32   1.2       mrg 
     33   1.6  christos ${DEPFILES}: .PRECIOUS
     34