summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-02-17 23:47:08 +0000
committerimp <imp@FreeBSD.org>2010-02-17 23:47:08 +0000
commit9dd810b3d0db5313bf1c1fecf56d303aaf300121 (patch)
tree56186fe09f46ba240998a67419de2526943971e7
parent4e62186f58c273bea167bf92a38015d1bf7b25bf (diff)
downloadFreeBSD-src-9dd810b3d0db5313bf1c1fecf56d303aaf300121.zip
FreeBSD-src-9dd810b3d0db5313bf1c1fecf56d303aaf300121.tar.gz
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
-rw-r--r--share/mk/bsd.arch.inc.mk11
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 0000000..98e429e
--- /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
OpenPOWER on IntegriCloud