NetBSD/sys/arch/i386/stand/netboot/Makefile

64 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.14 1997/09/28 11:47:32 drochner Exp $
S= ${.CURDIR}/../../../../
BASE= netboot
PROG= ${BASE}.rom
NOMAN=
NEWVERSWHAT= "Network Boot"
SRCS= main.c devopen.c conf.c dev_net.c
CLEANFILES+= ${ROMSTART} ${BASE}.bin ${BASE}.sym
#CPPFLAGS+= -DCOMPAT_OLDBOOT
#CPPFLAGS+= -DDEBUG
#CPPFLAGS+= -DNET_DEBUG
#CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
#CPPFLAGS+= -DSUPPORT_TFTP
CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
#uncomment if there are problems with memory detection
#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
CFLAGS+= -Wall
# XXX should go into library
.PATH: ${.CURDIR}/../libsa
#SRCS+= tftp.c
SRCS+= nfs.c
CPPFLAGS+= -I${.CURDIR}/../libsa
#ROM_SIZE= 16384
ROM_SIZE= 32768
RELOC= 90000
CPPFLAGS+= -DBOOTROM -DRELOC=0x$(RELOC)
.PATH: ${.CURDIR}/../lib/netif
#USE_NETIF= 3c509
#USE_NETIF= 3c590 #handles 3c900 combo and 3c905 TX too
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x10b7 -DPCI_DID=0x5900 -DPCI_CLASS=0x020000
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x10b7 -DPCI_DID=0x9001 -DPCI_CLASS=0x020000
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x10b7 -DPCI_DID=0x9050 -DPCI_CLASS=0x020000
USE_NETIF= pcnet_pci
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x1022 -DPCI_DID=0x2000 -DPCI_CLASS=0x020000
#USE_NETIF= pcnet_isapnp
#USE_NETIF= wd80x3 #supports SMC Ultra together with flag below
#CPPFLAGS+= -DSUPPORT_SMC_ULTRA
.include "../lib/netif/Makefile.inc"
SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x40000
SAMISCCPPFLAGS+= -DNFS_NOSYMLINK -DUDP_NO_CKSUM
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
#I386MISCCPPFLAGS+= -DDISK_DEBUG
#I386MISCCPPFLAGS+= -DSUPPORT_SERIAL -DDIRECT_SERIAL -DCOMCONS_KEYPRESS
I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no I386_INCLUDE_BUS=yes
.include "../Makefile.booters"
conf.o dev_net.o: Makefile