NetBSD/sys/arch/Makefile
matt 2b283d77df For arm ports where machine != arm??, descend into the cats,dnard,netwinder
directories and install their include files too.
2001-06-12 18:16:31 +00:00

46 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2001/06/12 18:16:31 matt Exp $
# For now, we install the machine and arch includes, and symlink 'machine'
# to the location of the machine includes (usually).
#
# Eventually, we should install everything.
SUBDIR= ${MACHINE}
ARCHSUBDIR= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/sh3e[bl]/sh3/:S/arm26/arm/:S/arm32/arm/}
.if ${MACHINE} != ${ARCHSUBDIR}
.if exists(${ARCHSUBDIR})
SUBDIR+= ${ARCHSUBDIR}
.endif
.endif
.if ${MACHINE} == sparc
SUBDIR+= sparc64
.endif
.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
SUBDIR+= hpc
.endif
.if ${ARCHSUBDIR} == arm && ${MACHINE} != arm32 && ${MACHINE} != arm26
SUBDIR+= cats dnard netwinder
.endif
#SUBDIR= alpha amiga arc arm32 atari bebox evbsh3 hp300 hpcmips i386 luna68k \
# m68k mac68k macppc mips mmeye mvme68k news68k newsmips next68k ofppc \
# pc532 pmax powerpc sh3 sparc sparc64 sun3 vax x68k
#
# For true arm ports, we point machine at the architecure directory
# since all the user include are there and are common.
#
.if ${ARCHSUBDIR} == arm && ${MACHINE} != arm32 && ${MACHINE} != arm26
SYMLINKS= ${ARCHSUBDIR} /usr/include/machine
.else
SYMLINKS= ${MACHINE} /usr/include/machine
.endif
SYMLINKS+= machine/float.h /usr/include/float.h \
machine/frame.h /usr/include/frame.h \
machine/stdarg.h /usr/include/stdarg.h \
machine/varargs.h /usr/include/varargs.h
.include <bsd.kinc.mk>