diff --git a/Makefile b/Makefile index 42f1d8222d0b2a1d7099cf7fd5a3960d88881461..9c686e426a6bcc4eef355529fbd6c4ec6921efd6 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 +