Makefile revision 1.46
11.46Sskrll#	$NetBSD: Makefile,v 1.46 2018/01/24 09:04:43 skrll Exp $
21.1Scgd
31.1Scgd# For now, we install the machine and arch includes, and symlink 'machine'
41.11Smatt# to the location of the machine includes (usually).
51.1Scgd#
61.1Scgd# Eventually, we should install everything.
71.17Sthorpej
81.17Sthorpej.include <bsd.own.mk>
91.1Scgd
101.16SthorpejARCHSUBDIR= ${MACHINE_CPU}
111.16Sthorpej
121.32Smatt.if ${ARCHSUBDIR} == "mips64"
131.32SmattARCHSUBDIR= mips
141.32Smatt.endif
151.31Sross.if ${ARCHSUBDIR} == "powerpc64"
161.31SrossARCHSUBDIR= powerpc
171.31Sross.endif
181.31Sross
191.44Smatt.if ${MACHINE_CPU} == "aarch64"
201.44SmattSUBDIR= evbarm64
211.44Smatt.elif ${MACHINE_CPU} == "arm"
221.46SskrllSUBDIR= acorn32 cats epoc32 evbarm hpcarm iyonix netwinder shark zaurus
231.42Smatt.else
241.42SmattSUBDIR=	${MACHINE}
251.42Smatt.endif
261.42Smatt
271.9Sbjh21.if ${MACHINE} != ${ARCHSUBDIR}
281.5Sdrochner.if exists(${ARCHSUBDIR})
291.5SdrochnerSUBDIR+= ${ARCHSUBDIR}
301.5Sdrochner.endif
311.6Seeh.endif
321.44Smatt.if ${MACHINE_CPU} == "aarch64"
331.44SmattSUBDIR+= arm
341.44Smatt.endif
351.40Snakayama.if ${MACHINE} == sparc
361.6SeehSUBDIR+= sparc64
371.10Such.endif
381.10Such.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
391.10SuchSUBDIR+= hpc
401.12Sfredette.endif
411.21Snathanw.if (${MACHINE} == sun2 || ${MACHINE} == sun3)
421.12SfredetteSUBDIR+= sun68k
431.1Scgd.endif
441.27Scl.if defined(XEN_BUILD)
451.27SclSUBDIR+= xen
461.27Scl.endif
471.1Scgd
481.46Sskrll#SUBDIR=aarch64 acorn32 algor alpha amiga amigappc arm arc atari \
491.19Ssimonb#	bebox \
501.19Ssimonb#	cats cesfic cobalt \
511.19Ssimonb#	dreamcast \
521.42Smatt#	emips epoc32 evbarm evbmips evbppc evbsh3 ews4800mips\
531.19Ssimonb#	hp300 hpc hpcarm hpcmips hpcsh \
541.28Sgavan#	i386 iyonix \
551.19Ssimonb#	luna68k \
561.19Ssimonb#	m68k mac68k macppc mips mipsco mmeye mvme68k \
571.19Ssimonb#	netwinder news68k newsmips next68k \
581.45Smatt#	ofppc or1k \
591.43Smartin#	playstation2 pmax powerpc prep \
601.35Sscw#	sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \
611.36Sgarbled#	rs6000 \
621.19Ssimonb#	vax \
631.34Speter#	x68k x86_64 xen \
641.34Speter#	zaurus
651.1Scgd
661.44Smatt.if ${MACHINE_CPU} == aarch64 || ${MACHINE_CPU} == "arm"
671.42SmattINCSYMLINKS= ${MACHINE_CPU} /usr/include/machine
681.42Smatt.else
691.24SlukemINCSYMLINKS= ${MACHINE} /usr/include/machine
701.42Smatt.endif
711.2Scgd
721.41SjoergINCSYMLINKS+= machine/float.h /usr/include/float.h
731.1Scgd
741.1Scgd.include <bsd.kinc.mk>
75