From 59fb0ffaaa9a7069e71466349181f8e8232e9190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Le=20Calvar?= <theo.le-calvar@imt-atlantique.fr> Date: Fri, 28 Feb 2025 15:00:19 +0100 Subject: [PATCH] update Makefile to have run & debug targets --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42f1d82..9c686e4 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ CPP_Linux=g++ LD_Linux=ld COMPOP_Linux=-fno-stack-protector -m32 -Wno-narrowing LIEUR_Linux=-m elf_i386 +QEMU=qemu-system-i386 #------------------- ##POUR WINDOWS @@ -61,4 +62,16 @@ clean: $(DELE) build/all-o/*.o $(DELE) *.s $(DELE) build/boot/*.elf - + +run: $(KERNEL_OBJ) + $(QEMU) -display curses -net nic,model=ne2k_isa -net user,tftp=./build/boot -cdrom ./build/boot/grub.iso + +run_gui: $(KERNEL_OBJ) + $(QEMU) -net nic,model=ne2k_isa -net user,tftp=./build/boot -cdrom ./build/boot/grub.iso + +debug: $(KERNEL_OBJ) + $(QEMU) -display curses -S -s -net nic,model=ne2k_isa -net user,tftp=./build/boot -cdrom ./build/boot/grub.iso + +debug_gui: $(KERNEL_OBJ) + $(QEMU) -S -s -net nic,model=ne2k_isa -net user,tftp=./build/boot -cdrom ./build/boot/grub.iso + -- GitLab