Commit Graph

148 Commits

Author SHA1 Message Date
Fergus Henderson
1b2817b075 Work-around bug in "$@" handling in Ultrix's /bin/sh.
scripts/mmake.in:
	Work-around bug in "$@" handling in Ultrix's /bin/sh.
1995-09-13 04:02:58 +00:00
Fergus Henderson
7b362f8323 Add a work-around for gcc-2.6.3 bug on mips: compile "int.c" with -O1
scripts/mgnuc.in:
	Add a work-around for gcc-2.6.3 bug on mips: compile "int.c" with -O1
	rather than -O2.
1995-09-13 03:57:52 +00:00
Fergus Henderson
144a01ab80 For i386, make sure we turn off -fomit-frame-pointer if we're
scripts/mgnuc.in:
	For i386, make sure we turn off -fomit-frame-pointer if we're
	using global register variables.
1995-09-13 03:40:55 +00:00
Fergus Henderson
fe7506d79c Add --assemble option for invoking as' rather than gcc'.
mgnuc.in:
	Add --assemble option for invoking `as' rather than `gcc'.
1995-09-11 12:21:54 +00:00
Fergus Henderson
08d0172754 For efficiency, use shell builtins rather than calling /bin/true:
scripts/mgnuc.in:
	For efficiency, use shell builtins rather than calling /bin/true:
	use `:' rather than `true' and use `case' rather than `if'.

scripts/ml.in:
	By default, strip the executable.
	(This speeds up linking considerably on systems without
	shared libraries, and most of the time debugging information
	is not used, since gdb doesn't support Mercury yet anyway.)
	Add -g / --no-strip option to suppress stripping.
	Use `case' rather than `if', for efficiency.
1995-09-09 11:30:26 +00:00
Fergus Henderson
5f8133f60c Remove references to mcn and mcs.
scripts/Mmake:
	Remove references to mcn and mcs.
1995-09-09 00:25:53 +00:00
Fergus Henderson
80de282fd2 Remove the "--", since it is no longer needed.
mc.in, mprof.in:
	Remove the "--", since it is no longer needed.

mcn.in, mcs.in:
	These scripts are no longer necessary - use `mc' instead.
1995-09-08 03:33:53 +00:00
Fergus Henderson
75b68f104d Add support for profiling grades (*.prof).
scripts/{mgnuc,ml}.in:
	Add support for profiling grades (*.prof).
1995-09-07 20:42:33 +00:00
Fergus Henderson
f8e3d2989d Add `-lm' to the linker command line, since the Mercury library
scripts/ml.in:
	Add `-lm' to the linker command line, since the Mercury library
	now uses various math functions.
1995-09-05 01:54:24 +00:00
Fergus Henderson
d286426475 For the 386, if global register variables are enabled, then
scripts/mgnuc.in:
	For the 386, if global register variables are enabled, then
	we must pass the `-fno-builtin' option.
1995-09-03 15:33:31 +00:00
Fergus Henderson
9db453f65a Avoid embedding the pathname to the perl interpreter in the
scripts/{mod2c,mtags}:
	Avoid embedding the pathname to the perl interpreter in the
	perl executable, since there is no standard place for perl.
1995-09-03 14:36:04 +00:00
Fergus Henderson
33c0570383 Use MERCURY_NU_LIB_DIR as specified by the documentation,
scripts/mnl.in:
	Use MERCURY_NU_LIB_DIR as specified by the documentation,
	not MERCURY_LIB_DIR.  Document the -d/--debug option.

scripts/msc.in:
	Remove mention of MERCURY_SP_BUILTIN, since it wasn't used.
1995-08-19 10:32:32 +00:00
Fergus Henderson
0f0b70be9e Make the default list of library .ql files empty,
scripts/msl.in:
	Make the default list of library .ql files empty,
	rather than `cd $SPLIBDIR; echo *.ql`.  We normally
	link by loading the named .ql files into library.sicstus.debug
	which has the library .ql files pre-loaded.  The
	the .ql files don't get installed, so `*.ql' did not
	get expanded in the `cd $SPLIBDIR; echo *.ql` command -
	instead it accidentally got expanded later as *.ql in the
	current directory, which was wrong.

	Also, call garbage_collect before saving the state in the debug
	version, since this reduces the size of the executable.
	(We already did this in the non-debug version.)
