1 1.10.2.2 nathanw # $NetBSD: Makefile,v 1.10.2.2 2002/01/08 00:26:56 nathanw Exp $ 2 1.10.2.2 nathanw 3 1.10.2.2 nathanw S= ${.CURDIR}/../../../.. 4 1.10.2.2 nathanw 5 1.10.2.2 nathanw PROG= boot 6 1.10.2.2 nathanw SRCS= locore.S boot.c bootinfo.c devopen.c net.c netif_news.c 7 1.10.2.2 nathanw NOMAN= # defined 8 1.10.2.2 nathanw STRIPFLAG= 9 1.10.2.2 nathanw BINMODE= 444 10 1.10.2.2 nathanw 11 1.10.2.2 nathanw SIZE?= size 12 1.10.2.2 nathanw STRIP?= strip 13 1.10.2.2 nathanw 14 1.10.2.2 nathanw .include <bsd.own.mk> 15 1.10.2.2 nathanw 16 1.10.2.2 nathanw COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR} 17 1.10.2.2 nathanw 18 1.10.2.2 nathanw CLEANFILES+= ${PROG}.elf ${PROG}.tmp 19 1.10.2.2 nathanw 20 1.10.2.2 nathanw LDFLAGS= -x -N -Ttext a0700000 -e _start 21 1.10.2.2 nathanw CFLAGS= -Os -G 0 -mno-abicalls -Wall 22 1.10.2.2 nathanw 23 1.10.2.2 nathanw CPPFLAGS+= -DSUN_BOOTPARAMS 24 1.10.2.2 nathanw CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG 25 1.10.2.2 nathanw CPPFLAGS+= -I${.CURDIR} -I${COMMON} -I${S} 26 1.10.2.2 nathanw 27 1.10.2.2 nathanw AFLAGS= -D_LOCORE 28 1.10.2.2 nathanw 29 1.10.2.2 nathanw LIBS = ${COMMON}/romcalls.o 30 1.10.2.2 nathanw LIBS+= ${COMMON}/lib/sa/libsa.a 31 1.10.2.2 nathanw LIBS+= ${COMMON}/lib/z/libz.a 32 1.10.2.2 nathanw LIBS+= ${COMMON}/lib/kern/libkern.a 33 1.10.2.2 nathanw 34 1.10.2.2 nathanw ${PROG}: ${OBJS} 35 1.10.2.2 nathanw ${LD} ${LDFLAGS} -o ${PROG}.elf ${OBJS} ${LIBS} 36 1.10.2.2 nathanw -${SIZE} ${PROG}.elf 37 1.10.2.2 nathanw ${STRIP} ${PROG}.elf -o ${PROG} 38 1.10.2.2 nathanw tail -c +177 ${PROG} > ${PROG}.tmp 39 1.10.2.2 nathanw mv ${PROG}.tmp ${PROG} 40 1.10.2.2 nathanw # ${OBJCOPY} -O binary ${PROG}.elf ${PROG} # XXX 41 1.10.2.2 nathanw 42 1.10.2.2 nathanw .include <bsd.prog.mk> 43