mirror of https://github.com/phoboslab/qoi.git
Merge pull request #299 from Kakadus/master
Support supplying additional LDFLAGS via environment
This commit is contained in:
commit
d4fc9d1edf
5
Makefile
5
Makefile
|
@ -1,7 +1,8 @@
|
|||
CC ?= gcc
|
||||
CFLAGS_BENCH ?= -std=gnu99 -O3
|
||||
LFLAGS_BENCH ?= -lpng
|
||||
LFLAGS_BENCH ?= -lpng $(LDFLAGS)
|
||||
CFLAGS_CONV ?= -std=c99 -O3
|
||||
LFLAGS_CONV ?= $(LDFLAGS)
|
||||
|
||||
TARGET_BENCH ?= qoibench
|
||||
TARGET_CONV ?= qoiconv
|
||||
|
@ -14,7 +15,7 @@ $(TARGET_BENCH):$(TARGET_BENCH).c qoi.h
|
|||
|
||||
conv: $(TARGET_CONV)
|
||||
$(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
|
||||
clean:
|
||||
|
|
Loading…
Reference in New Issue