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