aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2024-08-20 21:30:13 +0200
committerschererleander <leander@schererleander.de>2024-08-20 21:31:54 +0200
commitf8697ab92aae42d6b4103ac04e152cfa110c646f (patch)
tree04fe2857cc9ae2cdb2d0a4c8382fab28a12122af /Makefile
parent3227b015f4d7e14fa501b8dadd163063fda247ba (diff)
initial commit
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