1 # $NetBSD: Makefile,v 1.3 2005/12/11 12:18:51 christos Exp $
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"'
17 @echo creating
${PROG} from
${PROG}.sym...
18 @
${OBJCOPY} --output-target
=binary
-R .reginfo
-R .rel.dyn \
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}