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