aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain/common/os.Linux.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/elftoolchain/common/os.Linux.mk')
-rw-r--r--contrib/elftoolchain/common/os.Linux.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/elftoolchain/common/os.Linux.mk b/contrib/elftoolchain/common/os.Linux.mk
new file mode 100644
index 000000000000..386f99b67af9
--- /dev/null
+++ b/contrib/elftoolchain/common/os.Linux.mk
@@ -0,0 +1,15 @@
+#
+# Build recipes for Linux based operating systems.
+#
+# $Id: os.Linux.mk 3594 2018-04-11 18:26:50Z jkoshy $
+
+_NATIVE_ELF_FORMAT = native-elf-format
+
+.if !make(obj)
+.BEGIN: ${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h
+
+${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h:
+ ${.CURDIR}/${_NATIVE_ELF_FORMAT} > ${.TARGET} || rm ${.TARGET}
+.endif
+
+CLEANFILES += ${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h