Makefile: use PKG_CONFIG, not pkg-config
This commit is contained in:
parent
386f595a49
commit
64e3b973eb
|
@ -17,6 +17,8 @@ sources := $(sort $(wildcard *.cc))
|
||||||
objects := $(addprefix ., $(sources:.cc=$(suffix).o))
|
objects := $(addprefix ., $(sources:.cc=$(suffix).o))
|
||||||
deps := $(addprefix ., $(sources:.cc=$(suffix).d))
|
deps := $(addprefix ., $(sources:.cc=$(suffix).d))
|
||||||
|
|
||||||
|
PKG_CONFIG ?= pkg-config
|
||||||
|
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
DESTDIR ?= # root dir
|
DESTDIR ?= # root dir
|
||||||
|
|
||||||
|
@ -45,8 +47,8 @@ else ifneq (,$(findstring CYGWIN,$(os)))
|
||||||
CPPFLAGS += -D_XOPEN_SOURCE=700
|
CPPFLAGS += -D_XOPEN_SOURCE=700
|
||||||
LIBS += -lncursesw -ldbghelp
|
LIBS += -lncursesw -ldbghelp
|
||||||
else
|
else
|
||||||
LIBS += $(shell pkg-config --libs ncursesw)
|
LIBS += $(shell $(PKG_CONFIG) --libs ncursesw)
|
||||||
CPPFLAGS += $(shell pkg-config --cflags ncursesw)
|
CPPFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw)
|
||||||
LDFLAGS += -rdynamic
|
LDFLAGS += -rdynamic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user