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.

21 lines
405 B

3 years ago
  1. PNGFILES := $(shell find png -type f -name '*.png')
  2. IMGFILES := $(PNGFILES:%.png=%.2bpp)
  3. SFILES := $(shell find src -type f -name '*.s')
  4. OFILES := $(SFILES:%.s=%.o)
  5. .PHONY: clean
  6. is.gb is.gb.sym: $(IMGFILES) $(OFILES)
  7. rgblink -o $@ -n $@.sym $(OFILES)
  8. rgbfix -v $@
  9. $(OFILES): $(IMGFILES)
  10. %.o: %.s
  11. rgbasm -o $@ $<
  12. %.2bpp: %.png
  13. rgbgfx -o $@ $<
  14. clean:
  15. rm -f is.gb is.gb.sym $(IMGFILES) $(OFILES)