head	1.11;
access;
symbols
	RELENG_4_11_0_RELEASE:1.10
	RELENG_4_11:1.10.0.24
	RELENG_4_11_BP:1.10
	RELENG_4_10_0_RELEASE:1.10
	RELENG_4_10:1.10.0.22
	RELENG_4_10_BP:1.10
	RELENG_4_9_0_RELEASE:1.10
	RELENG_4_9:1.10.0.20
	RELENG_4_9_BP:1.10
	RELENG_4_8_0_RELEASE:1.10
	RELENG_4_8:1.10.0.18
	RELENG_4_8_BP:1.10
	RELENG_4_7_0_RELEASE:1.10
	RELENG_4_7:1.10.0.16
	RELENG_4_7_BP:1.10
	RELENG_4_6_2_RELEASE:1.10
	RELENG_4_6_1_RELEASE:1.10
	RELENG_4_6_0_RELEASE:1.10
	RELENG_4_6:1.10.0.14
	RELENG_4_6_BP:1.10
	RELENG_4_5_0_RELEASE:1.10
	RELENG_4_5:1.10.0.12
	RELENG_4_5_BP:1.10
	RELENG_4_4_0_RELEASE:1.10
	RELENG_4_4:1.10.0.10
	RELENG_4_4_BP:1.10
	RELENG_4_3_0_RELEASE:1.10
	RELENG_4_3:1.10.0.8
	RELENG_4_3_BP:1.10
	RELENG_4_2_0_RELEASE:1.10
	RELENG_4_1_1_RELEASE:1.10
	RELENG_4_1_0_RELEASE:1.10
	RELENG_3_5_0_RELEASE:1.10
	RELENG_4_0_0_RELEASE:1.10
	RELENG_4:1.10.0.6
	RELENG_4_BP:1.10
	RELENG_3_4_0_RELEASE:1.10
	RELENG_3_3_0_RELEASE:1.10
	RELENG_3_2_PAO:1.10.0.4
	RELENG_3_2_PAO_BP:1.10
	RELENG_3_2_0_RELEASE:1.10
	POST_VFS_BIO_NFS_PATCH:1.10
	PRE_VFS_BIO_NFS_PATCH:1.10
	POST_SMP_VMSHARE:1.10
	PRE_SMP_VMSHARE:1.10
	POST_NEWBUS:1.10
	PRE_NEWBUS:1.10
	RELENG_3_1_0_RELEASE:1.10
	RELENG_3:1.10.0.2
	RELENG_3_BP:1.10
	RELENG_2_2_8_RELEASE:1.1.1.1.2.2
	RELENG_3_0_0_RELEASE:1.7
	RELENG_2_2_7_RELEASE:1.1.1.1.2.2
	PRE_NOBDEV:1.6
	POST_DEVFS_SLICE:1.5
	PRE_DEVFS_SLICE:1.5
	RELENG_2_2_6_RELEASE:1.1.1.1.2.2
	POST_SOFTUPDATE:1.5
	PRE_SOFTUPDATE:1.5
	RELENG_2_2_5_RELEASE:1.1.1.1.2.1
	WOLLMAN_MBUF:1.1.1.1.0.4
	BP_WOLLMAN_MBUF:1.1.1.1
	RELENG_2_2_2_RELEASE:1.1.1.1
	post_smp_merge:1.1.1.1
	pre_smp_merge:1.1.1.1
	RELENG_2_2_1_RELEASE:1.1.1.1
	RELENG_2_2_0_RELEASE:1.1.1.1
	RELENG_2_2:1.1.1.1.0.2
	RELENG_2_2_BP:1.1.1.1
	pc98_9606_current:1.1.1.1
	PC98:1.1.1;
locks; strict;
comment	@# @;


1.11
date	2000.03.20.12.14.05;	author kato;	state dead;
branches;
next	1.10;

1.10
date	99.01.04.08.05.01;	author kato;	state Exp;
branches;
next	1.9;

1.9
date	98.11.29.11.55.11;	author kato;	state Exp;
branches;
next	1.8;

1.8
date	98.11.26.11.47.51;	author kato;	state Exp;
branches;
next	1.7;

1.7
date	98.07.08.08.53.43;	author kato;	state Exp;
branches;
next	1.6;

1.6
date	98.07.02.12.37.36;	author kato;	state Exp;
branches;
next	1.5;

1.5
date	98.03.07.15.48.19;	author kato;	state Exp;
branches;
next	1.4;

1.4
date	98.02.16.09.37.10;	author kato;	state Exp;
branches;
next	1.3;

