Commit Graph

5 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
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
Julien Fischer
2c41d3bba1 Cleanups for extras/curs.
Estimated hours taken: 1
Branches: main, release

Cleanups for extras/curs.

extras/curs/samples/Mmakefile:
	Build all the demos in this directory.

extras/curs/curs.m:
	Define the type `panel' as a foreign type.  Remove casts from the C
	code that are now redundant because of this.

	Convert to four-space indentation.

extras/curs/curs.m:
extras/curs/samples/*.m:
	Fix overlong lines.

	s/io__state/io/

	Use state variables for passing around the I/O state.

	Format foreign_procs as per our coding standard.
2006-04-21 03:37:11 +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