1 # $NetBSD: Makefile.xxboot,v 1.4 2005/12/11 12:17:02 christos Exp $
5 # XXX SHOULD NOT NEED TO DEFINE THESE!
11 .include "../../Makefile.booters"
12 .include "../${BTYPE}_LOADADDR"
15 LINKFLAGS= -static -x -N -Ttext 0
16 CPPFLAGS+= -I. -I${.CURDIR}/.. -I${.CURDIR}/../.. -D${BTYPE}
19 ${INSTALL_DIR} ${DESTDIR}${BINDIR}
21 .s.o: ../${BTYPE}_LOADADDR
22 ${CPP} ${CPPFLAGS} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET}
23 @if ${NM} ${.TARGET} | grep -q "00000200 t end"; \
27 ${NM} ${.TARGET} | grep " end"; \
33 ${LD} ${LINKFLAGS} -o ${PROG}.elf ${OBJS}
34 ${OBJCOPY} -O binary ${PROG}.elf ${.TARGET}
36 CLEANFILES+= ${PROG}.elf