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