NetBSD/sys/arch/newsmips/stand/boot/Makefile

42 lines
1017 B
Makefile

# $NetBSD: Makefile,v 1.18 2006/06/29 01:45:03 lukem Exp $
S= ${.CURDIR}/../../../..
PROG= boot
SRCS= locore.S boot.c bootinfo.c devopen.c net.c netif_news.c
NOMAN= # defined
STRIPFLAG=
BINMODE= 444
WARNS?= 1
.include <bsd.own.mk>
COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR}
CLEANFILES+= ${PROG}.elf ${PROG}.tmp
LINKFLAGS= -x -N -Ttext a0700000 -e _start
LINKFLAGS+= -T ${S}/arch/mips/conf/stand.ldscript
CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0
CPPFLAGS+= -DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK
CPPFLAGS+= -DSUN_BOOTPARAMS
CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
CPPFLAGS+= -I${.CURDIR} -I${COMMON} -I${S}
CPPFLAGS+= -D__daddr_t=int32_t
AFLAGS= -D_LOCORE -mno-abicalls
LIBS = ${COMMON}/romcalls.o
LIBS+= ${COMMON}/lib/sa/libsa.a
LIBS+= ${COMMON}/lib/z/libz.a
LIBS+= ${COMMON}/lib/kern/libkern.a
${PROG}: ${OBJS}
${_MKTARGET_LINK}
${LD} ${LINKFLAGS} -o ${PROG}.elf ${OBJS} ${LIBS}
-${SIZE} ${PROG}.elf
${OBJCOPY} -O binary ${PROG}.elf ${PROG}
.include <bsd.prog.mk>