xref: /netbsd-src/sys/arch/Makefile (revision 7c192b2a5e1093666e67801684f930ef49b3b363)
1#	$NetBSD: Makefile,v 1.45 2014/09/03 19:27:53 matt 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} == "aarch64"
20SUBDIR= evbarm64
21.elif ${MACHINE_CPU} == "arm"
22SUBDIR= acorn26 acorn32 cats epoc32 evbarm hpcarm iyonix netwinder shark zaurus
23.else
24SUBDIR=	${MACHINE}
25.endif
26
27.if ${MACHINE} != ${ARCHSUBDIR}
28.if exists(${ARCHSUBDIR})
29SUBDIR+= ${ARCHSUBDIR}
30.endif
31.endif
32.if ${MACHINE_CPU} == "aarch64"
33SUBDIR+= arm
34.endif
35.if ${MACHINE} == sparc
36SUBDIR+= sparc64
37.endif
38.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
39SUBDIR+= hpc
40.endif
41.if (${MACHINE} == sun2 || ${MACHINE} == sun3)
42SUBDIR+= sun68k
43.endif
44.if defined(XEN_BUILD)
45SUBDIR+= xen
46.endif
47
48#SUBDIR=aarch64 acorn26 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"
67INCSYMLINKS= ${MACHINE_CPU} /usr/include/machine
68.else
69INCSYMLINKS= ${MACHINE} /usr/include/machine
70.endif
71
72INCSYMLINKS+= machine/float.h /usr/include/float.h
73
74.include <bsd.kinc.mk>
75