From fa2e6752104934bc4f3891c3ec8972cc2bcc4339 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Mon, 7 Oct 2024 21:14:48 -0400 Subject: [PATCH] Tools depend on common.h by default --- tools/Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index f297508e9..395ece24e 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -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 $@ $<