diff options
| author | Thomas Guillermo Albers Raviola <thomas@thomaslabs.org> | 2026-01-16 23:02:32 +0100 |
|---|---|---|
| committer | Thomas Guillermo Albers Raviola <thomas@thomaslabs.org> | 2026-01-16 23:02:32 +0100 |
| commit | 6b8af9cf83851c075c6c9514b1deaa931c2b19a4 (patch) | |
| tree | 428986b49c32e21d3f7a3c2dfa41858ae0153209 /08-august/Makefile | |
Initial commit
Diffstat (limited to '08-august/Makefile')
| -rw-r--r-- | 08-august/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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) |
