From 40af1c013f43192d8598fa25b6f19232375bd242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Fri, 13 Jan 2017 09:50:18 -0500 Subject: [PATCH] unbreak building with arbitrary ncurses version using pkg-config Closes: #31 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 2c75bd0..b39b370 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,9 @@ ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y) else ifeq ($(shell sh -c 'which ncursesw5-config>/dev/null 2>/dev/null && echo y'), y) CFLAGS ?= -Wall -g -I $$(ncursesw5-config --includedir) LDFLAGS ?= -L $$(ncursesw5-config --libdir) $$(ncursesw5-config --libs) +else + CFLAGS ?= -Wall -g $((pkg-config --cflags ncurses)) + LDFLAGS ?= $$(pkg-config --libs ncurses)) endif tty-clock : ${SRC}