1.3
date	97.10.12.11.56.06;	author kato;	state Exp;
branches;
next	1.2;

1.2
date	97.08.17.05.13.23;	author kato;	state Exp;
branches;
next	1.1;

1.1
date	96.06.14.10.04.39;	author asami;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.06.14.10.04.39;	author asami;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	97.08.17.05.27.34;	author kato;	state Exp;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	97.11.04.03.15.23;	author kato;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Removed old boot loader.
@
text
@#	Makefile,v 1.4 1994/12/31 17:16:49 jkh Exp
#
# Makefile for NETBOOT
#
# Basic Options:
#	-DSECURE_BOOT	- Disable 'boot>' prompt completely
#	-DASK_BOOT	- Ask "Boot from Network (Y/N) ?" at startup
#	-DROMSIZE	- Size of EPROM - Must be set (even for .COM files)
#	-DRELOC		- Relocation address (usually 0x90000)
#
# NS8390 Options:
#	-DINCLUDE_WD	- Include Western Digital/SMC support
#	-DINCLUDE_NE	- Include NE1000/NE2000 support
#	-DINCLUDE_3COM  - Include 3c503 support
#       -D_3COM_USE_AUI - Disable transceiver on 3c503 by default
#	-DNE_BASE	- Base I/O address for NE1000/NE2000
#       -D_3COM_BASE    - Base I/O address for 3c503
#	-DWD_DEFAULT_MEM- Default memory location for WD/SMC cards
#	-DINCLUDE_EGY	- Include MELCO EGY support
#	-DINCLUDE_LGY	- Include MELCO LGY support
#	-DINCLUDE_ICM   - Include IF-2766 support
#	-DINCLUDE_SIC	- Include SIC supoort
#	-DED_BASE	- Base I/O address for NE1000/NE2000
#	-DSIC_DEFAULT_MEM- Default memory location for WD/SMC cards
# XXX nothing depends on this Makefile so you must run `make clean' after
# changing an option.
#

### options for PCI cards
###
#PCI_VENDOR=0x10ec
#PCI_DEVICE=0x8029
#PCI_CLASS=0x02,0x00,0x00

PROG=	nb8390.com nb8390.rom
# Order is very important on the SRCS line for this prog
SRCS=	start2.S main.c misc.c bootmenu.c rpc.c

BINMODE=	555
CFLAGS=		-O2 -DNFS -DROMSIZE=${ROMSIZE} -DRELOC=${RELOCADDR} -DASK_BOOT
CFLAGS+=	-DPC98
#CFLAGS += -DPCI -DPCI_VENDOR=${PCI_VENDOR} -DPCI_DEVICE=${PCI_DEVICE}
#CFLAGS += -DPCI_CLASS=${PCI_CLASS} -DASK_BOOT
#NS8390=		-DINCLUDE_WD -DWD_DEFAULT_MEM=0xD0000
#NS8390=	-DINCLUDE_NE
#NS8390+=	-DINCLUDE_3COM -D_3COM_BASE=0x300
NS8390=	-DINCLUDE_EGY -DNE_BASE=0xd0
CLEANFILES+=	netboot.com
CLEANFILES+=	makerom start2.ro 3c509.o ns8390.o
ROMLDFLAGS=	${LDFLAGS} -aout -N -T ${RELOCADDR} -e _start -nostdlib
NOSHARED=	YES
NOMAN=
SIZE=	size -aout
STRIP=
STRIPCMD=	strip -aout

ROMSIZE=16384
RELOCADDR=0x90000

.SUFFIXES:	.ro

.S.ro:
	${CC} ${CFLAGS} -DBOOTROM -o ${.TARGET} -c ${.IMPSRC}

build-tools: makerom

ns8390.o:	ns8390.c
	${CC} ${CFLAGS} $(NS8390) -o ${.TARGET} -c $<

makerom: makerom.c
	${CC} ${CFLAGS} -DROMSIZE=${ROMSIZE} ${LDFLAGS} -o ${.TARGET} \
	    ${.CURDIR}/makerom.c

nb8390.rom:	makerom start2.ro ${SRCS:N*.h:R:S/$/.o/g} ns8390.o
	${LD} ${ROMLDFLAGS} -o ${.TARGET} ${OBJS:S/start2.o/start2.ro/} ns8390.o
	${STRIPCMD} ${.TARGET}
	${SIZE} ${.TARGET}
	${.OBJDIR}/makerom ${.TARGET}

