Commit Graph

958 Commits

Author SHA1 Message Date
Fergus Henderson
1b69277fd6 Use MERCURY_DEFAULT_GRADE, with a default value @DEFAULT_GRADE@
{mc,ml,mgnuc,mmake}.in:
	Use MERCURY_DEFAULT_GRADE, with a default value @DEFAULT_GRADE@
	determined by configure, rather than hard-coding asm_fast.gc as
	the default grade.

mmake.in:
	Update the documentation.
1995-05-29 14:20:57 +00:00
Zoltan Somogyi
1849d45e77 Fixed usage message.
c2init.in:
	Fixed usage message.
1995-05-29 01:49:39 +00:00
Fergus Henderson
6fd46a39a3 Report an error if the file is not found.
scripts/vpath_find:
	Report an error if the file is not found.
1995-05-22 04:40:59 +00:00
Fergus Henderson
356f1abee6 Split up the rule for installing the scripts so that
scripts/Mmake:
	Split up the rule for installing the scripts so that
	the NU-Prolog and SICStus Prolog related scripts are
	only installed if configure detected NU-Prolog or
	SICStus Prolog respectively.
1995-05-22 03:58:30 +00:00
Fergus Henderson
97d8773ee4 Make sure the installed scripts are writeable, because
scripts/Mmake:
	Make sure the installed scripts are writeable, because
	re-installing will fail if they are not.
1995-05-20 15:47:15 +00:00
Fergus Henderson
1f6fa981d0 Remove all the uses of MERCURY_DEP_DIR, since it is
mc*.in:
	Remove all the uses of MERCURY_DEP_DIR, since it is
	no longer needed.
1995-05-20 15:28:36 +00:00
Fergus Henderson
326edf7fc4 Use @GNU_MAKE@' (from configure) rather than make' as the
scripts/mmake.in:
	Use `@GNU_MAKE@' (from configure) rather than `make' as the
	default make program to use.
