-run: $(BUILD_DIR)/$(OS_ISO)
- @qemu-system-i386 $(QEMU_OPTIONS)
- @sleep 1
- @telnet 127.0.0.1 $(QEMU_MON_PORT)
-
-debug-qemu: all-debug
- @i686-elf-objcopy --only-keep-debug $(kbin) $(kbuild_dir)/kernel.dbg
- @qemu-system-i386 $(call get_qemu_options,$(kimg))
- @sleep 1
- @QMPORT=$(QEMU_MON_PORT) gdb $(kbin) -ex "target remote localhost:1234"
-
-debug-qemu-vscode: all-debug
- @qemu-system-i386 $(call get_qemu_options,$(kimg))
- @sleep 0.5
- @telnet 127.0.0.1 $(QEMU_MON_PORT)
-
-debug-bochs: all-debug
- @bochs -q -f bochs.cfg
-
-debug-metal:
- @printf "@cmc" > $(PORT)
- @gdb -s $(kbuild_dir)/kernel.dbg -ex "target remote $(PORT)"
\ No newline at end of file
+export CFLAGS=-include $(lbuild_config_h)
+unit-test: $(lbuild_config_h)
+ @$(MAKE) $(MKFLAGS) -C tests/units run
\ No newline at end of file