30 lines
693 B
Makefile
30 lines
693 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 $@ 720
|
|
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
|