1 # $NetBSD: Makefile,v 1.21 2009/12/16 23:19:07 matt Exp $
3 S
!= cd
${.CURDIR
}/..
/..
/..
/..
; pwd
6 SRCS
= locore.S boot.c bootinfo.c devopen.c net.c netif_news.c
14 COMMON
!= cd
${.CURDIR
}/..
/common
&& ${PRINTOBJDIR}
16 CLEANFILES
+= ${PROG}.elf
${PROG}.tmp
18 LINKFLAGS
= -x
-N
-Ttext a0700000
-e _start
19 LINKFLAGS
+= -T
${S}/arch
/mips
/conf
/stand.ldscript
20 CFLAGS
= -Os
-ffreestanding
-mmemcpy
-mno-abicalls
-msoft-float
-G
0
21 CFLAGS
+= -Wall
-Wmissing-prototypes
-Wstrict-prototypes
-Wpointer-arith
23 CPPFLAGS
+= -DSUPPORT_USTARFS
-DHAVE_CHANGEDISK_HOOK
24 CPPFLAGS
+= -DSUN_BOOTPARAMS
25 CPPFLAGS
+= -D_STANDALONE
#-DBOOT_DEBUG
26 CPPFLAGS
+= -I
${.CURDIR
} -I.
-I
${S}
27 CPPFLAGS
+= -D__daddr_t
=int32_t
29 AFLAGS
= -D_LOCORE
-mno-abicalls
-DMIPS_KSEG1_START
=0xa0000000
31 LIBS
= ${COMMON}/romcalls.o
32 LIBS
+= ${COMMON}/lib
/sa
/libsa.a
33 LIBS
+= ${COMMON}/lib
/z
/libz.a
34 LIBS
+= ${COMMON}/lib
/kern
/libkern.a
38 ${LD} ${LINKFLAGS} -o
${PROG}.elf
${OBJS} ${LIBS}
40 ${OBJCOPY} -O binary
${PROG}.elf
${PROG}
42 .
include <bsd.klinks.mk
>
43 .
include <bsd.prog.mk
>