2b74082b7b
broke too many assumptions makde by other parts of the source tree, and the strategy and how it was supposed to work was never discussed on tech-userlevel, nor was it applied consistently (to all ARM ports and to other ports which have common MACHINE_ARCH code, such as MIPS, m68k, powerpc). Verified to complete a full "make build" on cats, dnard, evbarm, and netwinder.
37 lines
1.0 KiB
Makefile
37 lines
1.0 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2001/11/25 15:55:53 thorpej 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/:S/m68000/m68k/}
|
|
.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 (${MACHINE} == sun2)
|
|
SUBDIR+= sun68k
|
|
.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
|
|
|
|
SYMLINKS= ${MACHINE} /usr/include/machine
|
|
|
|
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>
|