aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..714e0f9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+CC = gcc
+
+SRC = src/main.c
+
+CFLAGS = -g -I/opt/homebrew/include -L/opt/homebrew/lib -lraylib
+
+OUT_DIR = build
+
+OUT = $(OUT_DIR)/main
+
+all: $(OUT)
+
+$(OUT_DIR):
+ mkdir -p $(OUT_DIR)
+
+$(OUT): $(OUT_DIR) $(SRC)
+ $(CC) $(CFLAGS) $(SRC) -o $(OUT)
+
+clean:
+ rm -rf $(OUT_DIR)
+
+.PHONY: all clean