1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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)
This commit is contained in:
Warner Losh 2010-06-11 02:50:53 +00:00
parent 6fc3ead135
commit aef87548f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209025

11
share/mk/bsd.arch.inc.mk Normal file
View File

@ -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