shithub: pokecrystal

ref: 8059d0c845014f015c685cea3f0d2c8a8587a5c0
dir: /tools/Makefile/

View raw version
.PHONY: all clean

CC := gcc
CFLAGS := -O3 -std=c17 -Wall -Wextra -pedantic -Wno-missing-field-initializers

tools := \
	lzcomp \
	png_dimensions \
	scan_includes \
	pokemon_animation \
	pokemon_animation_graphics \
	gfx \
	stadium
all: $(tools)
	@:

clean:
	rm -f $(tools)

gfx: common.h

lzcomp: CFLAGS = -O3 -flto -std=c17 -Wall -Wextra -pedantic -Wno-strict-overflow -Wno-sign-compare
lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
	$(CC) $(CFLAGS) -o $@ lz/*.c

%: %.c
	$(CC) $(CFLAGS) -o $@ $<