mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
2b7237e299
Replace lzcomp with new version and match all LZ compressed files
29 lines
500 B
Makefile
29 lines
500 B
Makefile
.PHONY: all clean
|
|
|
|
CC := gcc
|
|
CFLAGS := -O3 -std=c99 -Wall -Wextra -Wno-missing-field-initializers
|
|
|
|
tools := \
|
|
lzcomp \
|
|
png_dimensions \
|
|
scan_includes \
|
|
palette \
|
|
pokemon_animation \
|
|
pokemon_animation_graphics \
|
|
gfx \
|
|
md5
|
|
all: $(tools)
|
|
@:
|
|
|
|
clean:
|
|
rm -f $(tools)
|
|
|
|
gfx md5: 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 $@ $<
|