Commit Graph

6 Commits

Author SHA1 Message Date
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
Julien Fischer
d218e1b573 Various fixes for the extras.
extras/complex_numbers/*.m:
    Rename files containing submodules so that we can (correctly) build
    this library without first building a source file mapping.

extras/complex_numbers/samples/Mmakefile:
extras/complex_numbers/tests/Mmakefile:
    Tell the C compiler where the header files for libcomplex_numbers
    are.

extras/curs/samples/Mmakefile:
    Pass the -I option to the C compiler via the CFLAGS variable, not
    the MGNUCFLAGS variable; the latter just causes the mgnuc script
    to halt option processing and construct an invalid command line
    for the C compiler.

extras/curses/*.m:
    Rename files containing submodules so that we can (correctly) build
    this library without first building a source file mapping.

extras/curses/mcurses.m:
    Style and formatting fixes.

extras/curses/sample/Mmakefile:
     Pass the -I option to the C compiler via the CFLAGS variable.
2022-01-17 22:46:06 +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
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
Simon Taylor
da2e0433c6 Use C2INITARGS or MLFLAGS instead of C2INITFLAGS.
Estimated hours taken: 0.25
Branches: main

bytecode/Mmakefile:
compiler/Mmakefile:
extras/aditi/Mmakefile:
extras/curses/sample/Mmakefile:
extras/graphics/samples/calc/Mmakefile:
extras/graphics/samples/maze/Mmakefile:
extras/graphics/samples/pent/Mmakefile:
extras/morphine/non-regression-tests/Mmakefile:
samples/c_interface/simpler_c_calls_mercury/Mmakefile:
samples/c_interface/simpler_cplusplus_calls_mercury/Mmakefile:
tests/benchmarks/Mmakefile:
tests/debugger/Mmakefile:
tests/debugger/declarative/Mmakefile:
tests/hard_coded/Mmakefile:
	Use C2INITARGS or MLFLAGS instead of C2INITFLAGS.
2001-12-19 15:08:30 +00:00
Robert Jeschofnik
0e1d5ad5a2 Add a new directory to the extras, containing a (partial) binding to
Estimated hours taken: 8 (including getting to know curses a bit)

Add a new directory to the extras, containing a (partial) binding to
curses.


README:
  Add the brief description for the curses binding to the list of what
  is contained in the extras package.

curses/Mmakefile:
curses/basics.m:
curses/mcurses.m:
curses/misc.m:
curses/user.m:
  New files implementing the mercury binding to curses.

curses/sample/Mmakefile:
curses/sample/smalltest.m:
  A sample program using the mercury binding to curses.
2000-01-14 07:21:35 +00:00