Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / x68k / stand / mboot / Makefile
blobdbdc7e326b0bd7ea36706c59f240f880a190579f
1 # $NetBSD: Makefile,v 1.14 2006/06/29 03:46:43 lukem Exp $
3 BOOT= mboot
4 VERSION= 0.1
6 # text address
7 TEXT= 00002000
8 TEXTSZ= 1024
10 PROG= ${BOOT}
11 BINDIR= /usr/mdec
12 BINMODE= 444
13 NOMAN= # defined
14 STRIPFLAG=
16 STRIP?= /usr/bin/strip
18 SRCS= srt0.S mboot.c
19 KERN!= cd ${.CURDIR}/../../../..; pwd
21 CPPFLAGS+= -D_STANDALONE
22 CPPFLAGS+= -nostdinc -I${KERN} -I${.CURDIR} -I.
23 #CPPFLAGS+= -I${.CURDIR}/../libiocs
24 CPPFLAGS+= -DTEXTADDR="0x${TEXT}"
25 CPPFLAGS+= -DBOOT=\"${BOOT}\" -DBOOT_VERS=\"${VERSION}\"
26 CFLAGS= -Wno-main -Os -m68000
28 LINKFLAGS= -N -static -Ttext ${TEXT}
30 .include "../Makefile.booters"
32 realall: ${PROG}
33 ${BOOT}: ${OBJS}
34 ${_MKTARGET_LINK}
35 ${LD} ${LINKFLAGS} -o ${BOOT}.x ${OBJS} ${LDLIBS}
36 # ${STRIP} ${BOOT}.x
37 # dd bs=32 skip=1 count=32 if=${BOOT}.x of=${BOOT}
38 ${OBJCOPY} -O binary ${BOOT}.x ${BOOT}
39 @rm ${BOOT}.x
40 CLEANFILES+= ${BOOT}.x
42 .include <bsd.prog.mk>