aboutsummaryrefslogtreecommitdiff
path: root/07-july/Makefile
diff options
context:
space:
mode:
authorThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-01-16 23:02:32 +0100
committerThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-01-16 23:02:32 +0100
commit6b8af9cf83851c075c6c9514b1deaa931c2b19a4 (patch)
tree428986b49c32e21d3f7a3c2dfa41858ae0153209 /07-july/Makefile
Initial commit
Diffstat (limited to '07-july/Makefile')
-rw-r--r--07-july/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/07-july/Makefile b/07-july/Makefile
new file mode 100644
index 0000000..4619f3c
--- /dev/null
+++ b/07-july/Makefile
@@ -0,0 +1,20 @@
+SRC=$(wildcard src/*.c)\
+ $(wildcard src/math/*.c)\
+ $(wildcard src/graphics/*.c)\
+ $(wildcard src/renderer/*.c)\
+ $(wildcard src/util/*.c)
+OBJ=$(SRC:%.c=%.o)
+TARGET=game
+LDFLAGS=-lSDL2 -lGL -lGLEW -lm -lSDL2_image
+
+%.o : %.c
+ $(CC) -c $< -o $@
+
+$(TARGET) : $(OBJ)
+ $(CC) $(OBJ) -o $(TARGET) $(LDFLAGS)
+
+all : $(TARGET)
+
+.PHONY : clean
+clean:
+ rm -rf $(TARGET) $(OBJ)