aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-13 23:29:50 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-13 23:29:50 +0100
commit04af7fbd7891b4be883be8231d8fc0ae11a763e7 (patch)
treedadb4bd75c59335ba68ec157bea8d3460351fa8b /src/Makefile
parentd6cff5d9a6056a4cd727f3e9dd6301a78169d246 (diff)
downloadgold-mine-run-04af7fbd7891b4be883be8231d8fc0ae11a763e7.tar.gz
gold-mine-run-04af7fbd7891b4be883be8231d8fc0ae11a763e7.zip
Map renderer
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 4852b93..50b1179 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,8 +6,11 @@ LDFLAGS := -s
IMGS := $(wildcard ../data/*.png)
IMG_OBJS := $(IMGS:../data/%.png=%.o)
+MAPS := ../data/stage.json
+MAP_OBJS := $(MAPS:../data/%.json=%.o)
+
SRCS := $(wildcard *.c)
-OBJS := $(SRCS:.c=.o) $(IMG_OBJS) palette.o
+OBJS := $(SRCS:.c=.o) $(IMG_OBJS) palette.o $(MAP_OBJS)
all: $(BIN)
@@ -23,6 +26,9 @@ palette.o: ../data/sprites.png
$(IMG_OBJS): %.o: ../data/%.png
../tools/pngpix.py $< $@
+$(MAP_OBJS): %.o: ../data/%.json
+ ../tools/map.py $< $@
+
clean:
rm -f $(BIN) *.o Makefile.deps