2019-07-09 18:30:00 +02:00
|
|
|
all: boot/boot12.bin lib/3d.lib noyau/systeme.sys programs/commande.ce
|
2019-07-05 19:44:28 +02:00
|
|
|
sync
|
|
|
|
|
|
|
|
install:
|
2019-07-14 12:47:14 +02:00
|
|
|
(sudo apt-get install fasm qemu fusefat gdb)
|
2019-07-05 19:44:28 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
make -C final clean
|
2019-07-09 18:30:00 +02:00
|
|
|
make -C boot clean
|
2019-07-05 19:44:28 +02:00
|
|
|
make -C lib clean
|
|
|
|
make -C noyau clean
|
|
|
|
make -C programs clean
|
|
|
|
sync
|
|
|
|
|
|
|
|
backup: clean
|
|
|
|
(tar cf - . | gzip -f - > ../backup.tar.gz)
|
|
|
|
|
|
|
|
copy:
|
|
|
|
make -C final
|
|
|
|
|
|
|
|
test: all copy qemu
|
|
|
|
|
2019-07-13 13:33:26 +02:00
|
|
|
view: final/cos2000.img
|
2019-07-05 19:44:28 +02:00
|
|
|
(hexdump -C ./final/cos2000.img|head -c10000)
|
|
|
|
|
2019-07-13 13:33:26 +02:00
|
|
|
view2: boot/boot12.bin
|
|
|
|
(objdump -D -b binary -mi386 -Maddr16,data16 ./boot/boot12.bin)
|
|
|
|
|
2019-07-13 20:49:22 +02:00
|
|
|
debug: debug-system
|
|
|
|
|
|
|
|
redebug: clean debug
|
|
|
|
|
2019-07-05 19:44:28 +02:00
|
|
|
debug-boot: all copy qemu-debug
|
2019-07-14 11:26:53 +02:00
|
|
|
(sleep 2;gdb -ix ./debug/gdb_init_real_mode.txt -x ./debug/boot.txt)
|
2019-07-05 19:44:28 +02:00
|
|
|
|
|
|
|
debug-system: all copy qemu-debug
|
2019-07-14 11:26:53 +02:00
|
|
|
(sleep 2;gdb -ix ./debug/gdb_init_real_mode.txt -x ./debug/system.txt)
|
2019-07-05 19:44:28 +02:00
|
|
|
|
|
|
|
qemu-debug:
|
2019-07-13 20:49:22 +02:00
|
|
|
(killall qemu-system-i386;qemu-system-i386 -m 1G -fda ./final/cos2000.img -s -S &)
|
2019-07-05 19:44:28 +02:00
|
|
|
|
|
|
|
qemu:
|
2019-07-13 20:49:22 +02:00
|
|
|
(killall qemu-system-i386;qemu-system-i386 -m 1G -fda ./final/cos2000.img -s)
|
2019-07-05 19:44:28 +02:00
|
|
|
|
|
|
|
noyau/systeme.sys:
|
|
|
|
make -C noyau
|
|
|
|
|
|
|
|
boot/boot12.bin:
|
|
|
|
make -C boot
|
|
|
|
|
|
|
|
lib/3d.lib:
|
|
|
|
make -C lib
|
2019-07-09 18:30:00 +02:00
|
|
|
|
|
|
|
programs/commande.ce:
|
|
|
|
make -C programs
|
|
|
|
|