1999-11-14 13:54:44 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2008-09-18 15:25:35 +00:00
|
|
|
.if ${MACHINE_ARCH} == "mips"
|
|
|
|
MK_FORTH=no # not yet
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_FORTH} != "no"
|
2004-01-27 22:15:03 +00:00
|
|
|
# Build the add-in FORTH interpreter.
|
1998-11-03 06:11:35 +00:00
|
|
|
SUBDIR+= ficl
|
2003-02-13 04:35:04 +00:00
|
|
|
.endif
|
1998-11-03 06:11:35 +00:00
|
|
|
|
2004-11-23 05:52:00 +00:00
|
|
|
# Build EFI library.
|
2006-11-05 22:03:04 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "ia64"
|
2004-11-23 05:52:00 +00:00
|
|
|
SUBDIR+= efi
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 15:45:27 +00:00
|
|
|
# Build Open Firmware library.
|
2002-03-28 01:37:10 +00:00
|
|
|
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
|
2000-11-10 06:29:42 +00:00
|
|
|
SUBDIR+= ofw
|
|
|
|
.endif
|
|
|
|
|
2008-02-17 20:34:35 +00:00
|
|
|
# Build U-Boot library.
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
SUBDIR+= uboot
|
|
|
|
.endif
|
|
|
|
|
2004-01-27 22:15:03 +00:00
|
|
|
# Pick the machine-dependent subdir based on the target architecture.
|
2008-07-23 07:23:33 +00:00
|
|
|
ADIR= ${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
|
|
|
|
.if exists(${.CURDIR}/${ADIR}/.)
|
|
|
|
SUBDIR+= ${ADIR}
|
|
|
|
.endif
|
1998-08-21 03:17:42 +00:00
|
|
|
|
|
|
|
.include <bsd.subdir.mk>
|