Skip to content
Snippets Groups Projects
Commit c84d38d0 authored by Théo Le Calvar's avatar Théo Le Calvar
Browse files

update Makefile to have run & debug targets

parent fabb6073
Branches
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ CPP_Linux=g++ ...@@ -15,6 +15,7 @@ CPP_Linux=g++
LD_Linux=ld LD_Linux=ld
COMPOP_Linux=-fno-stack-protector -m32 COMPOP_Linux=-fno-stack-protector -m32
LIEUR_Linux=-m elf_i386 LIEUR_Linux=-m elf_i386
QEMU=qemu-system-i386
#------------------- #-------------------
##POUR WINDOWS ##POUR WINDOWS
...@@ -77,8 +78,17 @@ clean: ...@@ -77,8 +78,17 @@ clean:
$(DELE) *.s $(DELE) *.s
$(DELE) build/boot/*.elf $(DELE) build/boot/*.elf
run: run: $(KERNEL_OBJ)
cd build/boot && qemu -no-kvm -M isapc -L "/usr/share/qemu" -net nic,model=ne2k_isa -net user -tftp ./ -cdrom grub.iso -soundhw pcspk -m 4 $(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
show: show:
@echo "objects:$(OBJECTS)" @echo "objects:$(OBJECTS)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment