Commit Graph

958 Commits

Author SHA1 Message Date
Fergus Henderson
871c112dd9 Various changes to get things working with Sicstus Prolog.
scripts/*:
	Various changes to get things working with Sicstus Prolog.
1995-03-17 08:15:22 +00:00
Fergus Henderson
90f7fa5864 Use files with any file extension in $prefix/lib/mercury/modules,
mod2init.sh:
	Use files with any file extension in $prefix/lib/mercury/modules,
	not just the *.mod files, because I'm changing them to be *.c
	or *.init.
1995-03-15 11:03:43 +00:00
Fergus Henderson
15305ac860 Add script for linking with SICStus Prolog.
scripts/msl.sh:
	Add script for linking with SICStus Prolog.
1995-03-15 11:02:16 +00:00
Fergus Henderson
872f1442cc A bunch of changes. Add usage message. Add -s/--save option
scripts/mmake.sh:
	A bunch of changes.  Add usage message.  Add -s/--save option
	to save the generated Makefile.  Various changes so that it
	actually works.
1995-03-15 11:01:42 +00:00
Fergus Henderson
5734e8c91a Handle "--" (end-of-options) option.
scripts/ml.sh:
	Handle "--" (end-of-options) option.
1995-03-15 11:00:22 +00:00
Fergus Henderson
219e5c5cbe Add the scripts for SICStus Prolog.
mercury/scripts/Mmake:
	Add the scripts for SICStus Prolog.
1995-03-15 10:58:54 +00:00
Fergus Henderson
7dbe0bb601 Various changes to get things to work.
Makefile.common, Mmake.*:
	Various changes to get things to work.
	Handle both .m and .nl extensions.
	Added variables for SICStus Prolog.
1995-03-13 12:29:51 +00:00
Fergus Henderson
ffc4b18603 Added script for compiling Mercury programs with Sicstus Prolog. 1995-03-12 05:26:40 +00:00
Fergus Henderson
9a57fba0c1 Remove the dependency on @LIBOBJS@, since @LIBOBJS@
mnl.sh:
	Remove the dependency on @LIBOBJS@, since @LIBOBJS@
	comes from the library directory and it's a bit
	hard to compute in the scripts directory.
1995-03-11 15:43:04 +00:00
Fergus Henderson
c593819e3c Add Mmake file for the scripts directory. 1995-03-11 15:34:52 +00:00
Fergus Henderson
89360cdf4c Use mkdir -p.
Makefile.common:
	Use mkdir -p.

	Add mmake.sh.

	Change the tags rule so that it gets the .pp files first.

	Change the name of the compiler target from comp to mercury_compile.

	Remove the rules for test.exe since they duplicate the auto-generated
	ones in test.dep (which call the target `test' not `test.exe').

	Remove the `code_gen' target.  (Tom, if you need it, put it in
	Makefile.params.)

	Hack around with the installation rules (still in a state of flux).

options.nl:
	Disable the --mod-comments option by default.

llds.nl:
	Only output the gc livevals comment if --mod-comments is enabled.

mercury_compile.nl, prog_io.nl:
	Handle `file not found' errors more cleanly.
	When making the dependencies, assume that any files not found
	are library files, so don't put them in the dependencies.

modes.nl:
	Resolve type ambiguity introduced by change to prog_io.nl.

Mmake.rules Mmake.vars:
	Split Makefile.mercury into two halves for use by mmake.
	NOTE: I haven't removed Makefile.mercury yet, so any changes
	need to be made in both places!
1995-03-07 14:38:42 +00:00
Fergus Henderson
d3a17f6f40 The NU-Prolog executable have been renamed *.nu.
mcn.sh, mnp.sh:
	The NU-Prolog executable have been renamed *.nu.

mmake.sh:
	Add a script for making Mercury programs.
	This builds a makefile and then invokes Make.
1995-03-07 14:11:11 +00:00
Fergus Henderson
3ca8baa429 Put the `--' in the environment variable, so that the script works
mc.sh:
	Put the `--' in the environment variable, so that the script works
	with NU-Prolog or Sicstus built compilers.
1995-03-06 10:57:45 +00:00
Fergus Henderson
c17b2754bf Remove --static and --shared options.
ml.sh:
	Remove --static and --shared options.
	Fix a bug with the -v option.
	Change things so that it works on Irix (without shared libraries).
1995-03-06 07:30:56 +00:00
Fergus Henderson
55b191e8c4 Remove support for the -sinit option, since it doesn't work anymore.
mgnuc.sh:
	Remove support for the -sinit option, since it doesn't work anymore.
	Fix typo in -v output.
	Add -Wno-unused to the warning options, to suppress warnings
	about unused procedures.
1995-03-06 07:29:30 +00:00
Fergus Henderson
c56be1ea0f Allow either .m' or .nl' as the suffix for Mercury source code files.
mnc.sh:
	Allow either `.m' or `.nl' as the suffix for Mercury source code files.
1995-03-05 05:27:57 +00:00
Fergus Henderson
1e41f5abb7 Update some obsolete comments.
mod2c, mod2init.sh:
	Update some obsolete comments.
1995-03-04 15:09:17 +00:00
Fergus Henderson
81e5623712 Link with the shared version of the gc library.
ml.sh:
	Link with the shared version of the gc library.
	Remove the --shared and --static options, since gcc's -static
	option does the trick.
1995-03-04 15:08:52 +00:00
Fergus Henderson
ac2d66340a Change the default grade to asm_fast.gc
mgnuc.sh:
	Change the default grade to asm_fast.gc
1995-03-04 15:07:04 +00:00
Fergus Henderson
92009a8622 Remove an obsolete old hack for gcc on munta.
mgnuc.sh:
	Remove an obsolete old hack for gcc on munta.
1995-03-03 16:41:14 +00:00
Fergus Henderson
f7ba91097b Fix problem with -s fast that I introduced when I added -s asm_fast.
mod2c:
	Fix problem with -s fast that I introduced when I added -s asm_fast.
1995-03-02 01:38:32 +00:00
Fergus Henderson
0d0cd2cdf0 Fix a compile error with -s fast.
mod2init.sh:
	Fix a compile error with -s fast.
1995-03-01 14:09:40 +00:00
Fergus Henderson
6d4b8199e7 Optionally ignore a -s option.
mod2c:
	Optionally ignore a -s option.
1995-03-01 14:08:46 +00:00
Fergus Henderson
8464a87805 Oops, that should have been mercury__io__run_0_0
mod2init.sh:
	Oops, that should have been mercury__io__run_0_0
	not mercury__run_0_0.
1995-03-01 09:57:27 +00:00
Fergus Henderson
106a20baa9 Change default_entry from a string to an address.
mod2init.sh:
	Change default_entry from a string to an address.
	Make mercury__run_0_0 the default default_entry.
1995-03-01 09:53:24 +00:00
Fergus Henderson
1ec77b435e Add new modes asm_jump and asm_fast which use assembler labels.
mgnuc.sh:
	Add new modes asm_jump and asm_fast which use assembler labels.
1995-02-26 14:31:05 +00:00
Fergus Henderson
6ae8cc3408 Add a new script for use by the Makefile.
scripts/vpath_find:
	Add a new script for use by the Makefile.
1995-02-26 14:17:40 +00:00
Fergus Henderson
dd522cfc0a Rename the NU-Prolog version of the compiler as mcn' rather than mc'.
We now use the name `mc' for the Mercury version of the compiler.
1995-02-26 14:13:32 +00:00
Fergus Henderson
f56087df94 Change mod2c so that it outputs the appropriate macros required
mod2c:
	Change mod2c so that it outputs the appropriate macros required
	for the use of assembler labels.
	Note that mod2c is not model-dependent anymore (instead the
	macros are model-dependent), so we're now only a small step away from
	abolishing mod2c altogether.
1995-02-26 13:57:45 +00:00
Fergus Henderson
3f4ccc3e75 Fix silly bug with -sjump.gc option.
mod2c:
	Fix silly bug with -sjump.gc option.
1995-02-24 13:25:43 +00:00
Fergus Henderson
964edbd86c Output makelocalentry() rather than just makelabel() for procedure
mod2c:
	Output makelocalentry() rather than just makelabel() for procedure
	entry points that are not exported.  This will be used for
	profiling.
1995-02-17 05:43:31 +00:00
Fergus Henderson
d8bbb7f654 Add new grades fast.gc, reg.gc, etc. for conservative garbage
mod2c, mgnuc.sh, ml.sh:
	Add new grades fast.gc, reg.gc, etc. for conservative garbage
	collection.  Remove the --gc option from ml, since that information
	is now part of the grade.
1995-02-16 05:17:39 +00:00
Fergus Henderson
5a66f02045 Add options --shared and --static (default is --static).
ml.sh:
	Add options --shared and --static (default is --static).
1995-02-13 09:50:43 +00:00
Fergus Henderson
e11b865c6f Die (with non-zero exit status!) if the input file cannot be opened.
mod2c:
	Die (with non-zero exit status!) if the input file cannot be opened.
	(Using perl's `while(<>)' just doesn't cut it.)
1995-02-12 11:43:12 +00:00
Fergus Henderson
6e4f248412 Implement the -v option properly.
ml.sh:
	Implement the -v option properly.
1995-02-07 06:14:13 +00:00
Fergus Henderson
741984aaa5 Fix typo.
mgnuc.sh, ml.sh:
	Fix typo.
1995-02-02 14:40:59 +00:00
Fergus Henderson
5a3e1b242f Add a script for invoking the Mercury Compiler compiled with Sicstus.
mcs.sh:
	Add a script for invoking the Mercury Compiler compiled with Sicstus.

*.sh:
	Add some documentation.
1995-02-02 13:25:43 +00:00
Fergus Henderson
9435483a8e Fix some things I forgot to fix in the last change.
mod2init:
	Fix some things I forgot to fix in the last change.
1995-02-02 13:01:18 +00:00
Fergus Henderson
7e5d4c2d89 Moved these scripts from the code directory to the scripts directory.
mgnuc.sh mod2c mod2init.sh:
	Moved these scripts from the code directory to the scripts directory.
	Changed mgnuc to use the MERCURY_C_INCL_DIR environment variable.
	Changed mod2init to use MERCURY_MOD_LIB_DIR and MERCURY_MOD_LIB_MODS.
	Changed ml to use MERCURY_C_LIB_DIR rather than MERCURY_CLIB_DIR.
1995-02-02 05:57:16 +00:00
Fergus Henderson
a729fda0c6 Bug fix; also add -v (verbose) option.
mnl.sh:
	Bug fix; also add -v (verbose) option.
1994-10-13 21:55:37 +00:00
Fergus Henderson
5b64d1f637 Look for `.pp' files and handle them specially.
mnc.sh:
	Look for `.pp' files and handle them specially.
1994-10-09 18:35:51 +00:00
Fergus Henderson
ecb73ded60 Link the library using a full pathname, so that you don't
ml.sh:
	Link the library using a full pathname, so that you don't
	need to set LD_LIBRARY_PATH at runtime.

	Fix the tests for hostname so that they actually work.
1994-09-08 08:55:20 +00:00
Fergus Henderson
53a4253273 A few minor changes.
ml.sh, mnl.sh:
	A few minor changes.
	For mnl, ensure that if the user specifies the standard library
	modules on the command line, we only link in one copy of them.
1994-08-30 20:05:48 +00:00
Fergus Henderson
d9f541a48f Add a `Mercury Linker' script.
ml.sh:
	Add a `Mercury Linker' script.
1994-08-28 16:44:59 +00:00
Fergus Henderson
32a3fa046f Pass an appropriate --c-include-directory option to
mc.sh:
	Pass an appropriate --c-include-directory option to
	mercury_compile.
1994-08-20 15:21:20 +00:00
Fergus Henderson
67a98b7cca Add the Mercury NU-Prolog interpreter shell script.
mnp.sh:
	Add the Mercury NU-Prolog interpreter shell script.
	(Oops, I forgot to `cvs add' this earlier.)
1994-08-19 08:01:26 +00:00
Fergus Henderson
c80f94a64e Handle -o and -F options.
mnl.sh:
	Handle -o and -F options.
1994-08-17 15:24:39 +00:00
Fergus Henderson
ff8904f5a4 Bug fixes.
mnc.sh, mnl.sh:
	Bug fixes.
1994-08-17 12:51:26 +00:00
Fergus Henderson
c42e44a9f6 Allow the directory and file names to be overridden by
*.sh:
	Allow the directory and file names to be overridden by
	environment variables.
	Various bug-fixes.
1994-08-17 10:43:17 +00:00
Fergus Henderson
0a3eebc238 Added scripts for invoking nc to compile and link Mercury
mnc.sh, mnl.sh:
	Added scripts for invoking nc to compile and link Mercury
	programs.
1994-08-16 14:15:35 +00:00