Add a bpp2png tool to replace gfx.py for converting 1/2bpp to PNG (#889)

This commit is contained in:
Rangi
2022-03-14 19:31:20 -04:00
committed by GitHub
parent 4d102dcb3f
commit cfa47e8c78
5 changed files with 8763 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ CC := gcc
CFLAGS := -O3 -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers
tools := \
bpp2png \
lzcomp \
gfx \
make_patch \
@@ -26,7 +27,11 @@ pokemon_animation_graphics: common.h
scan_includes: common.h
stadium: common.h
lzcomp: CFLAGS = -O3 -flto -std=c11 -Wall -Wextra -pedantic -Wno-strict-overflow -Wno-sign-compare
bpp2png: CFLAGS += -flto
bpp2png: bpp2png.c lodepng/lodepng.c common.h lodepng/lodepng.h
$(CC) $(CFLAGS) -o $@ bpp2png.c lodepng/lodepng.c
lzcomp: CFLAGS += -flto -Wno-strict-overflow -Wno-sign-compare
lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
$(CC) $(CFLAGS) -o $@ lz/*.c