Skip to content

Commit

Permalink
Tools depend on common.h by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Oct 8, 2024
1 parent a69cfb1 commit fa2e675
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ CC := gcc
CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic

tools := \
lzcomp \
gfx \
lzcomp \
make_patch \
png_dimensions \
pokemon_animation \
Expand All @@ -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 $@ $<

0 comments on commit fa2e675

Please sign in to comment.