summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2018-05-30 04:18:51 -0500
committerdannye <33dannye@gmail.com>2018-05-30 04:18:51 -0500
commit6ef9138b8a6c41c66c15e6b98a06f81002d22718 (patch)
tree9a1ccce423e1159304f310b0d28059c59a879855 /Makefile
parent943a9c74e4bd2bd754d09a15f82b8338f1e8c3e7 (diff)
Add more graphics
add tools/gfx.c for trimming whitespace from pngs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2069e0a..344662b 100644
--- a/Makefile
+++ b/Makefile
@@ -44,11 +44,23 @@ clean:
rm -rf $(ROMS) $(OBJS) $(ROMS:.gb=.sym) build/* shim.asm
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pic' -o -iname '*.pcm' \) -exec rm {} +
+gfx/sgb_border_alt.2bpp: tools/gfx += --trim-whitespace
+gfx/sgb_border.2bpp: tools/gfx += --trim-whitespace
+gfx/titlescreen.2bpp: tools/gfx += --trim-whitespace
+gfx/leader_faces_names.2bpp: tools/gfx += --trim-whitespace
+gfx/slot_machine.2bpp: tools/gfx += --trim-whitespace
+gfx/poker.2bpp: tools/gfx += --trim-whitespace
+gfx/intro_purin_pika.2bpp: tools/gfx += --trim-whitespace
+
%.2bpp: %.png
rgbgfx -o $@ $<
+ $(if $(tools/gfx),\
+ tools/gfx $(tools/gfx) -o $@ $@)
%.1bpp: %.png
rgbgfx -d1 -o $@ $<
+ $(if $(tools/gfx),\
+ tools/gfx $(tools/gfx) -d1 -o $@ $@)
%.tilemap: %.png
rgbgfx -t $@ $<