1 # $NetBSD: Makefile,v 1.12 2009/04/15 17:15:13 tsutsui Exp $
3 S
!= cd
${.CURDIR
}/..
/..
/..
/..
; pwd
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
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
>