Commit Graph

6 Commits

Author SHA1 Message Date
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
Zoltan Somogyi
d33273d033 Tell vim not to expand tabs in Makefiles.
This file-specific setting will override a default setting of expandtabs
in $HOME/.vimrc.

*/Makefile:
*/Mmakefile:
    As above.

tests/hard_coded/.gitignore:
    Don't ignore the purity subdir. This ignore must have been left over
    from when purity.m was a test in hard_coded, not hard_coded/purity,
    and it ignored an executable, not a directory.
2015-01-08 22:07:29 +11:00
Fergus Henderson
dced016cc1 Fix a problem where different packages in the `extras' distribution
Estimated hours taken: 3
Branches: main, release

Fix a problem where different packages in the `extras' distribution
were being installed in different directories when you specified
INSTALL_PREFIX in the Mmake.params file.  Some honoured the INSTALL_PREFIX
setting, some appended "/extras", and some ignored it completely.

Also, add `clean' and `realclean' targets for the extras directory hierarchy,
and fix a few other minor bugs.

extras/lazy_evaluation/Mmakefile:
	Include Mmake.params, which previously wasn't included at all
	in this file.

extras/logged_output/Mmakefile:
extras/odbc/Mmakefile:
extras/quickcheck/Mmakefile:
	Append "/extras" to INSTALL_PREFIX, which previously wasn't done
	at all in these directories.

extras/cgi/Mmakefile:
extras/complex_numbers/Mmakefile:
extras/concurrency/Mmakefile:
extras/curs/Mmakefile:
extras/curses/Mmakefile:
extras/dynamic_linking/Mmakefile:
extras/moose/Mmakefile:
extras/posix/Mmakefile:
	Move the line `INSTALL_PREFIX := $(INSTALL_PREFIX/extras)'
	to before the include of Mmake.params, so as not to override
	the user's setting (only override the default setting).

extras/Mmakefile:
extras/concurrency/Mmakefile:
	Add `clean' and `realclean' targets.

extras/posix/Mmakefile:
	Add MGNUCFLAGS = --no-ansi, since this is needed on some systems.

extras/quickcheck/Mmakefile:
	Add "depend", "all", and "install" targets.
	Ensure that the "check" target runs the test program.

extras/quickcheck/qcheck.m:
	Set the exit status to non-zero if a test fails.

extras/references/Mmakefile:
	Adjust the setting of LIBGRADES to account for the fact that
	$(GRADE) is no longer implicitly included in $(LIBGRADES).
2003-01-16 10:44:26 +00:00
Fergus Henderson
d62c697231 Add appropriate infrastructure to support doing `mmake depend && mmake
Estimated hours taken: 2
Branches: main

Add appropriate infrastructure to support doing `mmake depend && mmake
&& mmake install' in the `extras' directory, and having it automatically
install and build as much as possible.

extras/Mmakefile:
	New file.

extras/cgi/Mmakefile:
	Delete bogus reference to `ALL_LIBGRADES' and `mercury-config'.

extras/complex_numbers/Mmakefile:
extras/concurrency/Mmakefile:
extras/concurrency/concurrency.m:
extras/curses/Mmakefile:
extras/dynamic_linking/Mmakefile:
extras/lazy_evaluation/Mmakefile:
extras/lex/Mmakefile:
extras/moose/Mmakefile:
extras/xml/Mmakefile:
	Add rules for `mmake install'.

extras/references/scoped_update.m:
	Add macro guard around typedef in `c_header_code'.

extras/curs/Mmakefile:
extras/curses/Mmakefile:
	Define MERCURY_BOOTSTRAP_H, to avoid name clash on `bool'
	that is caused by our bootstrap code in runtime/Merucry.h.

extras/curs/curs.m:
	Add `promise_pure' declarations for all pure procedures.
	XXX Should this be needed?  These predicates all take
	io__state arguments.
2002-03-06 10:10:31 +00:00
Fergus Henderson
a10a41c25c Various minor fixes to the Mmakefiles in extras/curs*.
Estimated hours taken: 0.25
Branches: main

Various minor fixes to the Mmakefiles in extras/curs*.

extras/curs/Mmakefile:
	Include ../Mmake.params.
	Add a comment.

extras/curses/Mmakefile:
	Include -lncurses in MLLIBS.
	Add a comment.

extras/curses/samples/Mmakefile:
	Include -I$(MCURSES_DIR) in MGNUCFLAGS.
2001-12-29 06:45:36 +00:00
Ralph Becket
3d6d6709b8 Added a more comprehensive and more faithful ncurses and panel
Estimated hours taken: 10

Added a more comprehensive and more faithful ncurses and panel
binding.

curs/Mmakefile:
curs/curs.m:
curs/samples:
curs/samples/Mmakefile:
curs/samples/demo.m:
	Added.
2001-02-21 16:55:16 +00:00