summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-04-26 09:00:00 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-04-26 09:00:00 -0300
commit232567e3663a6e9f2d300963b4c3fd46a0b83097 (patch)
treef15cfc448da9c5fe102356cc27c1d9ef9d452e49
parent658dd23ba0e7114ceee0c78fb769f31f0aeeee0a (diff)
adicionado Makefile
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
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