summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMoritz Ruge <ruge.moritz@gmail.com>2026-08-06 13:57:18 +0200
committerMoritz Ruge <ruge.moritz@gmail.com>2026-08-06 16:36:08 +0200
commit6fd20124218af64fd4c56ba5a62bcec6ab9c2cb3 (patch)
tree56cfe504f2c2dfbfcb30b036e10b32e3f435fc49 /Makefile
parent9f6786eb6276aeb8ab4d4a7969b1fc9874336e86 (diff)
init 2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1a86334
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+CC = gcc
+
+SRC = main.c \
+ glad.c
+TARGET = main
+CFLAGS= -Wall -Wextra
+LDFLAGS = -lglfw3 -lGL -lX11 -lpthread -lXrandr -lXi -ldl -lm
+
+all: clean $(TARGET)
+
+$(TARGET):
+ $(CC) $(SRC) $(CFLAGS) $(LDFLAGS) -o $(TARGET)
+
+clean:
+ rm -f $(TARGET)