| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.own.mk,v 1.552 2008/12/23 02:54:11 agc Exp $ | | 1 | # $NetBSD: bsd.own.mk,v 1.553 2008/12/30 21:31:10 pooka Exp $ |
2 | | | 2 | |
3 | .if !defined(_BSD_OWN_MK_) | | 3 | .if !defined(_BSD_OWN_MK_) |
4 | _BSD_OWN_MK_=1 | | 4 | _BSD_OWN_MK_=1 |
5 | | | 5 | |
6 | MAKECONF?= /etc/mk.conf | | 6 | MAKECONF?= /etc/mk.conf |
7 | .-include "${MAKECONF}" | | 7 | .-include "${MAKECONF}" |
8 | | | 8 | |
9 | # | | 9 | # |
10 | # CPU model, derived from MACHINE_ARCH | | 10 | # CPU model, derived from MACHINE_ARCH |
11 | # | | 11 | # |
12 | MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/} | | 12 | MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/} |
13 | | | 13 | |
14 | # | | 14 | # |
| @@ -542,26 +542,34 @@ MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_AR | | | @@ -542,26 +542,34 @@ MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_AR |
542 | (${MACHINE_GNU_ARCH} == "arm" || \ | | 542 | (${MACHINE_GNU_ARCH} == "arm" || \ |
543 | ${MACHINE_GNU_ARCH} == "armeb" || \ | | 543 | ${MACHINE_GNU_ARCH} == "armeb" || \ |
544 | ${MACHINE_ARCH} == "i386" || \ | | 544 | ${MACHINE_ARCH} == "i386" || \ |
545 | ${MACHINE_CPU} == "m68k" || \ | | 545 | ${MACHINE_CPU} == "m68k" || \ |
546 | ${MACHINE_GNU_ARCH} == "sh" || \ | | 546 | ${MACHINE_GNU_ARCH} == "sh" || \ |
547 | ${MACHINE_GNU_ARCH} == "shle" || \ | | 547 | ${MACHINE_GNU_ARCH} == "shle" || \ |
548 | ${MACHINE_ARCH} == "sparc" || \ | | 548 | ${MACHINE_ARCH} == "sparc" || \ |
549 | ${MACHINE_ARCH} == "vax") | | 549 | ${MACHINE_ARCH} == "vax") |
550 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf | | 550 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf |
551 | .else | | 551 | .else |
552 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd | | 552 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd |
553 | .endif | | 553 | .endif |
554 | | | 554 | |
| | | 555 | # |
| | | 556 | # Determine if arch uses native kernel modules with rump |
| | | 557 | # |
| | | 558 | .if ${MACHINE_ARCH} == "i386" || \ |
| | | 559 | ${MACHINE_ARCH} == "x86_64" |
| | | 560 | RUMPKMOD= # defined |
| | | 561 | .endif |
| | | 562 | |
555 | TARGETS+= all clean cleandir depend dependall includes \ | | 563 | TARGETS+= all clean cleandir depend dependall includes \ |
556 | install lint obj regress tags html | | 564 | install lint obj regress tags html |
557 | PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ | | 565 | PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ |
558 | install lint obj regress tags beforedepend afterdepend \ | | 566 | install lint obj regress tags beforedepend afterdepend \ |
559 | beforeinstall afterinstall realinstall realdepend realall \ | | 567 | beforeinstall afterinstall realinstall realdepend realall \ |
560 | html subdir-all subdir-install subdir-depend | | 568 | html subdir-all subdir-install subdir-depend |
561 | .PHONY: ${PHONY_NOTMAIN} | | 569 | .PHONY: ${PHONY_NOTMAIN} |
562 | .NOTMAIN: ${PHONY_NOTMAIN} | | 570 | .NOTMAIN: ${PHONY_NOTMAIN} |
563 | | | 571 | |
564 | .if ${NEED_OWN_INSTALL_TARGET} != "no" | | 572 | .if ${NEED_OWN_INSTALL_TARGET} != "no" |
565 | .if !target(install) | | 573 | .if !target(install) |
566 | install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall | | 574 | install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall |
567 | beforeinstall: | | 575 | beforeinstall: |