[m-rev.] diff: tools/lml
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Sep 20 16:41:38 AEST 2002
Estimated hours taken: 0.5
Branches: main
tools/lml:
New file. `lml' is to `ml' as `lmc' is to `mmc'.
This shell script allows you to execute a version of the Mercury linker
that will link with the libraries that you have built in a workspace.
Workspace: /home/ceres/fjh/mercury
Index: tools/lml
===================================================================
RCS file: tools/lml
diff -N tools/lml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ tools/lml 2 Jun 2002 12:17:14 -0000
@@ -0,0 +1,50 @@
+#!/bin/sh
+#---------------------------------------------------------------------------#
+# Copyright (C) 2001 The University of Melbourne.
+# This file may only be copied under the terms of the GNU General
+# Public License - see the file COPYING in the Mercury distribution.
+#---------------------------------------------------------------------------#
+#
+# This shell script allows you to execute a version of the Mercury linker
+# that will link with the libraries that you have built in a workspace.
+#
+# You can use this with `mmake' as follows:
+#
+# WORKSPACE=$HOME/mer/ws1 PATH=$WORKSPACE/tools:$PATH mmake MC=lmc ML=lml
+#
+# If you want to track down some C level bug, you can ask this script to
+# pass -g to the C compiler and to the linker by setting the environment
+# variable MMC_CDEBUG to the string "true".
+
+if test ! -d $WORKSPACE
+then
+ echo "workspace $WORKSPACE does not exist"
+fi
+
+if test -s $WORKSPACE/boehm_gc/libgc.a
+then
+ gclib="$WORKSPACE/boehm_gc/libgc.a"
+elif test -s $WORKSPACE/boehm_gc/libpar_gc.a
+then
+ gclib="$WORKSPACE/boehm_gc/libpar_gc.a"
+elif test -s $WORKSPACE/boehm_gc/libgc_prof.a
+then
+ gclib="$WORKSPACE/boehm_gc/libgc_prof.a"
+else
+ echo "$WORKSPACE/boehm_gc does not have a gc library"
+fi
+
+MERCURY_LIBS="$WORKSPACE/trace/libmer_trace.a $WORKSPACE/browser/libmer_browser.a $WORKSPACE/library/libmer_std.a $WORKSPACE/runtime/libmer_rt.a $gclib -lm"
+export MERCURY_LIBS
+
+PATH="$WORKSPACE/scripts:$WORKSPACE/util:$PATH"
+export PATH
+
+if test "$MMC_CDEBUG" != ""
+then
+ CDEBUG_FLAGS="--no-strip"
+else
+ CDEBUG_FLAGS=""
+fi
+
+ml $CDEBUG_FLAGS "$@"
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list