2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.42 2013/05/02 03:56:40 matt Exp $
|
2012-11-26 16:59:26 +01:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
ARCHSUBDIR= ${MACHINE_CPU}
|
|
|
|
|
|
|
|
.if ${ARCHSUBDIR} == "mips64"
|
|
|
|
ARCHSUBDIR= mips
|
|
|
|
.endif
|
|
|
|
.if ${ARCHSUBDIR} == "powerpc64"
|
|
|
|
ARCHSUBDIR= powerpc
|
|
|
|
.endif
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.if ${MACHINE_CPU} == "arm"
|
|
|
|
SUBDIR= evbarm
|
|
|
|
.else
|
|
|
|
SUBDIR= ${MACHINE}
|
|
|
|
.endif
|
|
|
|
|
2012-11-26 16:59:26 +01:00
|
|
|
.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 || ${MACHINE} == sun3)
|
|
|
|
SUBDIR+= sun68k
|
|
|
|
.endif
|
|
|
|
.if defined(XEN_BUILD)
|
|
|
|
SUBDIR+= xen
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#SUBDIR=acorn26 acorn32 algor alpha amiga amigappc arm arc atari \
|
|
|
|
# bebox \
|
|
|
|
# cats cesfic cobalt \
|
|
|
|
# dreamcast \
|
2013-12-06 12:04:52 +01:00
|
|
|
# emips epoc32 evbarm evbmips evbppc evbsh3 ews4800mips\
|
2012-11-26 16:59:26 +01:00
|
|
|
# hp300 hpc hpcarm hpcmips hpcsh \
|
|
|
|
# i386 iyonix \
|
|
|
|
# luna68k \
|
|
|
|
# m68k mac68k macppc mips mipsco mmeye mvme68k \
|
|
|
|
# netwinder news68k newsmips next68k \
|
|
|
|
# ofppc \
|
|
|
|
# pmax powerpc prep \
|
|
|
|
# sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \
|
|
|
|
# rs6000 \
|
|
|
|
# vax \
|
|
|
|
# x68k x86_64 xen \
|
|
|
|
# zaurus
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.if ${MACHINE_CPU} == arm
|
|
|
|
INCSYMLINKS= ${MACHINE_CPU} /usr/include/machine
|
|
|
|
.else
|
2012-11-26 16:59:26 +01:00
|
|
|
INCSYMLINKS= ${MACHINE} /usr/include/machine
|
2013-12-06 12:04:52 +01:00
|
|
|
.endif
|
2012-11-26 16:59:26 +01:00
|
|
|
|
|
|
|
INCSYMLINKS+= machine/float.h /usr/include/float.h
|
|
|
|
|
|
|
|
.include <bsd.kinc.mk>
|