From 6ef9138b8a6c41c66c15e6b98a06f81002d22718 Mon Sep 17 00:00:00 2001 From: dannye <33dannye@gmail.com> Date: Wed, 30 May 2018 04:18:51 -0500 Subject: Add more graphics add tools/gfx.c for trimming whitespace from pngs --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile') 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 $@ $< -- cgit v1.2.3