|
@ -1,3 +1,5 @@ |
|
|
|
|
|
PYTHON ?= python |
|
|
|
|
|
|
|
|
# Graphics
|
|
|
# Graphics
|
|
|
SPRITE_PNG := $(shell find png/sprite -type f -name '*.png') |
|
|
SPRITE_PNG := $(shell find png/sprite -type f -name '*.png') |
|
|
|
|
|
|
|
@ -26,10 +28,10 @@ $(OFILES): $(SPRITE_2BPP) |
|
|
rgbasm -i inc -o $@ $< |
|
|
rgbasm -i inc -o $@ $< |
|
|
|
|
|
|
|
|
png/map/%.s png/map/%.inc: png/map/%.png png/map/%_coll.png |
|
|
png/map/%.s png/map/%.inc: png/map/%.png png/map/%_coll.png |
|
|
python scripts/generate_map.py $< |
|
|
|
|
|
|
|
|
$(PYTHON) scripts/generate_map.py $< |
|
|
|
|
|
|
|
|
png/sprite/%.2bpp: png/sprite/%.png |
|
|
png/sprite/%.2bpp: png/sprite/%.png |
|
|
rgbgfx -o $@ $< |
|
|
rgbgfx -o $@ $< |
|
|
|
|
|
|
|
|
clean: |
|
|
clean: |
|
|
rm -f is.gb is.gb.sym $(OFILES) $(MAP_S) $(MAP_INC) $(SPRITE_2BPP) |
|
|
|
|
|
|
|
|
rm -f is.gb is.gb.sym $(OFILES) $(MAP_S) $(MAP_INC) $(SPRITE_2BPP) |