2019-07-05 19:44:28 +02:00
|
|
|
all: cos2000.img
|
|
|
|
|
|
|
|
cos2000.img:
|
|
|
|
(dd if=/dev/zero of=cos2000.img count=2880 bs=512)
|
|
|
|
(mkfs.msdos -F 12 -n "COS2000" cos2000.img)
|
2019-07-13 13:33:26 +02:00
|
|
|
(fusermount ./mnt -u;mkdir -p ./mnt;rm -rf ./mnt/*;fusefat cos2000.img ./mnt -o rw+)
|
2019-07-05 19:44:28 +02:00
|
|
|
(cp ../noyau/systeme.sys ./mnt/)
|
|
|
|
(cp ../noyau/systeme.ini ./mnt/)
|
|
|
|
(cp ../programs/*.ce ./mnt/)
|
|
|
|
(cp ../programs/*.rip ./mnt/)
|
|
|
|
(cp ../lib/*.lib ./mnt/)
|
2019-07-13 13:33:26 +02:00
|
|
|
(sync)
|
2019-07-05 19:44:28 +02:00
|
|
|
(fusermount ./mnt -u)
|
|
|
|
(dd if=../boot/boot12.bin of=cos2000.img seek=0 count=1 conv=notrunc;sync)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.img
|