xref: /netbsd-src/sys/arch/Makefile (revision 4391d5e9d4f291db41e3b3ba26a01b5e51364aae)
1#	$NetBSD: Makefile,v 1.42 2013/05/02 03:56:40 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} == "arm"
20SUBDIR= acorn26 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} == sparc
31SUBDIR+= sparc64
32.endif
33.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
34SUBDIR+= hpc
35.endif
36.if (${MACHINE} == sun2 || ${MACHINE} == sun3)
37SUBDIR+= sun68k
38.endif
39.if defined(XEN_BUILD)
40SUBDIR+= xen
41.endif
42
43#SUBDIR=acorn26 acorn32 algor alpha amiga amigappc arm arc atari \
44#	bebox \
45#	cats cesfic cobalt \
46#	dreamcast \
47#	emips epoc32 evbarm evbmips evbppc evbsh3 ews4800mips\
48#	hp300 hpc hpcarm hpcmips hpcsh \
49#	i386 iyonix \
50#	luna68k \
51#	m68k mac68k macppc mips mipsco mmeye mvme68k \
52#	netwinder news68k newsmips next68k \
53#	ofppc \
54#	pmax powerpc prep \
55#	sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \
56#	rs6000 \
57#	vax \
58#	x68k x86_64 xen \
59#	zaurus
60
61.if ${MACHINE_CPU} == arm
62INCSYMLINKS= ${MACHINE_CPU} /usr/include/machine
63.else
64INCSYMLINKS= ${MACHINE} /usr/include/machine
65.endif
66
67INCSYMLINKS+= machine/float.h /usr/include/float.h
68
69.include <bsd.kinc.mk>
70