Home | History | Annotate | Line # | Download | only in kdump
Makefile.ioctl-c revision 1.26
      1  1.26  christos #	$NetBSD: Makefile.ioctl-c,v 1.26 2015/02/06 20:07:45 christos 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.26  christos SETBASES=	${NETBSDSRCDIR}/distrib/sets/lists/comp \
     11  1.26  christos 		${NETBSDSRCDIR}/distrib/sets/lists/xcomp
     12  1.26  christos 
     13  1.26  christos .for sb in ${SETBASES}
     14  1.26  christos .if exists(${sb}/mi)
     15  1.26  christos SETFILES:=${SETFILES} ${sb}/mi
     16  1.26  christos .endif
     17  1.24       dsl .for md in md.${MACHINE} /md.${MACHINE}.${MACHINE_ARCH}
     18  1.26  christos .if exists(${sb}/${md})
     19  1.26  christos SETFILES:= ${SETFILES} ${sb}/${md}
     20  1.24       dsl .endif
     21  1.24       dsl .endfor
     22  1.26  christos .endfor
     23   1.8   thorpej 
     24  1.25  uebayasi .if !make(cleandir) && !make(obj) && !make(includes) && !make(install)
     25  1.26  christos DEPFILEGLOB = ${TOOL_SED} -ne '/\/usr\/.*include\/.*\.h[ 	]/{s/[ 	]obsolete$$//;t' -e 's/xenio//;t' -e 's,\.\([^ 	]*\).*,${DESTDIR}\1,;p;}' ${SETFILES}
     26  1.25  uebayasi DEPFILES != ${DEPFILEGLOB} | xargs egrep -l '(_IO\(|_IOR\(|_IOW\(|_IOWR\()' 2>/dev/null || :
     27   1.7  christos .endif
     28   1.6  christos 
     29  1.24       dsl ${PROG}-ioctl.c: mkioctls Makefile ${DEPFILES} ${SETFILES}
     30  1.10     lukem 	${_MKTARGET_CREATE}
     31  1.23       apb 	AWK=${TOOL_AWK:Q} CC="${CC}" DESTDIR="${DESTDIR}" SED=${TOOL_SED:Q} \
     32   1.9     lukem 	    ${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
     33  1.16      tron 	    ${DEPFILES} >${.TARGET}
     34  1.16      tron 
     35  1.16      tron SRCS+=		${PROG}-ioctl.c
     36  1.16      tron CLEANFILES+=	${PROG}-ioctl.c
     37  1.19      matt DPSRCS+=	${PROG}-ioctl.c
     38  1.26  christos CPPFLAGS+=	-I${DESTDIR}/usr/X11R7/include/libdrm
     39  1.26  christos CPPFLAGS+=	-I${DESTDIR}/usr/X11R7/include/pixman-1
     40  1.26  christos CPPFLAGS+=	-I${DESTDIR}/usr/X11R7/include
     41  1.26  christos CPPFLAGS+=	-D_ALTQ_ALTQ_JOBS_H_	# redefinition of inline
     42  1.26  christos # De-select one, dup ioctls
     43  1.26  christos CPPFLAGS+=	-D_VIA_DRM_H_		# Missing header
     44  1.26  christos #CPPFLAGS+=	-D_I915_DRM_H_		# Dup ioctls
     45  1.26  christos CPPFLAGS+=	-D__R128_DRM_H__	# Dup ioctls
     46  1.26  christos CPPFLAGS+=	-D__SIS_DRM_H__		# Dup ioctls
     47  1.26  christos CPPFLAGS+=	-D__SAVAGE_DRM_H__	# Dup ioctls
     48  1.26  christos CPPFLAGS+=	-D__RADEON_DRM_H__	# Dup ioctls
     49  1.26  christos CPPFLAGS+=	-D__MACH64_DRM_H__	# Dup ioctls
     50  1.26  christos CPPFLAGS+=	-D__MGA_DRM_H__		# Dup ioctls
     51   1.2       mrg 
     52   1.6  christos ${DEPFILES}: .PRECIOUS
     53