1 1.1.2.2 nathanw # $NetBSD: Makefile,v 1.1.2.2 2002/11/11 22:03:24 nathanw Exp $ 2 1.1.2.2 nathanw 3 1.1.2.2 nathanw PROG = boot 4 1.1.2.2 nathanw 5 1.1.2.2 nathanw SRCS = start.S boot.c blkdev.c cfe.c cfe_api.c 6 1.1.2.2 nathanw SRCS+= filesystem.c booted_dev.c 7 1.1.2.2 nathanw 8 1.1.2.2 nathanw BOOT_RELOC = ${SECONDARY_LOAD_ADDRESS} 9 1.1.2.2 nathanw 10 1.1.2.2 nathanw CPPFLAGS += ${SECONDARY_CPPFLAGS} \ 11 1.1.2.2 nathanw -DBOOT_TYPE_NAME='"Secondary"' \ 12 1.1.2.2 nathanw -DLIBSA_SINGLE_DEVICE=blkdev \ 13 1.1.2.2 nathanw -D"blkdevioctl(x,y,z)=EINVAL" 14 1.1.2.2 nathanw 15 1.1.2.2 nathanw CLEANFILES+= ${PROG}.sym 16 1.1.2.2 nathanw 17 1.1.2.2 nathanw ${PROG}: ${PROG}.sym 18 1.1.2.2 nathanw @echo creating ${PROG} from ${PROG}.sym... 19 1.1.2.2 nathanw @${OBJCOPY} --output-target=binary -R .reginfo ${PROG}.sym ${PROG} 20 1.1.2.2 nathanw @chmod 644 ${PROG} 21 1.1.2.2 nathanw @ls -l ${PROG} 22 1.1.2.2 nathanw @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${SECONDARY_MAX_LOAD} \ 23 1.1.2.2 nathanw ${SECONDARY_MAX_TOTAL} || (rm -f ${PROG} ; false) 24 1.1.2.2 nathanw 25 1.1.2.2 nathanw SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=yes 26 1.1.2.2 nathanw .include "../Makefile.bootprogs" 27 1.1.2.2 nathanw 28 1.1.2.2 nathanw ${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 29 1.1.2.2 nathanw ${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \ 30 1.1.2.2 nathanw ${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} 31 1.1.2.2 nathanw ${SIZE} ${PROG}.sym 32