From 04af7fbd7891b4be883be8231d8fc0ae11a763e7 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 13 Jun 2023 23:29:50 +0100 Subject: Map renderer --- src/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Makefile') 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 -- cgit v1.2.3