| 123456789101112131415161718192021222324252627282930313233 | # disable kvm to debug triple faultsQEMU_ARGS=-drive file=build/boot.img,format=raw -no-reboot -no-shutdown -enable-kvm #-d cpu_reset,int.PHONY: runrun: build	qemu-system-i386 $(QEMU_ARGS) -display curses -S -s.PHONY: srunsrun: build	qemu-system-i386 $(QEMU_ARGS) -display none -S -s -serial mon:stdio.PHONY: nativerunnativerun: build	qemu-system-i386 $(QEMU_ARGS) -display none -serial mon:stdio.PHONY: configureconfigure:	cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug	cp build/compile_commands.json ..PHONY: buildbuild:	cmake --build build --target boot.img.PHONY: cleanclean:	-rm -rf build	-rm compile_commands.json.PHONY: debugdebug:	gdb --symbols=build/kernel.out --init-eval-command 'set pagination off' --init-eval-command 'target remote:1234' --eval-command 'hbr kernel_main' --eval-command 'c'build/boot.vdi: build/boot.img	-rm build/boot.vdi	VBoxManage convertfromraw $< $@ --format VDI
 |