unbreak building with arbitrary ncurses version using pkg-config - 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 40af1c013f43192d8598fa25b6f19232375bd242
DIR parent 516afbf9f96101c0bed1c366f80d7ca087b0557d
HTML Author: Antoine Beaupré <anarcat@debian.org>
Date: Fri, 13 Jan 2017 09:50:18 -0500
unbreak building with arbitrary ncurses version using pkg-config
Closes: #31
Diffstat:
M Makefile | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
DIR diff --git 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}