From 6b8af9cf83851c075c6c9514b1deaa931c2b19a4 Mon Sep 17 00:00:00 2001 From: Thomas Guillermo Albers Raviola Date: Fri, 16 Jan 2026 23:02:32 +0100 Subject: Initial commit --- 08-august/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 08-august/Makefile (limited to '08-august/Makefile') diff --git a/08-august/Makefile b/08-august/Makefile new file mode 100644 index 0000000..4619f3c --- /dev/null +++ b/08-august/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) -- cgit v1.2.3