pokecrystal-board/tools/Makefile

28 lines
489 B
Makefile
Raw Normal View History

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