diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-13 23:29:50 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-13 23:29:50 +0100 |
commit | 04af7fbd7891b4be883be8231d8fc0ae11a763e7 (patch) | |
tree | dadb4bd75c59335ba68ec157bea8d3460351fa8b /src/Makefile | |
parent | d6cff5d9a6056a4cd727f3e9dd6301a78169d246 (diff) | |
download | gold-mine-run-04af7fbd7891b4be883be8231d8fc0ae11a763e7.tar.gz gold-mine-run-04af7fbd7891b4be883be8231d8fc0ae11a763e7.zip |
Map renderer
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 8 |
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 |