mirror of https://github.com/phoboslab/qoi.git
Merge pull request #298 from pfusik/make-header
Specify the header as a Makefile dependency
This commit is contained in:
commit
095455a36d
5
Makefile
5
Makefile
|
@ -9,12 +9,11 @@ TARGET_CONV ?= qoiconv
|
||||||
all: $(TARGET_BENCH) $(TARGET_CONV)
|
all: $(TARGET_BENCH) $(TARGET_CONV)
|
||||||
|
|
||||||
bench: $(TARGET_BENCH)
|
bench: $(TARGET_BENCH)
|
||||||
|
$(TARGET_BENCH):$(TARGET_BENCH).c qoi.h
|
||||||
$(TARGET_BENCH):$(TARGET_BENCH).c
|
|
||||||
$(CC) $(CFLAGS_BENCH) $(CFLAGS) $(TARGET_BENCH).c -o $(TARGET_BENCH) $(LFLAGS_BENCH)
|
$(CC) $(CFLAGS_BENCH) $(CFLAGS) $(TARGET_BENCH).c -o $(TARGET_BENCH) $(LFLAGS_BENCH)
|
||||||
|
|
||||||
conv: $(TARGET_CONV)
|
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)
|
$(CC) $(CFLAGS_CONV) $(CFLAGS) $(TARGET_CONV).c -o $(TARGET_CONV)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
Loading…
Reference in New Issue