Makefile revision 1.13
1#	$NetBSD: Makefile,v 1.13 2001/06/24 17:49:47 deberg 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
8SUBDIR=	${MACHINE}
9ARCHSUBDIR= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/sh3e[bl]/sh3/:S/arm26/arm/:S/arm32/arm/:S/m68000/m68k/}
10.if ${MACHINE} != ${ARCHSUBDIR}
11.if exists(${ARCHSUBDIR})
12SUBDIR+= ${ARCHSUBDIR}
13.endif
14.endif
15.if ${MACHINE} == sparc
16SUBDIR+= sparc64
17.endif
18.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
19SUBDIR+= hpc
20.endif
21.if (${MACHINE} == sun2)
22SUBDIR+= sun68k
23.endif
24
25.if ${ARCHSUBDIR} == arm && ${MACHINE} != arm32 && ${MACHINE} != arm26
26SUBDIR+= cats dnard netwinder
27.endif
28
29#SUBDIR= alpha amiga arc arm32 atari bebox evbsh3 hp300 hpcmips i386 luna68k \
30#	m68k mac68k macppc mips mmeye mvme68k news68k newsmips next68k ofppc \
31#	pc532 pmax powerpc sh3 sparc sparc64 sun3 vax x68k
32
33#
34# For true arm ports, we point machine at the architecture directory
35# since all the user include are there and are common.
36#
37.if ${ARCHSUBDIR} == arm && ${MACHINE} != arm32 && ${MACHINE} != arm26
38SYMLINKS= ${ARCHSUBDIR} /usr/include/machine
39.else
40SYMLINKS= ${MACHINE} /usr/include/machine
41.endif
42
43SYMLINKS+= machine/float.h /usr/include/float.h \
44	machine/frame.h /usr/include/frame.h \
45	machine/stdarg.h /usr/include/stdarg.h \
46	machine/varargs.h /usr/include/varargs.h
47
48.include <bsd.kinc.mk>
49