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