1 1.10.2.4 thorpej # $NetBSD: Makefile,v 1.10.2.4 2002/12/11 06:11:28 thorpej 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.4 thorpej WARNS?= 1 11 1.10.2.2 nathanw 12 1.10.2.2 nathanw SIZE?= size 13 1.10.2.2 nathanw STRIP?= strip 14 1.10.2.2 nathanw 15 1.10.2.2 nathanw .include <bsd.own.mk> 16 1.10.2.2 nathanw 17 1.10.2.2 nathanw COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR} 18 1.10.2.2 nathanw 19 1.10.2.2 nathanw CLEANFILES+= ${PROG}.elf ${PROG}.tmp 20 1.10.2.2 nathanw 21 1.10.2.2 nathanw LDFLAGS= -x -N -Ttext a0700000 -e _start 22 1.10.2.4 thorpej CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0 23 1.10.2.2 nathanw 24 1.10.2.3 nathanw CPPFLAGS+= -DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK 25 1.10.2.2 nathanw CPPFLAGS+= -DSUN_BOOTPARAMS 26 1.10.2.2 nathanw CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG 27 1.10.2.2 nathanw CPPFLAGS+= -I${.CURDIR} -I${COMMON} -I${S} 28 1.10.2.2 nathanw 29 1.10.2.4 thorpej AFLAGS= -D_LOCORE -mno-abicalls 30 1.10.2.2 nathanw 31 1.10.2.2 nathanw LIBS = ${COMMON}/romcalls.o 32 1.10.2.2 nathanw LIBS+= ${COMMON}/lib/sa/libsa.a 33 1.10.2.2 nathanw LIBS+= ${COMMON}/lib/z/libz.a 34 1.10.2.2 nathanw LIBS+= ${COMMON}/lib/kern/libkern.a 35 1.10.2.2 nathanw 36 1.10.2.2 nathanw ${PROG}: ${OBJS} 37 1.10.2.2 nathanw ${LD} ${LDFLAGS} -o ${PROG}.elf ${OBJS} ${LIBS} 38 1.10.2.2 nathanw -${SIZE} ${PROG}.elf 39 1.10.2.2 nathanw ${STRIP} ${PROG}.elf -o ${PROG} 40 1.10.2.2 nathanw tail -c +177 ${PROG} > ${PROG}.tmp 41 1.10.2.2 nathanw mv ${PROG}.tmp ${PROG} 42 1.10.2.2 nathanw # ${OBJCOPY} -O binary ${PROG}.elf ${PROG} # XXX 43 1.10.2.2 nathanw 44 1.10.2.2 nathanw .include <bsd.prog.mk> 45