summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXfennec <xfennec@cqfd-corp.org>2016-05-25 17:09:43 +0200
committerXfennec <xfennec@cqfd-corp.org>2016-05-25 17:09:43 +0200
commitf6894b827c638af5cf8c5c622e66491c179ba2eb (patch)
tree497dc443a31a42bb284eea745f2a83086eff3bb1
parentd0151cfd2f78ba72f93c16d8f211b4ebbe219d01 (diff)
Linux: adding check for pkg-config and ncurses.pc packagev0.13.1
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 07bb059..11657e1 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,12 @@ override CFLAGS += -g -Wall -D_FILE_OFFSET_BITS=64
override LDFLAGS += -lm
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
+ ifeq (, $(shell which pkg-config 2> /dev/null))
+ $(error "pkg-config command not found")
+ endif
+ ifeq (, $(shell pkg-config ncurses --libs 2> /dev/null))
+ $(error "ncurses package not found")
+ endif
override LDFLAGS += $(shell pkg-config ncurses --libs)
endif
ifeq ($(UNAME), Darwin)