Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / newsmips / stand / boot / Makefile
blob53532c55d436bdaf7602211712cce3e59c9070a6
1 # $NetBSD: Makefile,v 1.21 2009/12/16 23:19:07 matt Exp $
3 S!= cd ${.CURDIR}/../../../..; pwd
5 PROG= boot
6 SRCS= locore.S boot.c bootinfo.c devopen.c net.c netif_news.c
7 NOMAN= # defined
8 STRIPFLAG=
9 BINMODE= 444
10 WARNS?= 1
12 .include <bsd.own.mk>
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
36 ${PROG}: ${OBJS}
37 ${_MKTARGET_LINK}
38 ${LD} ${LINKFLAGS} -o ${PROG}.elf ${OBJS} ${LIBS}
39 -${SIZE} ${PROG}.elf
40 ${OBJCOPY} -O binary ${PROG}.elf ${PROG}
42 .include <bsd.klinks.mk>
43 .include <bsd.prog.mk>