xref: /freebsd/contrib/elftoolchain/common/os.Linux.mk (revision 94cba8034ba53725c225c85e35724f0c2b13cea5)
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