NetBSD/sys/arch/atari/stand/xxboot/Makefile.inc

30 lines
611 B
Makefile

# $NetBSD: Makefile.inc,v 1.6 2002/04/15 09:29:56 leo Exp $
BINDIR= /usr/mdec
BINMODE= ${NONBINMODE}
STRIPFLAG=
LDFLAGS= -nostdlib -static -Wl,-x,-Ttext,0,-N
CPPFLAGS+= -I- -I. -I..
beforeinstall:
${OBJCOPY} -O binary ${PROG} ${PROG}X
@mv -f ${PROG} ${PROG}XX
@mv -f ${PROG}X ${PROG}
afterinstall:
@mv -f ${PROG}XX ${PROG}
.s.o: ../LOADADDR
${CPP} ${CPPFLAGS} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET}
@if nm ${.TARGET} | grep -q "00000200 t end"; \
then \
true; \
else \
nm ${.TARGET} | grep -q " end"; \
rm -f ${.TARGET}; \
false; \
fi
.include "../LOADADDR"