1995-08-18 16:58:02 +00:00
Fergus Henderson
3ab5e9e46a Remove some old special-case stuff (if $host = kryten ...).
scripts/ml.in:
	Remove some old special-case stuff (if $host = kryten ...).

	Change it so that it uses $CC as determined by configure
	rather than hard-coding gcc.

	Use a named pipe to invoke the demangler, so that we
	return the exit status of the C compiler, not the demangler.

	Add a new option --no-libs which suppresses the linking
	in of the libraries; this is useful if you want to link
	a shared library and have the output of the linker passed
	through the demangler.

scripts/mmake.in:
	Use a new environment variable MMAKE_DIR as the location to
	look for both Mmake.vars and Mmake.rules; this is simpler than
	use the MMAKE_VARS and MMAKE_RULES environment variables.
1995-07-29 11:16:47 +00:00
Fergus Henderson
e946250414 Remove all hard-coded relative paths except for the definition
scripts/Mmake:
	Remove all hard-coded relative paths except for the definition
	of MERCURY_DIR.
1995-07-29 08:44:55 +00:00
Fergus Henderson
54d92ff76e Fix a couple of bugs: the debugging objects should only be loaded
mnl.in:
	Fix a couple of bugs: the debugging objects should only be loaded
	once, not twice (this was causing multiple clauses for spyHook to
	be loaded, which caused some problems in the interactive term browser),
	and we should include error.no in the list of debugging objects.
1995-07-29 08:09:28 +00:00
Fergus Henderson
cac030ab7d Add support for shared libraries on the alpha.
ml.in:
	Add support for shared libraries on the alpha.
1995-07-28 07:20:47 +00:00
Fergus Henderson
5565c23b2e Add a new --no-ansi option, for use by runtime/Mmake.
scripts/mgnuc.in:
	Add a new --no-ansi option, for use by runtime/Mmake.
1995-07-26 17:38:28 +00:00
Fergus Henderson
e7f8bdb180 Add a `--no-check' option, for compiling the boehm_gc directory.
scripts/mgnuc.in:
	Add a `--no-check' option, for compiling the boehm_gc directory.
1995-07-24 02:27:13 +00:00
Fergus Henderson
0e10ac2fb1 Use @CC@ from configure rather than `gcc'.
mgnuc.in:
	Use @CC@ from configure rather than `gcc'.
	(We still require gcc, though, since we pass a lot
	of gcc-specific options.)
	Remove the site-specific kludges for finding `gcc'.
	NB: Zoltan, this means that you need to explicitly
	add `-msupersparc' to the MGNUCFLAGS for benchmarking.

	Also, on Irix 5 we need to pass `-mno-abicalls' to
	turn off shared libraries for the grades which use
	gcc non-local gotos.

mc.in:
	Use @CC@ from configure, and pass it use the --cc option.

ml.in:
	For Irix 5, we need to pass `-non_shared' for the grades which use
	gcc non-local gotos, and we also need to export a LIBRARY_PATH
	which points to the nonshared libraries.
1995-07-23 17:10:09 +00:00
Fergus Henderson
eaf2c48c34 Don't use `getopts', since it is not portable.
c2init.in:
	Don't use `getopts', since it is not portable.
	Add long versions of all the options.
	Improve usage message.
1995-07-21 08:13:26 +00:00
Fergus Henderson
f1d37af1a6 Add script to invoke mercury_profile.
scripts/mprof.m, scripts/Mmake:
	Add script to invoke mercury_profile.
1995-07-20 13:59:12 +00:00
Fergus Henderson
d50a62a4d0 Fix the rule for making *.err: we now need to pass --errorcheck-only.
scripts/Mmake.rules:
	Fix the rule for making *.err: we now need to pass --errorcheck-only.
