diff options
author | Xfennec <xfennec@cqfd-corp.org> | 2016-05-25 17:09:43 +0200 |
---|---|---|
committer | Xfennec <xfennec@cqfd-corp.org> | 2016-05-25 17:09:43 +0200 |
commit | f6894b827c638af5cf8c5c622e66491c179ba2eb (patch) | |
tree | 497dc443a31a42bb284eea745f2a83086eff3bb1 | |
parent | d0151cfd2f78ba72f93c16d8f211b4ebbe219d01 (diff) |
Linux: adding check for pkg-config and ncurses.pc packagev0.13.1
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |