39 lines
737 B
Makefile
Raw Normal View History

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