summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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