Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / newsmips / stand / bootxx / Makefile
blob3b676485b70ed908a1d05bb193edf381cffbae01
1 # $NetBSD: Makefile,v 1.12 2009/04/15 17:15:13 tsutsui Exp $
3 S!= cd ${.CURDIR}/../../../..; pwd
5 PROG= bootxx
6 SRCS= start.S bootxx.c
7 NOMAN= # defined
8 STRIPFLAG=
9 BINMODE= 444
10 WARNS?= 1
11 SIZE?= size
13 .include <bsd.own.mk>
15 COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR}
17 LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript
18 LINKFLAGS= -x -N -Ttext a0004000 -T ${LDSCRIPT} -e _start
19 CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0
20 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
22 CPPFLAGS+= -D_STANDALONE #-DBOOTXX_DEBUG
23 CPPFLAGS+= -nostdinc -I. -I${S}
25 AFLAGS= -D_LOCORE -mno-abicalls
27 CLEANFILES+= machine mips ${PROG}.sym
28 CLEANFILES+= ${PROG}.bin
30 LIBS= ${COMMON}/romcalls.o
31 LIBS+= ${COMMON}/lib/sa/libsa.a ${COMMON}/lib/kern/libkern.a
33 ${PROG}: ${OBJS}
34 ${_MKTARGET_LINK}
35 ${LD} ${LINKFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS}
36 ${SIZE} ${.TARGET}.sym
37 ${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}.bin
38 mv ${.TARGET}.bin ${.TARGET}
40 .include <bsd.klinks.mk>
41 .include <bsd.prog.mk>