2017-06-09 13:55:09 -07:00
|
|
|
.PHONY: all clean
|
2017-05-29 16:15:34 -07:00
|
|
|
|
2017-06-29 15:26:04 -07:00
|
|
|
CC := gcc
|
2021-09-07 06:34:38 -07:00
|
|
|
CFLAGS := -O3 -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers
|
2017-06-24 13:42:44 -07:00
|
|
|
|
2017-06-09 13:55:09 -07:00
|
|
|
tools := \
|
2017-05-29 16:15:34 -07:00
|
|
|
lzcomp \
|
2021-09-20 18:39:39 -07:00
|
|
|
gfx \
|
2017-05-29 16:15:34 -07:00
|
|
|
png_dimensions \
|
|
|
|
pokemon_animation \
|
2017-06-17 21:09:25 -07:00
|
|
|
pokemon_animation_graphics \
|
2021-09-20 18:39:39 -07:00
|
|
|
scan_includes \
|
2020-07-23 19:00:59 -07:00
|
|
|
stadium
|
2017-06-09 13:55:09 -07:00
|
|
|
all: $(tools)
|
2017-05-29 16:15:34 -07:00
|
|
|
@:
|
|
|
|
|
2017-06-09 13:55:09 -07:00
|
|
|
clean:
|
|
|
|
rm -f $(tools)
|
|
|
|
|
2020-05-23 12:46:47 -07:00
|
|
|
gfx: common.h
|
2021-09-20 18:39:39 -07:00
|
|
|
png_dimensions: common.h
|
|
|
|
pokemon_animation: common.h
|
|
|
|
pokemon_animation_graphics: common.h
|
|
|
|
scan_includes: common.h
|
|
|
|
stadium: common.h
|
2018-08-04 19:43:59 -07:00
|
|
|
|
2021-09-07 06:34:38 -07:00
|
|
|
lzcomp: CFLAGS = -O3 -flto -std=c11 -Wall -Wextra -pedantic -Wno-strict-overflow -Wno-sign-compare
|
2020-05-23 10:30:04 -07:00
|
|
|
lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
|
|
|
|
$(CC) $(CFLAGS) -o $@ lz/*.c
|
|
|
|
|
2017-05-29 16:15:34 -07:00
|
|
|
%: %.c
|
2017-06-24 13:42:44 -07:00
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|