1998-02-25 15:19:12 +03:00
|
|
|
# $NetBSD: Makefile,v 1.16 1998/02/25 12:19:12 drochner Exp $
|
1997-03-14 05:40:29 +03:00
|
|
|
|
1997-03-14 07:59:34 +03:00
|
|
|
S= ${.CURDIR}/../../../../
|
1997-03-14 05:40:29 +03:00
|
|
|
|
1997-09-28 15:47:29 +04:00
|
|
|
BASE= netboot
|
|
|
|
PROG= ${BASE}.rom
|
1997-03-14 05:40:29 +03:00
|
|
|
NOMAN=
|
1997-07-26 05:50:36 +04:00
|
|
|
NEWVERSWHAT= "Network Boot"
|
1997-03-14 05:40:29 +03:00
|
|
|
|
1997-07-26 05:50:36 +04:00
|
|
|
SRCS= main.c devopen.c conf.c dev_net.c
|
1997-03-14 05:40:29 +03:00
|
|
|
|
1997-09-28 15:47:29 +04:00
|
|
|
CLEANFILES+= ${ROMSTART} ${BASE}.bin ${BASE}.sym
|
1997-03-14 05:40:29 +03:00
|
|
|
|
|
|
|
#CPPFLAGS+= -DCOMPAT_OLDBOOT
|
|
|
|
#CPPFLAGS+= -DDEBUG
|
1997-06-13 17:17:46 +04:00
|
|
|
#CPPFLAGS+= -DNET_DEBUG
|
1997-09-17 21:07:10 +04:00
|
|
|
#CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
|
|
|
|
#CPPFLAGS+= -DSUPPORT_TFTP
|
|
|
|
CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
|
|
|
|
CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
|
1997-08-14 21:00:18 +04:00
|
|
|
#uncomment if there are problems with memory detection
|
|
|
|
#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
|
1997-03-14 05:40:29 +03:00
|
|
|
|
|
|
|
#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
|
1997-06-13 17:17:46 +04:00
|
|
|
CFLAGS+= -Wall
|
1997-03-14 05:40:29 +03:00
|
|
|
|
|
|
|
# XXX should go into library
|
|
|
|
.PATH: ${.CURDIR}/../libsa
|
|
|
|
#SRCS+= tftp.c
|
1997-09-17 21:07:10 +04:00
|
|
|
SRCS+= nfs.c
|
1997-03-14 05:40:29 +03:00
|
|
|
CPPFLAGS+= -I${.CURDIR}/../libsa
|
|
|
|
|
|
|
|
#ROM_SIZE= 16384
|
|
|
|
ROM_SIZE= 32768
|
|
|
|
|
|
|
|
RELOC= 90000
|
|
|
|
CPPFLAGS+= -DBOOTROM -DRELOC=0x$(RELOC)
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../lib/netif
|
|
|
|
|
|
|
|
#USE_NETIF= 3c509
|
1998-02-25 15:19:12 +03:00
|
|
|
#USE_NETIF= 3c590 #handles 3c900 TPO / combo and 3c905 TX too
|
|
|
|
# uncomment next and one of the following to make a PCI expansion ROM for 3com
|
|
|
|
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x10b7 -DPCI_CLASS=0x020000
|
|
|
|
#CPPFLAGS+= -DPCI_DID=0x5900 # 3c590
|
|
|
|
#CPPFLAGS+= -DPCI_DID=0x9000 # 3c900 TPO
|
|
|
|
#CPPFLAGS+= -DPCI_DID=0x9001 # 3c900 combo
|
|
|
|
#CPPFLAGS+= -DPCI_DID=0x9050 # 3c905 TX
|
|
|
|
|
1997-03-14 05:40:29 +03:00
|
|
|
USE_NETIF= pcnet_pci
|
1998-02-25 15:19:12 +03:00
|
|
|
# uncomment the following to make a PCI expansion ROM for PCNET-PCI
|
1997-08-14 19:38:30 +04:00
|
|
|
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x1022 -DPCI_DID=0x2000 -DPCI_CLASS=0x020000
|
1998-02-25 15:19:12 +03:00
|
|
|
#USE_NETIF= pcnet_isapnp #boot device passing to kernel broken
|
|
|
|
|
1998-02-16 14:41:14 +03:00
|
|
|
#USE_NETIF= wd80x3 #and uncomment at least one of the two following lines
|
|
|
|
#CPPFLAGS+= -DSUPPORT_WD80X3
|
1997-06-21 18:43:51 +04:00
|
|
|
#CPPFLAGS+= -DSUPPORT_SMC_ULTRA
|
1997-03-14 05:40:29 +03:00
|
|
|
|
|
|
|
.include "../lib/netif/Makefile.inc"
|
|
|
|
|
1997-06-13 17:17:46 +04:00
|
|
|
SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x40000
|
1997-09-17 21:07:10 +04:00
|
|
|
SAMISCCPPFLAGS+= -DNFS_NOSYMLINK -DUDP_NO_CKSUM
|
1997-03-14 05:40:29 +03:00
|
|
|
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
|
|
|
|
#I386MISCCPPFLAGS+= -DDISK_DEBUG
|
1997-09-28 15:47:29 +04:00
|
|
|
#I386MISCCPPFLAGS+= -DSUPPORT_SERIAL -DDIRECT_SERIAL -DCOMCONS_KEYPRESS
|
1997-03-14 05:40:29 +03:00
|
|
|
I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no I386_INCLUDE_BUS=yes
|
|
|
|
|
|
|
|
.include "../Makefile.booters"
|
|
|
|
|
|
|
|
conf.o dev_net.o: Makefile
|