mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 19:03:45 +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.
24 lines
770 B
Plaintext
24 lines
770 B
Plaintext
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
include ../Ncurses.options
|
|
|
|
# Specify location of the mcurses library
|
|
MCURSES_DIR = ..
|
|
|
|
# Tell mmake to use the mcurses library
|
|
VPATH = $(MCURSES_DIR):$(MMAKE_VPATH)
|
|
MCFLAGS = -I$(MCURSES_DIR) $(EXTRA_MCFLAGS)
|
|
CFLAGS = -I$(MCURSES_DIR)
|
|
MLFLAGS = -R$(MCURSES_DIR) $(EXTRA_MLFLAGS) \
|
|
-L$(MCURSES_DIR)
|
|
|
|
# Note that you have to tell the linker to use the mcurses library
|
|
# AND the ncurses library (which mcurses is an interface for)
|
|
MLLIBS = -lmcurses $(NCURSES_LIBS) $(EXTRA_MLLIBS)
|
|
C2INITARGS = $(MCURSES_DIR)/mcurses.init
|
|
|
|
default_target: smalltest
|
|
depend: smalltest.depend
|