diff options
author | Warner Losh <imp@FreeBSD.org> | 2010-06-11 02:50:53 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2010-06-11 02:50:53 +0000 |
commit | aef87548f35deec3611b2986b225f52bfa22373e (patch) | |
tree | 9684654197fe2b70db761e812d934467018fd8fa /share/mk/bsd.arch.inc.mk | |
parent | 6fc3ead1356af16e0e8c79011decc29086952c9f (diff) | |
download | src-aef87548f35deec3611b2986b225f52bfa22373e.tar.gz src-aef87548f35deec3611b2986b225f52bfa22373e.zip |
Merge from tbemd
Enhance Makefile.inc processing, when asked for, to include the most
specific (MACHINE specific) to least specific (MACHINE_CPUARCH).
Reviewed by: arch@ (mostly silence though)
Notes
Notes:
svn path=/head/; revision=209025
Diffstat (limited to 'share/mk/bsd.arch.inc.mk')
-rw-r--r-- | share/mk/bsd.arch.inc.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/share/mk/bsd.arch.inc.mk b/share/mk/bsd.arch.inc.mk new file mode 100644 index 000000000000..98e429e83602 --- /dev/null +++ b/share/mk/bsd.arch.inc.mk @@ -0,0 +1,11 @@ +# +# Include the arch-specific Makefile.inc.$ARCH. We go from most specific +# to least specific, stopping after we get a hit. +# +.if exists(${.CURDIR}/Makefile.${MACHINE}) +.include "Makefile.${MACHINE}" +.elif exists(${.CURDIR}/Makefile.${MACHINE_ARCH}) +.include "Makefile.${MACHINE_ARCH}" +.elif exists(${.CURDIR}/Makefile.${MACHINE_CPUARCH}) +.include "Makefile.${MACHINE_CPUARCH}" +.endif |