X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/blobdiff_plain/b18225d8568d8f36da6109113621a001a627da1f..HEAD:/Makefile diff --git a/Makefile b/Makefile index 6ae7534..c3f5556 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,14 @@ -SRC_DIR := . -PROGRAMS := prototype lifeboot -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) -lifeboot: - nasm lifeboot.asm - -run: - qemu-system-x86_64 -drive file=lifeboot,format=raw - -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 run format clean +.PHONY: run clean