2001-06-12 22:16:31 +04:00
|
|
|
# $NetBSD: Makefile,v 1.11 2001/06/12 18:16:31 matt Exp $
|
1998-06-13 03:22:30 +04:00
|
|
|
|
|
|
|
# For now, we install the machine and arch includes, and symlink 'machine'
|
2001-06-12 22:16:31 +04:00
|
|
|
# to the location of the machine includes (usually).
|
1998-06-13 03:22:30 +04:00
|
|
|
#
|
|
|
|
# Eventually, we should install everything.
|
|
|
|
|
|
|
|
SUBDIR= ${MACHINE}
|
2001-01-10 21:23:47 +03:00
|
|
|
ARCHSUBDIR= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/sh3e[bl]/sh3/:S/arm26/arm/:S/arm32/arm/}
|
|
|
|
.if ${MACHINE} != ${ARCHSUBDIR}
|
1999-03-04 22:46:09 +03:00
|
|
|
.if exists(${ARCHSUBDIR})
|
|
|
|
SUBDIR+= ${ARCHSUBDIR}
|
|
|
|
.endif
|
1998-06-13 03:22:30 +04:00
|
|
|
.endif
|
1999-11-20 19:35:24 +03:00
|
|
|
.if ${MACHINE} == sparc
|
|
|
|
SUBDIR+= sparc64
|
|
|
|
.endif
|
2001-01-28 05:58:19 +03:00
|
|
|
.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
|
|
|
|
SUBDIR+= hpc
|
|
|
|
.endif
|
1998-06-13 03:22:30 +04:00
|
|
|
|
2001-06-12 22:16:31 +04:00
|
|
|
.if ${ARCHSUBDIR} == arm && ${MACHINE} != arm32 && ${MACHINE} != arm26
|
|
|
|
SUBDIR+= cats dnard netwinder
|
|
|
|
.endif
|
|
|
|
|
2000-02-19 05:03:29 +03:00
|
|
|
#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
|
1998-06-13 03:22:30 +04:00
|
|
|
|
2001-06-12 22:16:31 +04:00
|
|
|
#
|
|
|
|
# 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
|
1998-06-13 03:22:30 +04:00
|
|
|
SYMLINKS= ${MACHINE} /usr/include/machine
|
2001-06-12 22:16:31 +04:00
|
|
|
.endif
|
1998-06-13 03:22:30 +04:00
|
|
|
|
1998-06-16 00:49:43 +04:00
|
|
|
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
|
|
|
|
|
1998-06-13 03:22:30 +04:00
|
|
|
.include <bsd.kinc.mk>
|