]> wirehaze git hosting - lifeboot.git/commitdiff

wirehaze git hosting

add Makefile
authorphfr24 <phfr24@inf.ufpr.br>
Sun, 2 Nov 2025 17:48:05 +0000 (14:48 -0300)
committerphfr24 <phfr24@inf.ufpr.br>
Sun, 2 Nov 2025 17:48:05 +0000 (14:48 -0300)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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