1995-05-20 14:39:38 +00:00
Fergus Henderson
60bc8f3ef9 Change "#!/bin/sh" to "#! /bin/sh", since the latter is more portable.
scripts/*.in:
	Change "#!/bin/sh" to "#! /bin/sh", since the latter is more portable.
	Add "# @configure_input@" to the start of each file.
1995-05-19 08:17:46 +00:00
Fergus Henderson
b5ef7ff7c6 Fix quoting problem.
scripts/mnc.in:
	Fix quoting problem.
1995-05-19 07:50:47 +00:00
Fergus Henderson
1a468516f1 Another correction to the comments.
scripts/c2init.in:
	Another correction to the comments.
1995-05-19 07:35:01 +00:00
Fergus Henderson
aada31a38f Update the comments, which had become obsolete.
scripts/c2init.in:
	Update the comments, which had become obsolete.
1995-05-19 07:30:35 +00:00
Fergus Henderson
723759a1f3 Fix quoting bug introduced in last change.
scripts/mgnuc.in:
	Fix quoting bug introduced in last change.
1995-05-15 06:37:22 +00:00
Fergus Henderson
5e309891fc Conservative gc no longer implies -DTAGBITS=0.
mgnuc.in:
	Conservative gc no longer implies -DTAGBITS=0.
	Use gcc -V2.6.3 on kryten, since 2.6.4 beta has a bug
	that causes it to generate incorrect code (for tree234__set/4
	and lots of other preds) with --tags low.

******> This may cause "gcc internal error: cc1 got fatal signal 6" problems.
	If you run into these, try editing mgnuc so that it compiles with
	/usr/local/bin/gcc (2.5.8) instead.  And let me know!
1995-05-15 05:29:28 +00:00
Fergus Henderson
fb57d565f6 Add c2init to the list of scripts.
scripts/Mmake:
	Add c2init to the list of scripts.
1995-05-13 06:02:07 +00:00
Fergus Henderson
b02471a037 Change things so that we invoke a new `c2init' script to create the init files,
rather than invoking `mkinit' directly.  The reason is that `mkinit' only
does part of `mod2init's old job; `c2init' collects the filenames of the
standard library modules (possibly overridden by environment variables)
and passes these, together with the modules named on the command line,
to `mkinit'.
1995-05-13 05:51:35 +00:00
Fergus Henderson
5da8bc19df Emit INIT/ENDINIT, as required by mkinit.
mod2c:
	Emit INIT/ENDINIT, as required by mkinit.
1995-05-13 05:14:06 +00:00
Fergus Henderson
4be01a3ad9 Remove support for the old .nl extension.
Mmake.rules:
	Remove support for the old .nl extension.
	Get rid of the rule for creating all those silly .nl -> .m symlinks.
	(You'll have to remove all those old symbolic links manually.)
1995-05-13 02:46:29 +00:00
Fergus Henderson
76dbe913e2 Rename *.sh as *.in.
scripts:
	Rename *.sh as *.in.
	The scripts are now made by configure, not by make/mmake in the
	scripts directory.
1995-05-12 21:01:34 +00:00
Fergus Henderson
a7ab6dac4e Add a hack for Irix 5.
mgnuc.sh:
	Add a hack for Irix 5.
1995-05-12 20:37:41 +00:00
Fergus Henderson
f3ce426725 Use ${var=default} rather than ${var:-$default}, since according
scripts/*.sh:
	Use ${var=default} rather than ${var:-$default}, since according
	to the GNU autoconf manual, the latter is not portable.
1995-05-12 15:57:16 +00:00
Fergus Henderson
13426c115b Set MKINIT and MOD2INIT to mkinit', not ../utils/mkinit'.
Mmake.vars:
	Set MKINIT and MOD2INIT to `mkinit', not `../utils/mkinit'.
1995-05-11 02:54:33 +00:00
Zoltan Somogyi
0f46c5d4e7 Merged in changes from the pass_str_branch. 1995-05-06 07:29:58 +00:00
Zoltan Somogyi
a5e5eb5503 mtags: Ensure that only the first occurrence of the tag is output.
This makes "mtags *.pp *.m" work correctly by not allowing
	the sort -u to discard the tag referring to the .pp file.
1995-04-30 05:33:55 +00:00
Fergus Henderson
b11991c249 Add error-checking.
mtags:
	Add error-checking.

	Fix bug (close was closing the a non-existant file-handle! -
	this would have caused us to run out of file-handles if
	there were too many files) which I detected after adding
	error-checking.

	Enhance the vi command we output to find the tag: it now puts
	the tag in the string search buffer so that you can use the `n'
	(next) command in vi to search for the tag, in case the
	tag lookup gets you the pred declaration when you really
	wanted the pred body.
1995-04-29 16:30:27 +00:00
Fergus Henderson
f7c8fbe2bb Fix problem with stupid one-pass linkers.
ml.sh:
	Fix problem with stupid one-pass linkers.
1995-04-22 10:55:41 +00:00
Fergus Henderson
c542a2e4e1 Split the init function into bite-size pieces.
scripts/mod2init.sh:
	Split the init function into bite-size pieces.
	(Otherwise the new `--procs-per-c-function 1' has the
	unfortunate side-effect of creating a very large
	init module, since the init module calls every function,
	and it is all one basic block and takes >15 minutes to compile.)
1995-04-15 08:15:55 +00:00
Fergus Henderson
e9496f4971 Fix bug found by Wojtek.
mgnuc.sh:
	Fix bug found by Wojtek.
1995-04-12 08:01:07 +00:00
Fergus Henderson
5909bded95 Add a rule for creating *.dep, identical to the .depend rule.
scripts/Mmake.rules:
	Add a rule for creating *.dep, identical to the .depend rule.
	(The .dep rule ensures that the .dep file exists; the .depend
	rule ensures that it is really up-to-date.)
1995-04-02 10:08:17 +00:00
Fergus Henderson
5df40b0d26 Add copyright notices.
scripts/*:
	Add copyright notices.
1995-03-28 15:35:15 +00:00
Fergus Henderson
f8189f3f01 Make sure the `clean' rule cleans up the *.pic_o files.
scripts/Mmake.rules:
	Make sure the `clean' rule cleans up the *.pic_o files.
1995-03-28 09:30:47 +00:00
Fergus Henderson
3f3eda5289 For Irix, pass the right -rpath option.
scripts/ml.sh:
	For Irix, pass the right -rpath option.
1995-03-28 06:01:25 +00:00
Fergus Henderson
9a0545790e Fix missing ";;" in case.
scripts/ml.sh:
	Fix missing ";;" in case.
1995-03-28 04:49:21 +00:00
Fergus Henderson
487fe401ad Add --save-temp option for debugging.
scripts/msl.sh:
	Add --save-temp option for debugging.
	Fix bug with sp_lib.
1995-03-27 17:22:41 +00:00
Fergus Henderson
6bbe93e85c Try to get shared libraries to work under Irix 5.x.
ml.sh:
	Try to get shared libraries to work under Irix 5.x.
1995-03-26 14:21:21 +00:00
Fergus Henderson
50104b57f3 Fix silly error in previous change.
Mmake.vars:
	Fix silly error in previous change.
1995-03-24 13:04:00 +00:00
Fergus Henderson
f998804c15 Add rules for creating .o_pic files by compiling with -fpic.
Mmake.{vars,rules}:
	Add rules for creating .o_pic files by compiling with -fpic.
	This is so we can create mix files compiled with -fpic for
	shared libraries with those compiled without -fpic (which are
	presumably more efficient) in the same directory.
1995-03-24 12:41:12 +00:00
Fergus Henderson
30855e1b60 Allow the Mmake file to define VPATH.
scripts/{mmake.sh,Mmake.vars}:
	Allow the Mmake file to define VPATH.
1995-03-24 05:59:53 +00:00
Fergus Henderson
215c4c5bbe Use separate macros MCD, MCI, and MCG for making dependencies,
Mmake.rules, Mmake.vars:
	Use separate macros MCD, MCI, and MCG for making dependencies,
	interfaces, and generating code, along with MCDFLAGS, MCIFLAGS,
	and MCGFLAGS.
1995-03-24 05:09:22 +00:00
Fergus Henderson
a119398e50 Add the fullarch script to the distribution.
scripts/fullarch:
	Add the fullarch script to the distribution.
1995-03-21 10:07:08 +00:00
Fergus Henderson
1116b31484 We don't need to suppress the GNU Make builtin rules,
Mmake.rules:
	We don't need to suppress the GNU Make builtin rules,
	since mmake passes -r to make to suppress all the builtin rules.
	(The suppression wasn't compatible with Solaris make.)
1995-03-18 18:09:40 +00:00
Fergus Henderson
a176ca5ff1 Move the `--' around.
mc.sh:
	Move the `--' around.
1995-03-18 18:08:00 +00:00
Fergus Henderson
acd1713701 Fix problem with VPATH.
scripts/mmake.sh:
	Fix problem with VPATH.
1995-03-18 17:41:55 +00:00
Fergus Henderson
d45a0231fe Add `mmake' to the list of scripts!
scripts/Mmake:
	Add `mmake' to the list of scripts!
1995-03-18 14:25:06 +00:00
Fergus Henderson
b8f65b6dfb Add script for invoking the Mercury SICStus Prolog interpreter.
mercury/scripts/msp.sh:
	Add script for invoking the Mercury SICStus Prolog interpreter.
1995-03-18 14:21:52 +00:00
Fergus Henderson
fd745d153b Very minor documentation fix.
scripts/mgnuc.sh:
	Very minor documentation fix.
1995-03-18 10:43:36 +00:00
Fergus Henderson
077e35d0e7 If we're linking in sp_lib, ensure that it gets linked last
msl.sh:
	If we're linking in sp_lib, ensure that it gets linked last
	(since it needs to override things defined in other modules).
1995-03-18 09:53:36 +00:00
Fergus Henderson
3e59b94d05 Remove an old temporary hack.
mc.sh:
	Remove an old temporary hack.
1995-03-18 09:52:21 +00:00
Fergus Henderson
fe4760e23f Make the clean_s rule (rm -f *.s) user-configurable.
Mmake.rules:
	Make the clean_s rule (rm -f *.s) user-configurable.
1995-03-18 09:51:43 +00:00
Fergus Henderson
a3c5911e44 `mkdir -p' doesn't work on munta if the directory already exists.
mercury/scripts/Mmake:
	`mkdir -p' doesn't work on munta if the directory already exists.
	(Need to make the same change in all the other Mmake files too.)
1995-03-18 09:50:48 +00:00
Fergus Henderson
f79d5f9632 Due to a bug in the Solaris linker, we need to call the GC_INIT()
scripts/mod2init.sh, runtime/{wrapper.mod,init.h}:
        Due to a bug in the Solaris linker, we need to call the GC_INIT()
        macro from some statically linked part of the code.
        So I've modified mod2init to add an init_gc() function to the init
        file, and I've modified wrapper.mod to call it.
1995-03-18 07:51:34 +00:00