Tools depend on common.h by default

This commit is contained in:
Rangi42 2024-10-07 21:14:48 -04:00
parent a69cfb1720
commit fa2e675210
1 changed files with 2 additions and 9 deletions

View File

@ -4,8 +4,8 @@ CC := gcc
CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic
tools := \
lzcomp \
gfx \
lzcomp \
make_patch \
png_dimensions \
pokemon_animation \
@ -19,16 +19,9 @@ all: $(tools)
clean:
$(RM) $(tools)
gfx: common.h
png_dimensions: common.h
pokemon_animation: common.h
pokemon_animation_graphics: common.h
scan_includes: common.h
stadium: common.h
lzcomp: CFLAGS += -Wno-strict-overflow -Wno-sign-compare
lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
$(CC) $(CFLAGS) -o $@ lz/*.c
%: %.c
%: %.c common.h
$(CC) $(CFLAGS) -o $@ $<