Fix up mix of man(7)/mdoc(7).
[netbsd-mini2440.git] / sys / arch / sbmips / stand / netboot / Makefile
blobc214a2013a5b302b6a1c11290d642bed48de40e3
1 # $NetBSD: Makefile,v 1.3 2005/12/11 12:18:51 christos Exp $
3 PROG = netboot
5 SRCS = start.S boot.c cfe_api.c cfe.c
6 SRCS+= dev_net.c conf.c devopen.c
7 SRCS+= if_cfe.c getsecs.c booted_dev.c
9 BOOT_RELOC = ${UNIFIED_LOAD_ADDRESS}
11 CLEANFILES+= ${PROG}.sym
13 CPPFLAGS += ${UNIFIED_CPPFLAGS} -DSUPPORT_DHCP \
14 -DBOOT_TYPE_NAME='"Network"'
16 ${PROG}: ${PROG}.sym
17 @echo creating ${PROG} from ${PROG}.sym...
18 @${OBJCOPY} --output-target=binary -R .reginfo -R .rel.dyn \
19 ${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