You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
PNGFILES := $(shell find png -type f -name '*.png')
|
|
IMGFILES := $(PNGFILES:%.png=%.2bpp)
|
|
|
|
SFILES := $(shell find src -type f -name '*.s')
|
|
OFILES := $(SFILES:%.s=%.o)
|
|
|
|
.PHONY: clean
|
|
|
|
is.gb is.gb.sym: $(IMGFILES) $(OFILES)
|
|
rgblink -o $@ -n $@.sym $(OFILES)
|
|
rgbfix -v $@
|
|
|
|
$(OFILES): $(IMGFILES)
|
|
|
|
%.o: %.s
|
|
rgbasm -i inc -o $@ $<
|
|
|
|
%.2bpp: %.png
|
|
rgbgfx -o $@ $<
|
|
|
|
clean:
|
|
rm -f is.gb is.gb.sym $(IMGFILES) $(OFILES)
|