Home | History | Annotate | Line # | Download | only in tools
Makefile.nbincludes revision 1.2.4.1
      1  1.2.4.1  yamt #	$NetBSD: Makefile.nbincludes,v 1.2.4.1 2012/10/30 19:00:11 yamt Exp $
      2      1.1   riz 
      3      1.1   riz # NOxxx definitions are copied from Makefile.host, and are
      4      1.1   riz # required before .include <bsd.own.mk>.   The include of bsd.own.mk
      5      1.1   riz # itself is required to get definitions of TOOL_* variables used in
      6      1.1   riz # "!=" variable assignments (which are performed early).
      7      1.1   riz #
      8      1.1   riz NOINFO=		# defined
      9      1.1   riz NOLINT=		# defined
     10      1.1   riz NOMAN=		# defined
     11      1.1   riz 
     12      1.1   riz .include <bsd.own.mk>
     13      1.1   riz 
     14      1.1   riz _ARCHDIR=	${.CURDIR}/../../sys/arch
     15      1.1   riz _INCDIR=	${.CURDIR}/../../include
     16      1.1   riz _SYSDIR=	${.CURDIR}/../../sys/sys
     17      1.1   riz _UFSDIR=	${.CURDIR}/../../sys/ufs
     18      1.1   riz _SUBDIR!=	cd ${_ARCHDIR} && ${MAKE} -V SUBDIR
     19      1.1   riz 
     20      1.1   riz .if make(depend) || make(all) || make(dependall) || make(install)
     21      1.1   riz # There's no need to run these commands for "make cleandir" or "make obj",
     22      1.1   riz # and TOOL_SED will not yet have been built.
     23      1.1   riz _UFS_INCS!=	cd ${_UFSDIR} && find ffs ufs -name '*.h'
     24      1.1   riz _ARCH_INCS!=	${TOOL_SED} -e 's/^\#.*//' ${.CURDIR}/../headerlist
     25      1.1   riz .endif
     26      1.1   riz 
     27      1.1   riz _ARCH_INCS+=	ews4800mips/include/pdinfo.h ews4800mips/include/vtoc.h
     28      1.1   riz 
     29      1.1   riz _INCS=		disktab.h
     30      1.1   riz _SYSINCS=	bootblock.h \
     31      1.1   riz 		disklabel.h disklabel_acorn.h disklabel_gpt.h disklabel_rdb.h \
     32      1.1   riz 		dkbad.h \
     33      1.1   riz 		exec_elf.h
     34      1.1   riz 
     35  1.2.4.1  yamt HOST_CPPFLAGS+=	-I${TOOLDIR}/include -I${TOOLDIR}/include/nbinclude
     36      1.1   riz 
     37      1.1   riz beforedepend: 
     38      1.1   riz 	${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude
     39      1.1   riz 	${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude/sys
     40      1.1   riz 	${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude/ufs
     41      1.1   riz 	cd ${_ARCHDIR} && \
     42      1.1   riz 	    ${TOOL_PAX} -s /include\\/// -rw ${_ARCH_INCS} \
     43      1.1   riz 	    ${TOOLDIR}/include/nbinclude
     44      1.1   riz 	cd ${_INCDIR} && \
     45      1.1   riz 	    ${TOOL_PAX} -rw ${_INCS} ${TOOLDIR}/include/nbinclude
     46      1.1   riz 	cd ${_SYSDIR} && \
     47      1.1   riz 	    ${TOOL_PAX} -rw ${_SYSINCS} ${TOOLDIR}/include/nbinclude/sys
     48      1.1   riz 	cd ${_UFSDIR} && \
     49      1.1   riz 	    ${TOOL_PAX} -rw ${_UFS_INCS} ${TOOLDIR}/include/nbinclude/ufs
     50      1.1   riz 	cd ${TOOLDIR}/include/nbinclude && rm -f machine && \
     51      1.1   riz 	    ${HOST_INSTALL_SYMLINK} ${MACHINE} machine
     52