mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 19:33:46 +00:00
Separate out the configuration for linking against ncurses as has just be done
for extras/curs.
Update programming style.
extras/curses/Ncurses.options:
extras/curses/Mmakefile:
extras/curses/sample/Mmakefile:
Shift the flags for linking against ncurses to Ncurses.options.
Document how to use the ncursesN-config and pkg-config tools to find
the appropriate flags for a system.
extras/curses/mcurses.basics.m:
extras/curses/mcurses.user.m:
Update syntax and programming style.
Replace tabs with spaces and delete trailing whitespace.
27 lines
761 B
Plaintext
27 lines
761 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
|