Skip to content

Commit

Permalink
Merge pull request phoboslab#298 from pfusik/make-header
Browse files Browse the repository at this point in the history
Specify the header as a Makefile dependency
  • Loading branch information
phoboslab authored Mar 22, 2024
2 parents 30d15d7 + fe53e97 commit 095455a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ TARGET_CONV ?= qoiconv
all: $(TARGET_BENCH) $(TARGET_CONV)

bench: $(TARGET_BENCH)

$(TARGET_BENCH):$(TARGET_BENCH).c
$(TARGET_BENCH):$(TARGET_BENCH).c qoi.h
$(CC) $(CFLAGS_BENCH) $(CFLAGS) $(TARGET_BENCH).c -o $(TARGET_BENCH) $(LFLAGS_BENCH)

conv: $(TARGET_CONV)
$(TARGET_CONV):$(TARGET_CONV).c
$(TARGET_CONV):$(TARGET_CONV).c qoi.h
$(CC) $(CFLAGS_CONV) $(CFLAGS) $(TARGET_CONV).c -o $(TARGET_CONV)

.PHONY: clean
Expand Down

0 comments on commit 095455a

Please sign in to comment.