Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / alpha / stand / netboot / Makefile
blobcf22c0f4172c64416b52aa4537220ec21b95c22b
1 # $NetBSD: Makefile,v 1.24 2001/09/22 03:34:18 tv Exp $
3 PROG = netboot
5 SRCS = start.S boot.c prom.c prom_disp.S OSFpal.c prom_swpal.S
6 SRCS+= rpcc.S
7 SRCS+= dev_net.c conf.c devopen.c
8 SRCS+= if_prom.c getsecs.c booted_dev.c
10 BOOT_RELOC = ${UNIFIED_LOAD_ADDRESS}
12 CLEANFILES+= ${PROG}.sym
14 CPPFLAGS += ${UNIFIED_CPPFLAGS} -DSUPPORT_DHCP \
15 -DBOOT_TYPE_NAME='"Network"'
17 ${PROG}: ${PROG}.sym
18 @echo creating ${PROG} from ${PROG}.sym...
19 @${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
20 @chmod 644 ${PROG}
21 @ls -l ${PROG}
22 @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \
23 ${UNIFIED_MAX_TOTAL} || (rm -f ${PROG} ; false)
25 SAMISCMAKEFLAGS= SA_INCLUDE_NET=yes SA_USE_CREAD=yes
26 .include "../Makefile.bootprogs"
28 ${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
29 ${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
30 ${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
31 ${SIZE} ${PROG}.sym
33 release: check_RELEASEDIR .WAIT ${PROG}
34 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${PROG} \
35 ${RELEASEDIR}/${MACHINE}/installation/netboot