nb3c509.rom:	makerom start2.ro ${SRCS:N*.h:R:S/$/.o/g} 3c509.o
	${LD} ${ROMLDFLAGS} -o ${.TARGET} ${OBJS:S/start2.o/start2.ro/} 3c509.o
	${STRIPCMD} ${.TARGET}
	${SIZE} ${.TARGET}
	${.OBJDIR}/makerom ${.TARGET}

nb8390.com:	makerom start2.ro ${SRCS:N*.h:R:S/$/.o/g} ns8390.o
	${LD} ${ROMLDFLAGS} -o ${.TARGET}.tmp ${OBJS} ns8390.o
	${STRIPCMD} ${.TARGET}.tmp
	${SIZE} ${.TARGET}.tmp
	dd ibs=32 skip=1 if=${.TARGET}.tmp of=${.TARGET}
	rm -f ${.TARGET}.tmp

nb3c509.com:	start2.o ${SRCS:N*.h:R:S/$/.o/g} 3c509.o
	${LD} ${ROMLDFLAGS} -o ${.TARGET}.tmp ${OBJS} 3c509.o
	${STRIPCMD} ${.TARGET}.tmp
	${SIZE} ${.TARGET}.tmp
	dd ibs=32 skip=1 if=${.TARGET}.tmp of=${.TARGET}
	rm -f ${.TARGET}.tmp

# This force the creation of the "machine" symlink.  These objects are
# specially handled in this file, and thus can't be taken care of in
# ../Makefile.inc
3c509.o makerom ns8390.o start2.ro: machine

.include <bsd.prog.mk>
@


1.10
log
@Sync with sys/i386/boot/netboot/Makefile revision 1.22.
@
text
@@


1.9
log
@Sync with sys/i386/boot/netboot/Makefile revision 1.21.
@
text
@a38 1
BINDIR=		/usr/mdec
d50 1
a50 1
ROMLDFLAGS=	${LDFLAGS} -N -T ${RELOCADDR} -e _start -nostdlib
d53 1
d55 1
a55 4
STRIPCMD= strip -aout
SIZE=	size -aout
CFLAGS += -aout
LDFLAGS += -aout
@


1.8
log
@Sync with sys/i386/boot/netboot/Makefile revision 1.20.
@
text
@d54 2
a55 1
STRIP=	strip -aout
d79 1
a79 1
	${STRIP} ${.TARGET}
d85 1
a85 1
	${STRIP} ${.TARGET}
d91 1
a91 1
	${STRIP} ${.TARGET}.tmp
d98 1
a98 1
	${STRIP} ${.TARGET}.tmp
@


1.7
log
@Sync with sys/i386/boot/netboot/Makefile revision 1.19.
@
text
@d54 4
a57 1
STRIP=
d78 2
a79 2
	strip ${.TARGET}
	size ${.TARGET}
d84 2
a85 2
	strip ${.TARGET}
	size ${.TARGET}
d90 2
a91 2
	strip ${.TARGET}.tmp
	size ${.TARGET}.tmp
d97 2
a98 2
	strip ${.TARGET}.tmp
	size ${.TARGET}.tmp
@


1.6
log
@Sync with sys/i386/boot/netboot/Makefile, bootmenu.c, main.c and
ns8390.c revisions 1.18, 1.15, 1.22 and 1.13, respectiely.
@
text
@d51 1
a51 1
LDFLAGS+=	-N -T ${RELOCADDR} -e _start -nostdlib
d64 2
d70 2
a71 1
	${CC} ${CFLAGS} -o ${.TARGET} -DROMSIZE=${ROMSIZE} ${.CURDIR}/makerom.c
d74 1
a74 1
	${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS:S/start2.o/start2.ro/} ns8390.o
d80 1
a80 1
	${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS:S/start2.o/start2.ro/} 3c509.o
d86 1
a86 1
	${LD} ${LDFLAGS} -o ${.TARGET}.tmp ${OBJS} ns8390.o
d93 1
a93 1
	${LD} ${LDFLAGS} -o ${.TARGET}.tmp ${OBJS} 3c509.o
@


1.5
log
@Sync with following changes:
>   Added files:
>     sys/i386/boot        Makefile.inc
>  Revision  Changes    Path
>  1.63      +3 -12     src/sys/i386/boot/biosboot/Makefile
>  1.8       +1 -17     src/sys/i386/boot/kzipboot/Makefile
>  1.16      +6 -15     src/sys/i386/boot/netboot/Makefile
>  1.10      +3 -14     src/sys/i386/boot/rawboot/Makefile
@
text
@d6 1
d99 1
a99 1
3c509.o makerom ns8390.o start2.ro:	beforedepend
@


