Makefile revision 1.31
11.31Sross#	$NetBSD: Makefile,v 1.31 2006/07/01 01:29:55 ross 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.1ScgdSUBDIR=	${MACHINE}
111.16SthorpejARCHSUBDIR= ${MACHINE_CPU}
121.16Sthorpej
131.31Sross.if ${ARCHSUBDIR} == "powerpc64"
141.31SrossARCHSUBDIR= powerpc
151.31Sross.endif
161.31Sross
171.9Sbjh21.if ${MACHINE} != ${ARCHSUBDIR}
181.5Sdrochner.if exists(${ARCHSUBDIR})
191.5SdrochnerSUBDIR+= ${ARCHSUBDIR}
201.5Sdrochner.endif
211.6Seeh.endif
221.6Seeh.if ${MACHINE} == sparc
231.6SeehSUBDIR+= sparc64
241.10Such.endif
251.10Such.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
261.10SuchSUBDIR+= hpc
271.12Sfredette.endif
281.21Snathanw.if (${MACHINE} == sun2 || ${MACHINE} == sun3)
291.12SfredetteSUBDIR+= sun68k
301.1Scgd.endif
311.27Scl.if defined(XEN_BUILD)
321.27SclSUBDIR+= xen
331.27Scl.endif
341.1Scgd
351.31Sross.BEGIN:
361.31Sross	echo ==1: MACHINE=${MACHINE} ARCHSUBDIR=${ARCHSUBDIR} :1==
371.31Sross
381.20Sbjh21#SUBDIR=acorn26 acorn32 algor alpha amiga amigappc arm arc atari \
391.19Ssimonb#	bebox \
401.19Ssimonb#	cats cesfic cobalt \
411.19Ssimonb#	dreamcast \
421.30Stsutsui#	evbarm evbmips evbppc evbsh3 evbsh5 ews4800mips\
431.19Ssimonb#	hp300 hpc hpcarm hpcmips hpcsh \
441.28Sgavan#	i386 iyonix \
451.19Ssimonb#	luna68k \
461.19Ssimonb#	m68k mac68k macppc mips mipsco mmeye mvme68k \
471.19Ssimonb#	netwinder news68k newsmips next68k \
481.19Ssimonb#	ofppc \
491.19Ssimonb#	pc532 playstation2 pmax powerpc prep \
501.23Sscw#	sandpoint sbmips sgimips sh3 sh5 shark sparc sparc64 sun2 sun3 sun68k \
511.19Ssimonb#	vax \
521.30Stsutsui#	x68k x86_64 xen
531.1Scgd
541.24SlukemINCSYMLINKS= ${MACHINE} /usr/include/machine
551.2Scgd
561.24SlukemINCSYMLINKS+= machine/float.h /usr/include/float.h \
571.25Stron	machine/stdarg.h /usr/include/stdarg.h
581.1Scgd
591.1Scgd.include <bsd.kinc.mk>
60