|
|
- PNGFILES := $(shell find png/sprite -type f -name '*.png')
- IMGFILES := $(PNGFILES:%.png=%.2bpp)
-
- COLLFILES := $(shell find png/map -type f -name '*_coll.png')
- BUILT_COLLFILES := $(COLLFILES:%_coll.png=%.s)
-
- SFILES := $(shell find src -type f -name '*.s')
- OFILES := $(SFILES:%.s=%.o)
-
- .PHONY: clean
-
- is.gb is.gb.sym: $(IMGFILES) $(OFILES) $(BUILT_COLLFILES)
- rgblink -o $@ -n $@.sym $(OFILES)
- rgbfix -v $@
-
- $(OFILES): $(IMGFILES)
-
- %.o: %.s
- rgbasm -i inc -o $@ $<
-
- png/map/%.s: png/map/%_coll.png
- python scripts/generate_coll_map.py -o $@ $<
-
- png/sprite/%.2bpp: png/sprite/%.png
- rgbgfx -o $@ $<
-
- clean:
- rm -f is.gb is.gb.sym $(IMGFILES) $(OFILES) $(BUILT_COLLFILES)
|