From 7b4a5fabb430c868ff76b2279baae56a24515fc1 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 12 Dec 2024 08:53:55 -0800 Subject: [PATCH] Make tweaks --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 893a7e5..c75189e 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,24 @@ BUILD_DIR=./build export QEMU?=qemu-system-x86_64 +# Default rule +.PHONY: default +default: bios -.PHONY: bios -bios: $(BUILD_DIR)/bios.bin $(BUILD_DIR)/bios.img - +# Remove all build files .PHONY: clean clean: rm -drf $(BUILD_DIR) cd bootloader; cargo clean +# Make _everything_ +.PHONY: all +all: bios + +# Make bios bootloader +.PHONY: bios +bios: $(BUILD_DIR)/bios.bin $(BUILD_DIR)/bios.img + qemu: $(BUILD_DIR)/bios.img $(QEMU) \ -d cpu_reset \