Merge pull request #298 from pfusik/make-header

Specify the header as a Makefile dependency
This commit is contained in:
Dominic Szablewski 2024-03-22 07:44:19 +01:00 committed by GitHub
commit 095455a36d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -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