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