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 \