Added makefiles

This commit is contained in:
2024-12-11 18:21:14 -08:00
parent 1fd7b7c55f
commit bebed12bf4
3 changed files with 52 additions and 0 deletions

12
make/bios Normal file
View File

@ -0,0 +1,12 @@
BIOS_SRC = ./bios
STAGE3_BIN = $(BUILD_DIR)/stage3.elf
$(BUILD_DIR)/bootloader.bin: $(wildcard $(BIOS_SRC)/*.asm) $(STAGE3_BIN)
@mkdir -p "$(BUILD_DIR)"
nasm \
-f bin \
-o "$@" \
-l "$@.lst" \
-D STAGE3="$(STAGE3_BIN)" \
-i "$(BIOS_SRC)" \
"$(BIOS_SRC)/bootloader.asm"