pokecrystal-board/tools/Makefile

28 lines
499 B
Makefile
Raw Normal View History

.PHONY: all clean
CC := gcc
2021-09-01 21:20:46 -07:00
CFLAGS := -O3 -std=c17 -Wall -Wextra -pedantic -Wno-missing-field-initializers
2017-06-24 13:42:44 -07:00
tools := \
lzcomp \
png_dimensions \
scan_includes \
pokemon_animation \
pokemon_animation_graphics \
gfx \
stadium
all: $(tools)
@:
clean:
rm -f $(tools)
2020-05-23 12:46:47 -07:00
gfx: common.h
2021-09-01 21:20:46 -07:00
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
2017-06-24 13:42:44 -07:00
$(CC) $(CFLAGS) -o $@ $<