Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / atari / stand / xxboot / Makefile.xxboot
blobd06309284dedd8aafe54d8ab718778c1a12d70bc
1 #       $NetBSD: Makefile.xxboot,v 1.4 2005/12/11 12:17:02 christos Exp $
3 BINMODE=        ${NONBINMODE}
5 # XXX SHOULD NOT NEED TO DEFINE THESE!
6 LIBCRT0=
7 LIBC=
8 LIBCRTBEGIN=
9 LIBCRTEND=
11 .include "../../Makefile.booters"
12 .include "../${BTYPE}_LOADADDR"
14 STRIPFLAG=
15 LINKFLAGS=      -static -x -N -Ttext 0
16 CPPFLAGS+=      -I. -I${.CURDIR}/.. -I${.CURDIR}/../.. -D${BTYPE}
18 beforeinstall:
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";        \
24          then                                           \
25                 true;                                   \
26          else                                           \
27                 ${NM} ${.TARGET} | grep " end";         \
28                 rm -f ${.TARGET};                       \
29                 false;                                  \
30          fi
32 ${PROG}:        ${OBJS}
33         ${LD} ${LINKFLAGS} -o ${PROG}.elf ${OBJS}
34         ${OBJCOPY} -O binary ${PROG}.elf ${.TARGET}
36 CLEANFILES+=    ${PROG}.elf