pokegold/tools/Makefile
Sylvie a18a8bf27e
Sort Pokemon and trainer sprite palettes, with Makefile-specified exceptions (#121)
This avoids the need to define their order via indexed PNG palettes

It also avoids the need to use tools/palfix.py on custom sprites
2024-10-17 13:45:02 -04:00

27 lines
399 B
Makefile

.PHONY: all clean
CC := gcc
CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic
tools := \
gbcpal \
gfx \
lzcomp \
make_patch \
png_dimensions \
scan_includes \
stadium
all: $(tools)
@:
clean:
$(RM) $(tools)
lzcomp: CFLAGS += -Wno-strict-overflow -Wno-sign-compare
lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
$(CC) $(CFLAGS) -o $@ lz/*.c
%: %.c common.h
$(CC) $(CFLAGS) -o $@ $<