Generate rconfig.sys from distfile

*.sys files are affected by make clean.
This commit is contained in:
Nero 2019-09-25 20:49:30 +00:00
parent 2c2720323c
commit df8e47803a
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
FLOPPY = 360
PROGRAMS = $(patsubst %.asm,%.com,$(wildcard programs/*.asm))
DISTFILES = rdos.sys kernel/rconfig.sys $(PROGRAMS)
DISTFILES = rdos.sys rconfig.sys $(PROGRAMS)
ROMS =
QEMU_ARCH = $(shell uname -m)
@ -28,6 +28,9 @@ default: rdos.sys
rdos.sys: kernel/*.asm lib/*.asm
nasm -s -o $@ -l kernel.lst -I lib -I kernel kernel/main.asm
rconfig.sys: config.txt
cp $< $@
debug.rom: debug/*.asm lib/*.asm
nasm -s -o $@ -I lib -I debug debug/main.asm && scripts/fix-rom.sh $@