X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/blobdiff_plain/9b01c6d143b14bc040f4ca7746cf926a4913cf92..9213edc199c093cde09fd5fa4c642017ca1c6501:/Makefile diff --git a/Makefile b/Makefile index 9c4db25..3117265 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,15 @@ SRC_DIR := . -PROGRAMS := prototype +PROGRAMS := prototype lifeboot CC := gcc -CFLAGS := -Wall -Wextra -Werror -I. +CFLAGS := -Wall -Wextra -I. -build: $(PROGRAMS) +lifeboot: lifeboot.asm + nasm lifeboot.asm + +all: $(PROGRAMS) + +run: lifeboot + qemu-system-x86_64 -drive file=lifeboot,format=raw format: find $(SRC_DIR) -iname '*.[hc]' | xargs clang-format -i --style=GNU @@ -11,4 +17,4 @@ format: clean: rm -rf $(PROGRAMS) *.o -.PHONY: build format clean +.PHONY: all run format clean