2011-07-18 00:54:30 +04:00
|
|
|
# $NetBSD: Makefile,v 1.41 2011/07/17 20:54:35 joerg Exp $
|
1998-06-13 03:22:30 +04:00
|
|
|
|
|
|
|
# For now, we install the machine and arch includes, and symlink 'machine'
|
2001-06-12 22:16:31 +04:00
|
|
|
# to the location of the machine includes (usually).
|
1998-06-13 03:22:30 +04:00
|
|
|
#
|
|
|
|
# Eventually, we should install everything.
|
|
|
|
|
2002-02-04 11:35:27 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1998-06-13 03:22:30 +04:00
|
|
|
SUBDIR= ${MACHINE}
|
2002-02-04 03:24:14 +03:00
|
|
|
ARCHSUBDIR= ${MACHINE_CPU}
|
|
|
|
|
2006-08-26 03:35:04 +04:00
|
|
|
.if ${ARCHSUBDIR} == "mips64"
|
|
|
|
ARCHSUBDIR= mips
|
|
|
|
.endif
|
2006-07-01 05:29:55 +04:00
|
|
|
.if ${ARCHSUBDIR} == "powerpc64"
|
|
|
|
ARCHSUBDIR= powerpc
|
|
|
|
.endif
|
|
|
|
|
2001-01-10 21:23:47 +03:00
|
|
|
.if ${MACHINE} != ${ARCHSUBDIR}
|
1999-03-04 22:46:09 +03:00
|
|
|
.if exists(${ARCHSUBDIR})
|
|
|
|
SUBDIR+= ${ARCHSUBDIR}
|
|
|
|
.endif
|
1998-06-13 03:22:30 +04:00
|
|
|
.endif
|
2009-12-13 08:01:32 +03:00
|
|
|
.if ${MACHINE} == sparc
|
1999-11-20 19:35:24 +03:00
|
|
|
SUBDIR+= sparc64
|
|
|
|
.endif
|
2001-01-28 05:58:19 +03:00
|
|
|
.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
|
|
|
|
SUBDIR+= hpc
|
|
|
|
.endif
|
2002-05-29 01:11:04 +04:00
|
|
|
.if (${MACHINE} == sun2 || ${MACHINE} == sun3)
|
2001-06-14 17:01:27 +04:00
|
|
|
SUBDIR+= sun68k
|
|
|
|
.endif
|
2004-05-12 20:56:41 +04:00
|
|
|
.if defined(XEN_BUILD)
|
|
|
|
SUBDIR+= xen
|
|
|
|
.endif
|
1998-06-13 03:22:30 +04:00
|
|
|
|
2002-03-25 02:15:05 +03:00
|
|
|
#SUBDIR=acorn26 acorn32 algor alpha amiga amigappc arm arc atari \
|
2002-03-05 03:07:04 +03:00
|
|
|
# bebox \
|
|
|
|
# cats cesfic cobalt \
|
|
|
|
# dreamcast \
|
2007-04-08 13:35:21 +04:00
|
|
|
# evbarm evbmips evbppc evbsh3 ews4800mips\
|
2002-03-05 03:07:04 +03:00
|
|
|
# hp300 hpc hpcarm hpcmips hpcsh \
|
2004-10-14 03:28:34 +04:00
|
|
|
# i386 iyonix \
|
2002-03-05 03:07:04 +03:00
|
|
|
# luna68k \
|
|
|
|
# m68k mac68k macppc mips mipsco mmeye mvme68k \
|
|
|
|
# netwinder news68k newsmips next68k \
|
|
|
|
# ofppc \
|
2009-12-05 19:29:10 +03:00
|
|
|
# pmax powerpc prep \
|
2007-04-08 13:35:21 +04:00
|
|
|
# sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \
|
2007-12-17 22:09:01 +03:00
|
|
|
# rs6000 \
|
2002-03-05 03:07:04 +03:00
|
|
|
# vax \
|
2006-12-17 19:08:09 +03:00
|
|
|
# x68k x86_64 xen \
|
|
|
|
# zaurus
|
1998-06-13 03:22:30 +04:00
|
|
|
|
2003-08-03 13:23:14 +04:00
|
|
|
INCSYMLINKS= ${MACHINE} /usr/include/machine
|
1998-06-13 03:22:30 +04:00
|
|
|
|
2011-07-18 00:54:30 +04:00
|
|
|
INCSYMLINKS+= machine/float.h /usr/include/float.h
|
1998-06-16 00:49:43 +04:00
|
|
|
|
1998-06-13 03:22:30 +04:00
|
|
|
.include <bsd.kinc.mk>
|