Makefile revision 1.48
11.48Sthorpej#	$NetBSD: Makefile,v 1.48 2024/01/03 03:56:36 thorpej 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.47Sryo.if ${MACHINE_CPU} == "arm"
201.46SskrllSUBDIR= acorn32 cats epoc32 evbarm hpcarm iyonix netwinder shark zaurus
211.42Smatt.else
221.42SmattSUBDIR=	${MACHINE}
231.42Smatt.endif
241.42Smatt
251.9Sbjh21.if ${MACHINE} != ${ARCHSUBDIR}
261.5Sdrochner.if exists(${ARCHSUBDIR})
271.5SdrochnerSUBDIR+= ${ARCHSUBDIR}
281.5Sdrochner.endif
291.6Seeh.endif
301.44Smatt.if ${MACHINE_CPU} == "aarch64"
311.44SmattSUBDIR+= arm
321.44Smatt.endif
331.40Snakayama.if ${MACHINE} == sparc
341.6SeehSUBDIR+= sparc64
351.10Such.endif
361.10Such.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
371.10SuchSUBDIR+= hpc
381.12Sfredette.endif
391.21Snathanw.if (${MACHINE} == sun2 || ${MACHINE} == sun3)
401.12SfredetteSUBDIR+= sun68k
411.1Scgd.endif
421.27Scl.if defined(XEN_BUILD)
431.27SclSUBDIR+= xen
441.27Scl.endif
451.1Scgd
461.46Sskrll#SUBDIR=aarch64 acorn32 algor alpha amiga amigappc arm arc atari \
471.19Ssimonb#	bebox \
481.19Ssimonb#	cats cesfic cobalt \
491.19Ssimonb#	dreamcast \
501.42Smatt#	emips epoc32 evbarm evbmips evbppc evbsh3 ews4800mips\
511.19Ssimonb#	hp300 hpc hpcarm hpcmips hpcsh \
521.28Sgavan#	i386 iyonix \
531.19Ssimonb#	luna68k \
541.19Ssimonb#	m68k mac68k macppc mips mipsco mmeye mvme68k \
551.19Ssimonb#	netwinder news68k newsmips next68k \
561.45Smatt#	ofppc or1k \
571.43Smartin#	playstation2 pmax powerpc prep \
581.35Sscw#	sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \
591.36Sgarbled#	rs6000 \
601.48Sthorpej#	vax virt68k \
611.34Speter#	x68k x86_64 xen \
621.34Speter#	zaurus
631.1Scgd
641.44Smatt.if ${MACHINE_CPU} == aarch64 || ${MACHINE_CPU} == "arm"
651.42SmattINCSYMLINKS= ${MACHINE_CPU} /usr/include/machine
661.42Smatt.else
671.24SlukemINCSYMLINKS= ${MACHINE} /usr/include/machine
681.42Smatt.endif
691.2Scgd
701.41SjoergINCSYMLINKS+= machine/float.h /usr/include/float.h
711.1Scgd
721.1Scgd.include <bsd.kinc.mk>
73