No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / news68k / stand / boot / Makefile
blobc8853f36303c64e03a3bdf1b564cc6acad54cbd2
1 # $NetBSD: Makefile,v 1.26 2009/03/15 06:04:02 tsutsui Exp $
3 NOMAN= # defined
5 .include <bsd.own.mk>
7 COMMON= ${.CURDIR}/../common
8 COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR}
10 .PATH: ${COMMON}
12 PROG= boot
13 SRCS= locore.S boot.c devopen.c
14 STRIPFLAG=
15 BINMODE= 444
17 S= ${.CURDIR}/../../../..
19 LINKFLAGS= -x -N -Ttext 3e0000 -e start
20 CFLAGS= -Os -Wall -Werror
21 CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
22 #CFLAGS+= -Wno-format-zero-length -Wno-sign-compare
24 CPPFLAGS+= -D_STANDALONE # -DBOOT_DEBUG
25 CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
26 CPPFLAGS+= -D__daddr_t=int32_t
27 AFLAGS= -D_LOCORE
29 CLEANFILES+= ${PROG}.sym
31 L= ${COMMONOBJ}/lib
32 LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
34 ${PROG}: ${OBJS} ${LIBS}
35 ${_MKTARGET_LINK}
36 ${LD} ${LINKFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS}
37 -${SIZE} ${.TARGET}.sym
38 ${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}
40 .include <bsd.klinks.mk>
41 .include <bsd.prog.mk>