summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoraaaaaa123456789 <aaaaaa123456789@acidch.at>2020-05-23 14:30:04 -0300
committerGitHub <noreply@github.com>2020-05-23 13:30:04 -0400
commit2b7237e299d5018e837bae550d18deeff3c7db7d (patch)
treef5ad065c573e8c16c99ca39f09b217a9cb7021d3 /Makefile
parentf1513ae8ad47c603abdba2749ef3e4e046817623 (diff)
Match LZ compressed files (#724)
Replace lzcomp with new version and match all LZ compressed files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 51dcd8957..0c6b1e426 100644
--- a/Makefile
+++ b/Makefile
@@ -108,16 +108,13 @@ pokecrystal-au.gbc: $(crystal_au_obj) layout.link
$(RGBFIX) -Cjv -t PM_CRYSTAL -i BYTU -k 01 -l 0x33 -m 0x10 -r 3 -p 0 $@
-# For files that the compressor can't match, there will be a .lz file suffixed with the md5 hash of the correct uncompressed file.
-# If the hash of the uncompressed file matches, use this .lz instead.
-# This allows pngs to be used for compressed graphics and still match.
+### LZ compression rules
+
+# Delete this line if you don't care about matching and just want optimal compression.
+include gfx/lz.mk
-%.lz: hash = $(shell tools/md5 $(*D)/$(*F) | sed "s/\(.\{8\}\).*/\1/")
%.lz: %
- $(eval filename := $@.$(hash))
- $(if $(wildcard $(filename)),\
- cp $(filename) $@,\
- tools/lzcomp -- $< $@)
+ tools/lzcomp $(LZFLAGS) -- $< $@
### Pokemon pic animation rules