X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/blobdiff_plain/9b01c6d143b14bc040f4ca7746cf926a4913cf92..d2d37470bcaa3af3a9e7bda266c6884b13e9afda:/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