Use pkg-config to get ncurses(w) flags, falling back to static strings
authorJames Le Cuirot <chewi@gentoo.org>
Mon, 2 Sep 2019 21:39:03 +0000 (22:39 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Mon, 2 Sep 2019 22:04:42 +0000 (23:04 +0100)
commitdb6d225519fcf8cc56b828cb8d1e94ac6dd37403
tree0582abf9545b6dd2605a22812398d3b4dc987dbb
parentb17f0c78b4708f6617a635015d7d73360edf93eb
Use pkg-config to get ncurses(w) flags, falling back to static strings

Using pkg-config ensures that -I/usr/include/ncursesw is added when
necessary. This picks up the correct ncurses.h when both the wide and
non-wide versions are installed.

It also ensures that -ltinfo(w) is added when necessary. Some
distributions such as Gentoo build it as a separate library.
Makefile