An additional and alternate Makefile, better suited to people using pkg-config for their ncursesw library (the one on my Ubuntu 16.04 32bits is obsolete, it is still v5 while MTM expects v6). I could have added an invocation to pkg-config directly in the Makefile, but it makes it more general if it just uses two CURSESCFLAGS and CURSESLIBS options which can freely be set on invocation.
Example usage:
make CURSESCFLAGS="$(pkg-config --cflags ncursesw)" \
CURSESLIBS="$(pkg-config --libs ncursesw)"
Note CURSESLIBS is not always just a matter of paths, it may be a matter of linker options. Ex for me, what pkg-config says about ncursesw, is:
Note the -Wl,-rpath … part, which is why a library path is not always enough. For a custom ncurses library, an -I… option is also required for the C compilation.
This is why I’m proposing an additional and alternate Makefile, with CURSESCFLAGS and CURSESLIBS options.
An additional and alternate Makefile, better suited to people using
pkg-config
for theirncursesw
library (the one on my Ubuntu 16.04 32bits is obsolete, it is still v5 while MTM expects v6). I could have added an invocation topkg-config
directly in the Makefile, but it makes it more general if it just uses twoCURSESCFLAGS
andCURSESLIBS
options which can freely be set on invocation.Example usage:
Note
CURSESLIBS
is not always just a matter of paths, it may be a matter of linker options. Ex for me, whatpkg-config
says aboutncursesw
, is:Note the
-Wl,-rpath …
part, which is why a library path is not always enough. For a custom ncurses library, an-I…
option is also required for the C compilation.This is why I’m proposing an additional and alternate Makefile, with
CURSESCFLAGS
andCURSESLIBS
options.