Make tweaks
parent
c74815d4bd
commit
7b4a5fabb4
15
Makefile
15
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 \
|
||||
|
|
Loading…
Reference in New Issue