설명 없음

icons.makefile 785B

1234567891011121314151617181920212223242526272829
  1. AS = @arm-none-eabi-as
  2. LD = @arm-none-eabi-ld
  3. AR = @arm-none-eabi-ar
  4. GRIT = @grit
  5. GFX_BUILD_DIR = gfx_build
  6. ICON_AR = object/pkmn_icons.a
  7. I_ASSET_ROOT = sots-private/assets
  8. ICON_FILES = $(wildcard $(I_ASSET_ROOT)/pkmn_icons/*.png)
  9. OBJ_FILES = $(addprefix $(GFX_BUILD_DIR)/icons/,$(notdir $(ICON_FILES:.png=.o)))
  10. all: $(ICON_AR)
  11. .PHONY: clean
  12. clean:
  13. rm -f $(ICON_AR) $(GFX_BUILD_DIR)/icons/*
  14. $(ICON_AR): $(OBJ_FILES)
  15. @echo -e "\e[1;32mCreating archive $@\e[0m"
  16. $(AR) rcs $@ $^
  17. $(GFX_BUILD_DIR)/icons/%.o: $(GFX_BUILD_DIR)/icons/%.s
  18. @echo -e "\e[32mAssembling $<\e[0m"
  19. $(AS) -o $@ $<
  20. $(GFX_BUILD_DIR)/icons/%.s: $(I_ASSET_ROOT)/pkmn_icons/%.png
  21. @echo -e "\e[34mProcessing image $<\e[0m"
  22. $(GRIT) $< -fts -fh! -g -gB 4 -gt -gz! -m! -p! -s icon_$(notdir $(basename $<)) -o $@