Home | History | Download | only in tools
      1 #	$NetBSD: Makefile.disklabel,v 1.11 2007/08/07 12:44:39 yamt Exp $
      2 
      3 _ARCHDIR=	${.CURDIR}/../../sys/arch
      4 _INCDIR=	${.CURDIR}/../../include
      5 _SYSDIR=	${.CURDIR}/../../sys/sys
      6 _UFSDIR=	${.CURDIR}/../../sys/ufs
      7 _SUBDIR!=	cd ${_ARCHDIR} && ${MAKE} -V SUBDIR
      8 
      9 _UFS_INCS!=	cd ${_UFSDIR} && find ffs ufs -name '*.h'
     10 _ARCH_INCS!=	sed -e 's/^\#.*//' ${.CURDIR}/../headerlist
     11 
     12 _ARCH_INCS+=	ews4800mips/include/pdinfo.h ews4800mips/include/vtoc.h
     13 
     14 _INCS=		disktab.h
     15 _SYSINCS=	bootblock.h \
     16 		disklabel.h disklabel_acorn.h disklabel_gpt.h dkbad.h
     17 
     18 HOST_CPPFLAGS+=	-I${TOOLDIR}/include
     19 
     20 beforedepend: 
     21 	${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude
     22 	${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude/sys
     23 	${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude/ufs
     24 	cd ${_ARCHDIR} && \
     25 	    ${TOOL_PAX} -s /include\\/// -rw ${_ARCH_INCS} \
     26 	    ${TOOLDIR}/include/nbinclude
     27 	cd ${_INCDIR} && \
     28 	    ${TOOL_PAX} -rw ${_INCS} ${TOOLDIR}/include/nbinclude
     29 	cd ${_SYSDIR} && \
     30 	    ${TOOL_PAX} -rw ${_SYSINCS} ${TOOLDIR}/include/nbinclude/sys
     31 	cd ${_UFSDIR} && \
     32 	    ${TOOL_PAX} -rw ${_UFS_INCS} ${TOOLDIR}/include/nbinclude/ufs
     33 	cd ${TOOLDIR}/include/nbinclude && rm -f machine && \
     34 	    ${HOST_INSTALL_SYMLINK} ${MACHINE} machine
     35