1
0
Fork 0

Make tweaks

main
Mark 2024-12-12 08:53:55 -08:00
parent c74815d4bd
commit 7b4a5fabb4
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
1 changed files with 12 additions and 3 deletions

View File

@ -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 \