2001-11-25 18:55:53 +03:00
|
|
|
# $NetBSD: Makefile,v 1.15 2001/11/25 15:55:53 thorpej 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-06-14 17:01:27 +04:00
|
|
|
ARCHSUBDIR= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/sh3e[bl]/sh3/:S/arm26/arm/:S/arm32/arm/:S/m68000/m68k/}
|
2001-01-10 21:23:47 +03:00
|
|
|
.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
|
2001-06-14 17:01:27 +04:00
|
|
|
.if (${MACHINE} == sun2)
|
|
|
|
SUBDIR+= sun68k
|
|
|
|
.endif
|
1998-06-13 03:22:30 +04:00
|
|
|
|
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
|
|
|
|
|
|
|
SYMLINKS= ${MACHINE} /usr/include/machine
|
|
|
|
|
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>
|