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