summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-05-02 14:55:03 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-05-02 14:55:03 -0300
commit2416783679eafe35aea7af15bf1308a6895e251a (patch)
treef3d08269b9dff0eeedff8312e4b96b99169652ff /Makefile
parentd2d0886cf770488d1b4890a3a414bbf983e784a6 (diff)
mapa arbitrário a partir de uma imagem
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb8837c..b34cf93 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ all: game
clean:
rm -f game
rm -f $(OBJ)
+ rm -f map.c
game: $(OBJ)
$(CC) $^ `pkg-config --libs sdl3` -lm -o $@
@@ -16,4 +17,7 @@ game: $(OBJ)
%.o: %.c
$(CC) $< `pkg-config --cflags sdl3` -c -o $@
+map.c: map.png img2map
+ ./img2map map.png > map.c
+
.PHONY: all clean