No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / news68k / stand / bootxx / Makefile
blob97468edd123878777f3793fdf1b3b67e38141187
1 # $NetBSD: Makefile,v 1.19 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= bootxx
13 SRCS= start.S bootxx.c
14 STRIPFLAG=
15 BINMODE= 444
17 SIZE?= size
18 OBJCOPY?= objcopy
20 S!= cd ${.CURDIR}/../../../..; pwd
22 LINKFLAGS= -x -N -Ttext 0 -e start
23 CFLAGS= -Os -Wall -Werror
24 CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
25 #CFLAGS+= -Wno-format-zero-length -Wno-sign-compare
27 CPPFLAGS+= -D_STANDALONE # -DBOOTXX_DEBUG
28 CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
29 AFLAGS= -D_LOCORE
31 CLEANFILES+= ${PROG}.sym
33 L= ${COMMONOBJ}/lib
34 LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a
36 ${PROG}: ${OBJS} ${LIBS}
37 ${_MKTARGET_LINK}
38 ${LD} ${LINKFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS}
39 ${SIZE} ${.TARGET}.sym
40 ${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}
42 .include <bsd.klinks.mk>
43 .include <bsd.prog.mk>