mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 20:33:55 +00:00
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.
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab
|
|
#-----------------------------------------------------------------------------#
|
|
#
|
|
# Copyright (C) 2001 Ralph Becket <rbeck@microsoft.com>
|
|
#
|
|
# THIS FILE IS HEREBY CONTRIBUTED TO THE MERCURY PROJECT TO
|
|
# BE RELEASED UNDER WHATEVER LICENCE IS DEEMED APPROPRIATE
|
|
# BY THE ADMINISTRATORS OF THE MERCURY PROJECT.
|
|
|
|
include Ncurses.options
|
|
|
|
# To build, do the following:
|
|
#
|
|
# Check that the values in the file Ncurses.options are appropriate
|
|
# for linking against ncurses on your system.
|
|
# Then do:
|
|
#
|
|
# $ mmake depend
|
|
# $ mmake
|
|
#
|
|
# And to install...
|
|
#
|
|
# $ mmake install
|
|
|
|
# Omit this line if you want to install in the standard location.
|
|
# Edit this line if you want to install the library elsewhere.
|
|
# A directory $(INSTALL_PREFIX)/lib/mercury will be created, if
|
|
# necessary, and everything put there.
|
|
#
|
|
#INSTALL_PREFIX = $(HOME)/mercury
|
|
INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
|
|
|
|
# Omit this line if you want to install the default grades.
|
|
# Edit this line if you want to install with different grades.
|
|
#
|
|
#LIBGRADES = asm_fast.gc hlc.gc
|
|
|
|
# The following libraries must be linked against in any application using the
|
|
# curs library (i.e. MLLIBS must include at least the following and in this
|
|
# order).
|
|
#
|
|
MLLIBS = $(PANEL_LIBS) $(NCURSES_LIBS)
|
|
|
|
# Any application using this library will also need the following
|
|
# in its Mmakefile:
|
|
#
|
|
#EXTRA_LIBRARIES = curs
|
|
|
|
# Needed to avoid conflicts with `bool'
|
|
CFLAGS = -DMERCURY_BOOTSTRAP_H
|
|
|
|
-include ../Mmake.params
|
|
|
|
MAIN_TARGET = libcurs
|
|
depend: curs.depend
|
|
install: $(MAIN_TARGET).install
|