diff options
| author | Kylie McClain <kylie@somasis.com> | 2017-11-17 00:32:30 -0500 |
|---|---|---|
| committer | Kylie McClain <kylie@somasis.com> | 2017-11-17 23:11:06 -0500 |
| commit | ab390a02dc415d7a9d1cfe999cd7ddc683e6aef8 (patch) | |
| tree | 53f8108fd8bb5b3dfe024284a5e750685a7782db /src | |
| parent | 386f595a494f2fca3d52388a9d64c35bfd8bb3c6 (diff) | |
Makefile: use PKG_CONFIG, not pkg-config
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 534db36e..50dc32b5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -17,6 +17,8 @@ sources := $(sort $(wildcard *.cc)) objects := $(addprefix ., $(sources:.cc=$(suffix).o)) deps := $(addprefix ., $(sources:.cc=$(suffix).d)) +PKG_CONFIG ?= pkg-config + PREFIX ?= /usr/local DESTDIR ?= # root dir @@ -45,8 +47,8 @@ else ifneq (,$(findstring CYGWIN,$(os))) CPPFLAGS += -D_XOPEN_SOURCE=700 LIBS += -lncursesw -ldbghelp else - LIBS += $(shell pkg-config --libs ncursesw) - CPPFLAGS += $(shell pkg-config --cflags ncursesw) + LIBS += $(shell $(PKG_CONFIG) --libs ncursesw) + CPPFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw) LDFLAGS += -rdynamic endif |
