Files
mercury/extras/curs/Ncurses.options
Julien Fischer 82daa3fdd1 Improvements for building extras/curs.
Separate out the details of how to link against ncurses and the panel library
into a separate file. Include this new file in both the top-level and samples
Mmakefiles and use the variables it defines to link against ncurses.

Document how to to use the ncursesN-config and pkg-config tools to find
the correct set of flags to link against ncurses. Using ncursesN-config
was suggested by Fabrice Nicol in a change he recently posted.

General cleanups.

extras/curs/Ncurses.options:
   New file defining variables that control how to link against ncurses
   and the panel library.

   Document some ways of finding the correct set of flags.

   Document how to override the contents of this file on the command line.

extras/curs/Mmakefile:
    Include the Ncurses.options file.

    Refer users to that file for controlling how to link against
    ncurses.

extras/curs/samples/Mmakefile:
    Import Ncurses.options instead of hardcoding the library flags here.

extras/curs/curs.m:
    Shift vim modeline into our usual place.

    Update copyright notice.

    Point users to Ncurses.options.

extras/curs/samples/*.m:
    Replace tabs with spaces.

    Delete trailing whitespace.

    Minor cleanups.
2022-01-23 19:20:45 +11:00

31 lines
844 B
Plaintext

# The flags for linking against ncurses.
#
# The default value below should work on most systems. If it does not you can
# find the exact value for you system by either:
#
# 1. Running the command:
#
# $ ncursesN-config --libs
#
# where N is the version of ncurses installed on your system
# (e.g. 6, 5, 5.4 etc).
#
# 2. Running the command:
#
# $ pkg-config --libs --static ncurses
#
# This second method will only work if the pkg-config utility is available
# on your system.
#
# You can override this variable directly on the command line with the output
# of one of the above methods by doing, for example:
#
# $ mmake depend NCURSES_LIBS="$(ncurses6-config --libs)"
# $ mmake NCURSES_LIBS="(ncurses6-config --libs$)"
#
NCURSES_LIBS = -lncurses
# The flags for linking against the ncurses panel library.
#
PANEL_LIBS = -lpanel