1 1.1.2.2 nathanw # $NetBSD: Makefile,v 1.1.2.2 2002/11/11 22:03:44 nathanw Exp $ 2 1.1.2.2 nathanw 3 1.1.2.2 nathanw PROG = netboot 4 1.1.2.2 nathanw 5 1.1.2.2 nathanw SRCS = start.S boot.c cfe_api.c cfe.c 6 1.1.2.2 nathanw SRCS+= dev_net.c conf.c devopen.c 7 1.1.2.2 nathanw SRCS+= if_cfe.c getsecs.c booted_dev.c 8 1.1.2.2 nathanw 9 1.1.2.2 nathanw BOOT_RELOC = ${UNIFIED_LOAD_ADDRESS} 10 1.1.2.2 nathanw 11 1.1.2.2 nathanw CLEANFILES+= ${PROG}.sym 12 1.1.2.2 nathanw 13 1.1.2.2 nathanw CPPFLAGS += ${UNIFIED_CPPFLAGS} -DSUPPORT_DHCP \ 14 1.1.2.2 nathanw -DBOOT_TYPE_NAME='"Network"' 15 1.1.2.2 nathanw 16 1.1.2.2 nathanw ${PROG}: ${PROG}.sym 17 1.1.2.2 nathanw @echo creating ${PROG} from ${PROG}.sym... 18 1.1.2.2 nathanw @${OBJCOPY} --output-target=binary -R .reginfo ${PROG}.sym ${PROG} 19 1.1.2.2 nathanw @chmod 644 ${PROG} 20 1.1.2.2 nathanw @ls -l ${PROG} 21 1.1.2.2 nathanw @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \ 22 1.1.2.2 nathanw ${UNIFIED_MAX_TOTAL} || (rm -f ${PROG} ; false) 23 1.1.2.2 nathanw 24 1.1.2.2 nathanw SAMISCMAKEFLAGS= SA_INCLUDE_NET=yes SA_USE_CREAD=yes 25 1.1.2.2 nathanw .include "../Makefile.bootprogs" 26 1.1.2.2 nathanw 27 1.1.2.2 nathanw ${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 28 1.1.2.2 nathanw ${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \ 29 1.1.2.2 nathanw ${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} 30 1.1.2.2 nathanw ${SIZE} ${PROG}.sym 31 1.1.2.2 nathanw 32