1 # $NetBSD: Makefile.netboot,v 1.7 2008/10/20 20:00:57 christos Exp $
8 .include "../Makefile.inc"
10 S= ${.CURDIR}/../../../../..
12 BASE= netboot_${USE_NETIF}
14 NEWVERSWHAT= "Network Boot (${USE_NETIF})"
15 STARTFILE= ${ROMSTART}
20 SRCS= main.c devopen.c conf.c dev_net.c exec.c
22 CPPFLAGS+= -DSLOW # for libz
24 #CPPFLAGS+= -DNET_DEBUG
25 CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
26 CPPFLAGS+= -DSUPPORT_TFTP
27 #CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
28 #CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
29 #uncomment if there are problems with memory detection
30 #CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
32 #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
35 # XXX should go into library
36 #.PATH: ${.CURDIR}/../../libsa
38 #CPPFLAGS+= -I${.CURDIR}/../../libsa
43 CPPFLAGS+= -DBOOTROM -DRELOC=${RELOC}
45 .PATH: ${.CURDIR}/../../lib/netif
47 .include "../../lib/netif/Makefile.inc"
49 SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x40000
50 SAMISCCPPFLAGS+= -DNFS_NOSYMLINK -DUDP_NO_CKSUM
51 #SAMISCMAKEFLAGS= SA_USE_CREAD=yes
52 #I386MISCCPPFLAGS+= -DDISK_DEBUG
53 #I386MISCCPPFLAGS+= -DSUPPORT_SERIAL -DDIRECT_SERIAL -DCOMCONS_KEYPRESS
54 I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no I386_INCLUDE_BUS=yes
56 VERSIONFILE= ${.CURDIR}/../version
58 .include "../../Makefile.booters"
60 conf.o dev_net.o: Makefile