NetBSD/tools/m68k-elf2aout/Makefile
tsutsui a1f5c3dd33 Build nbm68k-elf2aout as a host tool on m68k targets
for an ancient PROM bootloader.
Mostly taken from nbmips-elf2ecoff.
2011-07-16 15:52:01 +00:00

18 lines
415 B
Makefile

# $NetBSD: Makefile,v 1.1 2011/07/16 15:52:02 tsutsui Exp $
HOSTPROGNAME= ${_TOOL_PREFIX}m68k-elf2aout
HOST_SRCDIR= usr.bin/elf2aout
HOST_CPPFLAGS= -I${.CURDIR}
NOMAN= # defined
.include <bsd.endian.mk>
.if ${TARGET_ENDIANNESS} == "1234"
CPPFLAGS+= -DTARGET_BYTE_ORDER=LITTLE_ENDIAN
.elif ${TARGET_ENDIANNESS} == "4321"
CPPFLAGS+= -DTARGET_BYTE_ORDER=BIG_ENDIAN
.endif
.include "${.CURDIR}/../Makefile.host"