X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/blobdiff_plain/9b01c6d143b14bc040f4ca7746cf926a4913cf92..7683c065919d1f7d21a6dc47e7c71268762a5c0a:/Makefile?ds=inline diff --git a/Makefile b/Makefile index 9c4db25..16f62dd 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,20 @@ SRC_DIR := . -PROGRAMS := prototype +PROGRAMS := prototype lifeboot CC := gcc -CFLAGS := -Wall -Wextra -Werror -I. +CFLAGS := -Wall -Wextra -I. build: $(PROGRAMS) +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 clean: rm -rf $(PROGRAMS) *.o -.PHONY: build format clean +.PHONY: build run format clean