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