1 1.13 tsutsui # $NetBSD: Makefile,v 1.13 2009/04/16 12:36:06 tsutsui Exp $ 2 1.12 tsutsui 3 1.12 tsutsui S!= cd ${.CURDIR}/../../../..; pwd 4 1.1 tsubai 5 1.1 tsubai PROG= bootxx 6 1.2 tsubai SRCS= start.S bootxx.c 7 1.5 tv NOMAN= # defined 8 1.1 tsubai STRIPFLAG= 9 1.1 tsubai BINMODE= 444 10 1.8 tsutsui WARNS?= 1 11 1.1 tsubai SIZE?= size 12 1.1 tsubai 13 1.4 tv .include <bsd.own.mk> 14 1.4 tv 15 1.4 tv COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR} 16 1.2 tsubai 17 1.13 tsutsui LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript 18 1.13 tsutsui LINKFLAGS= -x -N -Ttext a0004000 -T ${LDSCRIPT} -e _start 19 1.8 tsutsui CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0 20 1.11 tsutsui CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith 21 1.1 tsubai 22 1.1 tsubai CPPFLAGS+= -D_STANDALONE #-DBOOTXX_DEBUG 23 1.12 tsutsui CPPFLAGS+= -nostdinc -I. -I${S} 24 1.2 tsubai 25 1.8 tsutsui AFLAGS= -D_LOCORE -mno-abicalls 26 1.1 tsubai 27 1.7 lukem CLEANFILES+= machine mips ${PROG}.sym 28 1.13 tsutsui CLEANFILES+= ${PROG}.bin 29 1.7 lukem 30 1.2 tsubai LIBS= ${COMMON}/romcalls.o 31 1.2 tsubai LIBS+= ${COMMON}/lib/sa/libsa.a ${COMMON}/lib/kern/libkern.a 32 1.1 tsubai 33 1.1 tsubai ${PROG}: ${OBJS} 34 1.10 lukem ${_MKTARGET_LINK} 35 1.9 lukem ${LD} ${LINKFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS} 36 1.7 lukem ${SIZE} ${.TARGET}.sym 37 1.13 tsutsui ${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}.bin 38 1.7 lukem mv ${.TARGET}.bin ${.TARGET} 39 1.1 tsubai 40 1.12 tsutsui .include <bsd.klinks.mk> 41 1.1 tsubai .include <bsd.prog.mk> 42