From: phfr24 Date: Sun, 2 Nov 2025 17:48:05 +0000 (-0300) Subject: add Makefile X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/commitdiff_plain/9b01c6d143b14bc040f4ca7746cf926a4913cf92?ds=sidebyside;hp=535076b839d14aeb4502b7b8479dcb6d3eb51cf0 add Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9c4db25 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +SRC_DIR := . +PROGRAMS := prototype +CC := gcc +CFLAGS := -Wall -Wextra -Werror -I. + +build: $(PROGRAMS) + +format: + find $(SRC_DIR) -iname '*.[hc]' | xargs clang-format -i --style=GNU + +clean: + rm -rf $(PROGRAMS) *.o + +.PHONY: build format clean