1 1.4.2.4 nathanw # $NetBSD: Makefile,v 1.4.2.4 2002/06/20 03:40:19 nathanw Exp $ 2 1.4.2.2 nathanw 3 1.4.2.2 nathanw PROG= bootxx 4 1.4.2.2 nathanw SRCS= start.S bootxx.c 5 1.4.2.2 nathanw NOMAN= # defined 6 1.4.2.2 nathanw STRIPFLAG= 7 1.4.2.2 nathanw BINMODE= 444 8 1.4.2.2 nathanw SIZE?= size 9 1.4.2.2 nathanw 10 1.4.2.2 nathanw .include <bsd.own.mk> 11 1.4.2.2 nathanw 12 1.4.2.2 nathanw COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR} 13 1.4.2.2 nathanw 14 1.4.2.2 nathanw LDFLAGS= -x -N -Ttext a0004000 -e _start 15 1.4.2.3 nathanw CFLAGS= -Os -mmemcpy -mno-abicalls -G 0 -Wall 16 1.4.2.2 nathanw 17 1.4.2.2 nathanw CPPFLAGS+= -D_STANDALONE #-DBOOTXX_DEBUG 18 1.4.2.4 nathanw CPPFLAGS+= -nostdinc -I${COMMON} -I${.CURDIR}/../../../.. 19 1.4.2.2 nathanw 20 1.4.2.2 nathanw AFLAGS= -D_LOCORE 21 1.4.2.2 nathanw 22 1.4.2.4 nathanw CLEANFILES+= machine mips ${PROG}.sym 23 1.4.2.4 nathanw CLEANFILES+= ${PROG}.bin ${PROG}.tmp 24 1.4.2.4 nathanw 25 1.4.2.2 nathanw LIBS= ${COMMON}/romcalls.o 26 1.4.2.2 nathanw LIBS+= ${COMMON}/lib/sa/libsa.a ${COMMON}/lib/kern/libkern.a 27 1.4.2.2 nathanw 28 1.4.2.2 nathanw ${PROG}: ${OBJS} 29 1.4.2.4 nathanw ${LD} ${LDFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS} 30 1.4.2.4 nathanw ${SIZE} ${.TARGET}.sym 31 1.4.2.4 nathanw # XXX objcopy does not work for prog at KSEG 32 1.4.2.4 nathanw # ${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET} 33 1.4.2.4 nathanw ${STRIP} ${.TARGET}.sym -o ${.TARGET}.tmp 34 1.4.2.4 nathanw tail -c +177 ${.TARGET}.tmp > ${.TARGET}.bin 35 1.4.2.4 nathanw mv ${.TARGET}.bin ${.TARGET} 36 1.4.2.2 nathanw 37 1.4.2.2 nathanw .include <bsd.prog.mk> 38