Makefile: also check for ncurses6 - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
HTML git clone https://git.drkhsh.at/tty-clock.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0cec6b099385d0db33fe81ae3d0d34e15ed40430
DIR parent c26a221e320b870d01d29cf8a1091729621237e4
HTML Author: François Revol <revol@free.fr>
Date: Mon, 20 Aug 2018 16:24:25 +0200
Makefile: also check for ncurses6
Note some cross-compilers might not install the ncurses config scripts
and only the pkg-config files, but at least the atari SDK from NS does.
For others it might be required to check for the .pc files first.
Diffstat:
M Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -9,7 +9,13 @@ PREFIX ?= /usr/local
INSTALLPATH ?= ${DESTDIR}${PREFIX}/bin
MANPATH ?= ${DESTDIR}${PREFIX}/share/man/man1
-ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y)
+ifeq ($(shell sh -c 'which ncurses6-config>/dev/null 2>/dev/null && echo y'), y)
+ CFLAGS += -Wall -g $$(ncurses6-config --cflags)
+ LDFLAGS += $$(ncurses6-config --libs)
+else ifeq ($(shell sh -c 'which ncursesw6-config>/dev/null 2>/dev/null && echo y'), y)
+ CFLAGS += -Wall -g $$(ncursesw6-config --cflags)
+ LDFLAGS += $$(ncursesw6-config --libs)
+else ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y)
CFLAGS += -Wall -g $$(ncurses5-config --cflags)
LDFLAGS += $$(ncurses5-config --libs)
else ifeq ($(shell sh -c 'which ncursesw5-config>/dev/null 2>/dev/null && echo y'), y)