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