From 232567e3663a6e9f2d300963b4c3fd46a0b83097 Mon Sep 17 00:00:00 2001 From: esquizo Date: Sun, 26 Apr 2026 09:00:00 -0300 Subject: adicionado Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..51b96ad --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +OBJ=\ + sdl3_main.o\ + physics.o\ + map.o + +all: game + +clean: + rm -f game + rm -f $(OBJ) + +game: $(OBJ) + $(CC) $^ `pkg-config --libs sdl3` -lm -o $@ + +%.o: %.c + $(CC) $< `pkg-config --cflags sdl3` -c -o $@ + +.PHONY: all clean -- cgit v1.2.3