X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/blobdiff_plain/9b01c6d143b14bc040f4ca7746cf926a4913cf92..58bca448272b36192954e96b0b060f9c245b603b:/Makefile diff --git a/Makefile b/Makefile index 9c4db25..c3f5556 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,14 @@ -SRC_DIR := . -PROGRAMS := prototype -CC := gcc -CFLAGS := -Wall -Wextra -Werror -I. +SRC := lifeboot.asm +BIN := boot.bin +QEMU := qemu-system-i386 -build: $(PROGRAMS) +$(BIN): $(SRC) + nasm $(SRC) -f bin -o $(BIN) -format: - find $(SRC_DIR) -iname '*.[hc]' | xargs clang-format -i --style=GNU +run: $(BIN) + $(QEMU) -drive file=$(BIN),format=raw clean: - rm -rf $(PROGRAMS) *.o + rm -f $(BIN) -.PHONY: build format clean +.PHONY: run clean