Files
mercury/extras/curses/sample/Mmakefile
Julien Fischer b84e4853f0 Improvements for building extras/curses.
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.
2022-01-23 22:03:19 +11:00

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