blob: d2f1d7882474eed6e45a96dc990ae97c5ee93cc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
RGBGFXFLAGS :=
$(dir_build)/%.2bpp: %.png | $$(dir $$@)
$(RGBGFX) $(RGBGFXFLAGS) -o $@ $<
$(dir_build)/gfx/sprites/%.2bpp: RGBGFXFLAGS = -h
# data_select.2bpp.xor decompresses to 2bpp-encoded data_select.png with an extra byte $33 (ASCII "3") appended
$(dir_build)/gfx/data_select/data_select.2bpp: gfx/data_select/data_select.png | $$(dir $$@)
$(RGBGFX) $(RGBGFXFLAGS) -o $@ $<
printf 3 >> $@
XOR_COMPRESS := tools/xor_compress
$(dir_build)/%.xor: $(dir_build)/% | $$(dir $$@) $(XOR_COMPRESS)
$(XOR_COMPRESS) $< $@
$(dir_build)/%.xor: % | $$(dir $$@) $(XOR_COMPRESS)
$(XOR_COMPRESS) $< $@
$(dir_build)/%.tilemap_attrmap.xor: %.tilemap %.attrmap | $$(dir $$@) $(XOR_COMPRESS)
$(XOR_COMPRESS) $^ $@
|