1# $NetBSD: Makefile,v 1.47 2018/04/01 04:35:03 ryo Exp $ 2 3# For now, we install the machine and arch includes, and symlink 'machine' 4# to the location of the machine includes (usually). 5# 6# Eventually, we should install everything. 7 8.include <bsd.own.mk> 9 10ARCHSUBDIR= ${MACHINE_CPU} 11 12.if ${ARCHSUBDIR} == "mips64" 13ARCHSUBDIR= mips 14.endif 15.if ${ARCHSUBDIR} == "powerpc64" 16ARCHSUBDIR= powerpc 17.endif 18 19.if ${MACHINE_CPU} == "arm" 20SUBDIR= acorn32 cats epoc32 evbarm hpcarm iyonix netwinder shark zaurus 21.else 22SUBDIR= ${MACHINE} 23.endif 24 25.if ${MACHINE} != ${ARCHSUBDIR} 26.if exists(${ARCHSUBDIR}) 27SUBDIR+= ${ARCHSUBDIR} 28.endif 29.endif 30.if ${MACHINE_CPU} == "aarch64" 31SUBDIR+= arm 32.endif 33.if ${MACHINE} == sparc 34SUBDIR+= sparc64 35.endif 36.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh) 37SUBDIR+= hpc 38.endif 39.if (${MACHINE} == sun2 || ${MACHINE} == sun3) 40SUBDIR+= sun68k 41.endif 42.if defined(XEN_BUILD) 43SUBDIR+= xen 44.endif 45 46#SUBDIR=aarch64 acorn32 algor alpha amiga amigappc arm arc atari \ 47# bebox \ 48# cats cesfic cobalt \ 49# dreamcast \ 50# emips epoc32 evbarm evbmips evbppc evbsh3 ews4800mips\ 51# hp300 hpc hpcarm hpcmips hpcsh \ 52# i386 iyonix \ 53# luna68k \ 54# m68k mac68k macppc mips mipsco mmeye mvme68k \ 55# netwinder news68k newsmips next68k \ 56# ofppc or1k \ 57# playstation2 pmax powerpc prep \ 58# sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \ 59# rs6000 \ 60# vax \ 61# x68k x86_64 xen \ 62# zaurus 63 64.if ${MACHINE_CPU} == aarch64 || ${MACHINE_CPU} == "arm" 65INCSYMLINKS= ${MACHINE_CPU} /usr/include/machine 66.else 67INCSYMLINKS= ${MACHINE} /usr/include/machine 68.endif 69 70INCSYMLINKS+= machine/float.h /usr/include/float.h 71 72.include <bsd.kinc.mk> 73