Merge pull request #299 from Kakadus/master

Support supplying additional LDFLAGS via environment
This commit is contained in:
Dominic Szablewski 2024-03-24 19:43:09 +01:00 committed by GitHub
commit d4fc9d1edf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,8 @@
CC ?= gcc CC ?= gcc
CFLAGS_BENCH ?= -std=gnu99 -O3 CFLAGS_BENCH ?= -std=gnu99 -O3
LFLAGS_BENCH ?= -lpng LFLAGS_BENCH ?= -lpng $(LDFLAGS)
CFLAGS_CONV ?= -std=c99 -O3 CFLAGS_CONV ?= -std=c99 -O3
LFLAGS_CONV ?= $(LDFLAGS)
TARGET_BENCH ?= qoibench TARGET_BENCH ?= qoibench
TARGET_CONV ?= qoiconv TARGET_CONV ?= qoiconv
@ -14,7 +15,7 @@ $(TARGET_BENCH):$(TARGET_BENCH).c qoi.h
conv: $(TARGET_CONV) conv: $(TARGET_CONV)
$(TARGET_CONV):$(TARGET_CONV).c qoi.h $(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) $(LFLAGS_CONV)
.PHONY: clean .PHONY: clean
clean: clean: