Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / atari / stand / bootxxx / Makefile.bootxxx
blobcd7762657e2b3cd3acf4816a4160e02295511a06
1 #       $NetBSD: Makefile.bootxxx,v 1.5 2009/01/13 13:44:01 tsutsui Exp $
3 NOMAN=  # defined
5 # for OBJECT_FMT
6 .include <bsd.own.mk>
8 PROG=   boot.atari
10 STRIPFLAG=
11 BINMODE=${NONBINMODE}
13 # XXX SHOULD NOT NEED TO DEFINE THESE!
14 LIBCRT0=
15 LIBC=
16 LIBCRTBEGIN=
17 LIBCRTEND=
19 # logically src/sys
20 S=${.CURDIR}/../../../../..
21 S_SA=${S}/lib/libsa
22 S_KERN=${S}/lib/libkern
23 S_MACHSA=${S}/arch/atari/stand/libsa
24 S_LIBTOS=${S}/arch/atari/stand/tostools/libtos
26 S_MACHSAOBJ!=   cd ${S_MACHSA} && ${PRINTOBJDIR}
28 LIBSA=${S_MACHSAOBJ}/lib/sa/libsa.a
29 LIBKERN=${S_MACHSAOBJ}/lib/kern/libkern.a
31 .include "../../Makefile.booters"
32 .include "../../xxboot/${BTYPE}_LOADADDR"
34 CPPFLAGS+=      -I. -I${S_LIBTOS} -I${S_MACHSA} -I${S_KERN} -I${S_SA} -I${S}
35 .if ${OBJECT_FMT} == "ELF"
36 LINKFLAGS=      -static -N -e start -Ttext ${LOADADDR3}
37 .else
38 LINKFLAGS=      -static -N -Ttext ${LOADADDR3}
39 .endif
41 .PATH: ${.CURDIR}/.. ${S_LIBTOS}
44 # Warning: start.S should be the first source!
46 SRCS=   start.S bootxxx.c aout.c bsdstart.s elf.c filesystem.c sysinfo.c
48 LIBS=   ${LIBSA} ${LIBKERN}
50 beforeinstall:
51         ${INSTALL_DIR} ${DESTDIR}${BINDIR}
53 ${PROG}:        ${OBJS} ${LIBS}
54         ${_MKTARGET_LINK}
55         ${LD} ${LINKFLAGS} -o ${.TARGET}.elf ${OBJS} ${LIBS}
56         ${OBJCOPY} -O binary ${PROG}.elf ${.TARGET}
58 CLEANFILES+=    ${PROG}.elf
60 .include <bsd.prog.mk>