cos2000v1/makefile

53 lines
903 B
Makefile
Raw Normal View History

2019-07-09 18:30:00 +02:00
all: boot/boot12.bin lib/3d.lib noyau/systeme.sys programs/commande.ce
sync
install:
2019-07-09 18:30:00 +02:00
(sudo apt-get install fasm qemu fusefat cgdb)
clean:
make -C final clean
2019-07-09 18:30:00 +02:00
make -C boot clean
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
view:
(hexdump -C ./final/cos2000.img|head -c10000)
debug-boot: all copy qemu-debug
(sleep 2;cgdb -x ./debug/boot.txt)
debug-loader: all copy qemu-debug
(sleep 2;cgdb -x ./debug/loader.txt)
debug-system: all copy qemu-debug
(sleep 2;cgdb -x ./debug/system.txt)
qemu-debug:
(qemu-system-i386 -m 1G -fda ./final/cos2000.img -s -S &)
qemu:
(qemu-system-i386 -m 1G -fda ./final/cos2000.img -s)
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