Include Makefile.$MACHINE, if it exists, otherwise

Include Makefile.$MACHINE_ARCH, if it exists, otherwise
Include Makefile.$MACHINE_CPUARCH, if it exists, otherwise
do nothing
This commit is contained in:
imp 2010-02-17 23:47:08 +00:00
parent 4e62186f58
commit 9dd810b3d0

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