1.4
log
@Sync with sys/i386/boot/*/Makefile (Eivind's change: Make bootblock
building independent of /usr/include if relative includes are
available).
@
text
@a39 1

d48 1
a48 1
CLEANFILES+=	machine netboot.com
a54 6
.if exists(${.CURDIR}/../../../../include)
CFLAGS+= -nostdinc
CFLAGS+= -I${.OBJDIR} -I${.CURDIR}/../../../
CFLAGS+= -I${.CURDIR}/../../../../include
.endif

d95 4
a98 6
pre-compile:
.if !exists(${.OBJDIR}/machine)
	ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine
.endif

all:	pre-compile ${PROG}
@


1.3
log
@Synchronize with sys/i386/boot/netboot/Makefile revision 1.14.
@
text
@d40 1
d49 1
a49 1
CLEANFILES+=	netboot.com
d56 6
d102 6
@


1.2
log
@Synchronize with foolowing files in sys/i386/boot/netboot:

	1.12 Makefile
	1.14 bootmenu.c
	1.20 main.c
	1.3  makerom.c
	1.3  misc.c
	1.12 netboot.h
	1.11 ns8390.c
	1.1  ns8390.h
	1.3  rpc.c
	1.6  start2.S

Submitted by:	H. Nokubi <h-nokubi@@nmit.mt.nec.co.jp>
@
text
@d82 5
a86 4
	${LD} ${LDFLAGS} -o netboot.com ${OBJS} ns8390.o
	strip netboot.com
	size netboot.com
	dd ibs=32 skip=1 if=netboot.com of=${.TARGET}
d89 5
a93 4
	${LD} ${LDFLAGS} -o netboot.com ${OBJS} 3c509.o
	strip netboot.com
	size netboot.com
	dd ibs=32 skip=1 if=netboot.com of=${.TARGET}
@


1.1
log
@Initial revision
@
text
@d40 1
a40 2
#CFLAGS=		-O2 -DNFS -DROMSIZE=${ROMSIZE} -DRELOC=${RELOCADDR} -DASK_BOOT
CFLAGS=		-O2 -DNFS -DROMSIZE=${ROMSIZE} -DRELOC=${RELOCADDR} # -DASK_BOOT
a44 1
#NS8390=		-DINCLUDE_WD -DWD_DEFAULT_MEM=0xD0000
d47 1
a47 1
NS8390=	-DINCLUDE_LGY -DNE_BASE=0xd0
d64 1
a64 1
	${CC} $(CFLAGS) $(NS8390) -o ${.TARGET} -c $<
d67 1
a67 1
	${CC} -o ${.TARGET} -DROMSIZE=${ROMSIZE} ${.CURDIR}/makerom.c
@


1.1.1.1
log
@The PC98-specific files.

Ok'd by:	core
Submitted by:	FreeBSD(98) development team
@
text
@@


1.1.1.1.2.1
log
@MFC: synchronith with sys/i386/boot/netboot stuff.
@
text
@d40 2
a41 1
CFLAGS=		-O2 -DNFS -DROMSIZE=${ROMSIZE} -DRELOC=${RELOCADDR} -DASK_BOOT
d46 1
d49 1
a49 1
NS8390=	-DINCLUDE_EGY -DNE_BASE=0xd0
d66 1
a66 1
	${CC} ${CFLAGS} $(NS8390) -o ${.TARGET} -c $<
d69 1
a69 1
	${CC} ${CFLAGS} -o ${.TARGET} -DROMSIZE=${ROMSIZE} ${.CURDIR}/makerom.c
@


1.1.1.1.2.2
log
@Sync with sys/i386/boot/netboot/Makefile revision 1.9.2.4.

Submitted by:	H. Nokubi <h-nokubi@@nmit.tmg.nec.co.jp>
@
text
@d82 4
a85 5
	${LD} ${LDFLAGS} -o ${.TARGET}.tmp ${OBJS} ns8390.o
	strip ${.TARGET}.tmp
	size ${.TARGET}.tmp
	dd ibs=32 skip=1 if=${.TARGET}.tmp of=${.TARGET}
	rm -f ${.TARGET}.tmp
d88 4
a91 5
	${LD} ${LDFLAGS} -o ${.TARGET}.tmp ${OBJS} 3c509.o
	strip ${.TARGET}.tmp
	size ${.TARGET}.tmp
	dd ibs=32 skip=1 if=${.TARGET}.tmp of=${.TARGET}
	rm -f ${.TARGET}.tmp
@