1995-07-18 13:10:29 +00:00
Fergus Henderson
aa9b9bd4cd Fix rule for `mmake realclean'.
scripts/Mmake:
	Fix rule for `mmake realclean'.
1995-07-17 13:47:55 +00:00
Fergus Henderson
3b070e7e3f Allow --grade' as a synonym for -s'.
scripts/ml.in:
	Allow `--grade' as a synonym for `-s'.
	Also fix bug - error messages should go to stderr not stdout.
1995-07-16 09:35:09 +00:00
Fergus Henderson
3a6682fb82 Pipe the output of the linker through `mdemangle'.
ml.in:
	Pipe the output of the linker through `mdemangle'.
1995-07-15 09:16:35 +00:00
Fergus Henderson
a815d9a12b Remove obsolete definition of CLEAN_CS.
scripts/Mmake.vars:
	Remove obsolete definition of CLEAN_CS.
1995-07-15 07:36:55 +00:00
Fergus Henderson
a5860bfc01 Remove the actions for `mmake clean' etc., since they are now
scripts/Mmake.rules:
	Remove the actions for `mmake clean' etc., since they are now
	unnecessary (it's handled implicitly by adding dependencies
	in the .dep files).
1995-07-15 04:52:12 +00:00
Zoltan Somogyi
9f587aef89 Left out a backslash from last change. 1995-07-14 02:10:30 +00:00
Zoltan Somogyi
50afa2cec4 Work around sh bug which expands *.dep not to the empty string but
Mmake.rules:
	Work around sh bug which expands *.dep not to the empty string but
	to '*.dep' when there are no .dep files in the directory.
1995-07-14 02:09:01 +00:00
Fergus Henderson
2173043ee8 Fix quoting bug.
scripts/Mmake.rules:
	Fix quoting bug.
1995-07-13 17:16:34 +00:00
Fergus Henderson
bbef14c68d Add a rule to recreate foo' when foo.in' changes.
scripts/Mmake:
	Add a rule to recreate `foo' when `foo.in' changes.
1995-07-13 01:48:14 +00:00
Fergus Henderson
dc876478be Don't define a rule for clean' and realclean', since those
Mmake.rules:
	Don't define a rule for `clean' and `realclean', since those
	are reserved for use by user Mmake files.  Instead, add a
	dependency on `sub_clean' and `sub_realclean', and define
	the rule there.
1995-07-13 01:40:41 +00:00
Zoltan Somogyi
da67857f42 Change --generate-code to --compile-to-c.
Mmake.vars:
	Change --generate-code to --compile-to-c.

Mmake.rules:
	Make the clean rule less reckless.
1995-07-12 15:28:26 +00:00
Fergus Henderson
a617743b19 Don't make `-g' the default. It just slows compilation down.
scripts/mgnuc.in:
	Don't make `-g' the default.  It just slows compilation down.
1995-07-10 15:14:21 +00:00
Peter Ross
51610e8cc4 Added PROFFLAGS 1995-06-30 06:36:23 +00:00
Fergus Henderson
4fc11e9119 Remove the -V2.6.3 for kryten.
scripts/mgnuc.in:
	Remove the -V2.6.3 for kryten.
1995-06-23 07:06:00 +00:00
Fergus Henderson
e159b6a6c8 In the rule for making foo.depend, make sure to remove foo_init.c.
Mmake.rules:
	In the rule for making foo.depend, make sure to remove foo_init.c.
	This will ensure that it gets remade if necessary.
	(Previously this wasn't necessary since it always got remaid
	whenever any of the .m files changed.)
1995-06-20 07:07:24 +00:00
Zoltan Somogyi
7cabbb2000 Remove the redundant --compile-to-c from command lines.
Mmake.rules:
	Remove the redundant --compile-to-c from command lines.

sicstus_conv.in:
	Fix a bug that translated "\n" into not a newline but a newline
	and two tabs.
1995-06-14 12:13:32 +00:00
Fergus Henderson
ca8f2d6837 Remove rules for cleaning up *.mod.
Mmake.*:
	Remove rules for cleaning up *.mod.

mint.in:
	s/.nl/.m/
1995-05-29 15:29:05 +00:00
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