a1f5c3dd33
for an ancient PROM bootloader. Mostly taken from nbmips-elf2ecoff.
18 lines
415 B
Makefile
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"
|