pokecrystal-board/tools/Makefile
mid-kid 7d40476e14 Drop C standard for tools/ to C11
Nothing has changed in c17 beyond minor standards corrections, so
there's no advantage in specifying c17 over c11.
2021-09-07 15:34:38 +02:00

28 lines
499 B
Makefile

.PHONY: all clean
CC := gcc
CFLAGS := -O3 -std=c11 -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=c11 -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 $@ $<