# -DASK_BOOT - Ask "Boot from Network (Y/N) ?" at startup
# -DSMALL_ROM - Compile for 8K ROMS
# -DROMSIZE - Size of EPROM - Must be set (even for .COM files)
# -DRELOC - Relocation address (usually 0x90000)
CFLAGS
=-O2
-DNFS
-DROMSIZE
=$(ROMSIZE
) -DRELOC
=$(RELOCADDR
)
COBJS
=main.o misc.o wd80x3.o bootmenu.o
all: netboot.com netboot.rom
cc -o makerom
-DROMSIZE
=$(ROMSIZE
) makerom.c
netboot.com
: $(COBJS
) $(SSRCS
)
ld -e _start
-T
$(RELOCADDR
) -N
$(SOBJS
) $(COBJS
)
dd ibs
=32 skip
=1 <a.out
>netboot.com
netboot.rom
: $(COBJS
) $(SSRCS
) makerom
cc -c
$(CFLAGS
) -DBOOTROM
$(SSRCS
)
ld -e _start
-T
$(RELOCADDR
) -N
$(SOBJS
) $(COBJS
)
dd ibs
=32 skip
=1 <a.out
>netboot.rom
mount
-t pcfs
/dev
/fd0a
/msdos
cp netboot.com
/msdos
/netboot.com
cp netboot.rom
/msdos
/netboot.rom
rm -f
$(COBJS
) $(SOBJS
) *.s netboot.com netboot.rom a.out makerom