NetBSD/sys/arch/alpha/stand/netboot/Makefile

36 lines
1.0 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2003/01/03 15:34:42 lukem Exp $
PROG = netboot
SRCS = start.S boot.c prom.c prom_disp.S OSFpal.c prom_swpal.S
SRCS+= rpcc.S
SRCS+= dev_net.c conf.c devopen.c
SRCS+= if_prom.c getsecs.c booted_dev.c
BOOT_RELOC = ${UNIFIED_LOAD_ADDRESS}
CLEANFILES+= ${PROG}.sym
CPPFLAGS += ${UNIFIED_CPPFLAGS} -DSUPPORT_DHCP \
-DBOOT_TYPE_NAME='"Network"'
${PROG}: ${PROG}.sym
@echo creating ${PROG} from ${PROG}.sym...
@${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
@chmod 644 ${PROG}
@ls -l ${PROG}
@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \
${UNIFIED_MAX_TOTAL} || (rm -f ${PROG} ; false)
SAMISCMAKEFLAGS= SA_INCLUDE_NET=yes SA_USE_CREAD=yes
.include "../Makefile.bootprogs"
${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
${SIZE} ${PROG}.sym
release: check_RELEASEDIR .WAIT ${PROG}
${HOST_INSTALL_FILE} -m ${NONBINMODE} ${PROG} \
${RELEASEDIR}/${MACHINE}/installation/netboot