mirror of
https://github.com/pret/pokecrystal.git
synced 2026-04-17 15:25:58 -05:00
Some older systems do not support LTO, and it's unnecessary for these simple single-file tools
29 lines
444 B
Makefile
29 lines
444 B
Makefile
.PHONY: all clean
|
|
|
|
CC := gcc
|
|
CFLAGS := -O3 -std=c11 -Wall -Wextra -pedantic
|
|
|
|
tools := \
|
|
gbcpal \
|
|
gfx \
|
|
lzcomp \
|
|
make_patch \
|
|
png_dimensions \
|
|
pokemon_animation \
|
|
pokemon_animation_graphics \
|
|
scan_includes \
|
|
stadium
|
|
|
|
all: $(tools)
|
|
@:
|
|
|
|
clean:
|
|
$(RM) $(tools)
|
|
|
|
lzcomp: CFLAGS += -Wno-strict-overflow -Wno-sign-compare
|
|
lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
|
|
$(CC) $(CFLAGS) -o $@ lz/*.c
|
|
|
|
%: %.c common.h
|
|
$(CC) $(CFLAGS) -o $@ $<
|