cos2000v2/final/makefile

14 lines
386 B
Makefile
Raw Normal View History

all: cos2000.img
cos2000.img:
(dd if=/dev/zero of=cos2000.img count=2880 bs=512)
(mkfs.msdos -F 12 -n "COS2000" cos2000.img;mkdir ./mnt || true)
(mount -t vfat cos2000.img ./mnt -o rw)
(cp ../boot/loader.sys ./mnt/)
(cp ../system/system.sys ./mnt/;sync)
(umount ./mnt)
(dd if=../boot/boot12.bin of=cos2000.img seek=0 count=1 conv=notrunc;sync)
clean:
rm -f *.img