ordos/Makefile
2021-09-11 20:00:40 +03:00

30 lines
701 B
Makefile

DOSBOX=dosbox -conf dosbox-build.conf -exit
ordos.img: BOOT.BIN IO.SYS ORDOS.SYS COMMAND.COM debug.com edlin.com exe2bin.exe link.exe masm.exe
rm -f ordos.img
mkfs.fat -C $@ -M 0xff 320
rw -I 0x7c00 -i BOOT.BIN -o $@ -c 512
mcopy -i $@ IO.SYS ::
mcopy -i $@ ORDOS.SYS ::
mcopy -i $@ COMMAND.COM ::
mcopy -i $@ debug.com ::
mcopy -i $@ edlin.com ::
mcopy -i $@ exe2bin.exe ::
mcopy -i $@ link.exe ::
mcopy -i $@ masm.exe ::
mcopy -i $@ LICENSE ::
BOOT.BIN: boot.asm
$(DOSBOX) mk-boot.bat
IO.SYS: io.asm
$(DOSBOX) mk-io.bat
ORDOS.SYS: msdos.asm stddos.asm
$(DOSBOX) mk-ordos.bat
COMMAND.COM: command.asm
$(DOSBOX) mk-comma.bat
clean:
rm -f ordos.img *.OBJ *.EXE *.COM *.BIN *.SYS