1234567891011121314151617181920212223242526272829 |
- AS = @arm-none-eabi-as
- LD = @arm-none-eabi-ld
- AR = @arm-none-eabi-ar
- GRIT = @grit
-
- GFX_BUILD_DIR = gfx_build
-
- ICON_AR = object/pkmn_icons.a
- I_ASSET_ROOT = sots-private/assets
- ICON_FILES = $(wildcard $(I_ASSET_ROOT)/pkmn_icons/*.png)
- OBJ_FILES = $(addprefix $(GFX_BUILD_DIR)/icons/,$(notdir $(ICON_FILES:.png=.o)))
-
- all: $(ICON_AR)
-
- .PHONY: clean
- clean:
- @echo -e "TRYING TO CLEAN ICONS FROM WRONG MAKEFILE"
-
- #$(ICON_AR): $(OBJ_FILES)
- # @echo "\033[1;32mCreating archive $@\033[0m"
- # $(AR) rcs $@ $^
-
- #$(GFX_BUILD_DIR)/icons/%.o: $(GFX_BUILD_DIR)/icons/%.s
- # @echo "\033[32mAssembling $<\033[0m"
- # $(AS) -o $@ $<
-
- #$(GFX_BUILD_DIR)/icons/%.s: $(I_ASSET_ROOT)/pkmn_icons/%.png
- # @echo "\033[34mProcessing image $<\033[0m"
- # $(GRIT) $< -fts -fh! -g -gB 4 -gt -gz! -m! -p! -s icon_$(notdir $(basename $<)) -o $@
|