summaryrefslogtreecommitdiffstats
path: root/lib/csu
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2013-05-21 17:47:53 +0000
committermarcel <marcel@FreeBSD.org>2013-05-21 17:47:53 +0000
commit42ec29f8c344a7d7a58bc2953226836a48450d59 (patch)
tree3e0cf38254a99192da8b8e793cdfb763bac6fdad /lib/csu
parent120b82d3686f29fcbe3217c7bb745c8773fe2f58 (diff)
downloadFreeBSD-src-42ec29f8c344a7d7a58bc2953226836a48450d59.zip
FreeBSD-src-42ec29f8c344a7d7a58bc2953226836a48450d59.tar.gz
Add a makefle that recurses into the right architecture-specific
sub-directory. This to allow simpler logic outside of the csu directory. Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/csu/Makefile b/lib/csu/Makefile
new file mode 100644
index 0000000..320a5a4
--- /dev/null
+++ b/lib/csu/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+ARCH= ${MACHINE_ARCH:S/i386/i386-elf/}
+.if exists(${.CURDIR}/${ARCH})
+SUBDIR+= ${ARCH}
+.else
+SUBDIR+= ${MACHINE_CPUARCH}
+.endif
+
+.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud