xref: /freebsd/contrib/elftoolchain/common/os.Linux.mk (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1#
2# Build recipes for Linux based operating systems.
3#
4# $Id: os.Linux.mk 3594 2018-04-11 18:26:50Z jkoshy $
5
6_NATIVE_ELF_FORMAT = native-elf-format
7
8.if !make(obj)
9.BEGIN:	${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h
10
11${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h:
12	${.CURDIR}/${_NATIVE_ELF_FORMAT} > ${.TARGET} || rm ${.TARGET}
13.endif
14
15CLEANFILES += ${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h
16