Ei kuvausta

icons.makefile 619B

123456789101112131415161718192021222324
  1. AS = arm-none-eabi-as
  2. LD = arm-none-eabi-ld
  3. GFX_BUILD_DIR = gfx_build
  4. ICON_AR = object/pkmn_icons.a
  5. I_ASSET_ROOT = sots-private/assets
  6. ICON_FILES = $(wildcard $(I_ASSET_ROOT)/pkmn_icons/*.png)
  7. OBJ_FILES = $(addprefix $(GFX_BUILD_DIR)/icons/,$(notdir $(ICON_FILES:.png=.o)))
  8. all: $(ICON_AR)
  9. .PHONY: clean
  10. clean:
  11. rm -f $(ICON_AR) $(GFX_BUILD_DIR)/icons/*
  12. $(ICON_AR): $(OBJ_FILES)
  13. $(AR) rcs $@ $^
  14. $(GFX_BUILD_DIR)/icons/%.o: $(GFX_BUILD_DIR)/icons/%.s
  15. $(AS) -o $@ $<
  16. $(GFX_BUILD_DIR)/icons/%.s: $(I_ASSET_ROOT)/pkmn_icons/%.png
  17. grit $< -fts -fh! -g -gB 4 -gt -gz! -m! -p! -s icon_$(notdir $(basename $<)) -o $@