Files
HackerSM64/compression/gziprules.mk
2025-07-02 00:37:50 -04:00

10 lines
281 B
Makefile

# Compress binary file
$(BUILD_DIR)/%.szp: $(BUILD_DIR)/%.bin
$(call print,Compressing:,$<,$@)
$(V)$(DEFLATEPACK) $< $@
# convert binary szp to object file
$(BUILD_DIR)/%.szp.o: $(BUILD_DIR)/%.szp
$(call print,Converting deflate to ELF:,$<,$@)
$(V)$(LD) -r -b binary $< -o $@