diff: tests/Mmake.common & GRADEFLAGS

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jan 15 13:05:23 AEDT 1998


tests/Mmake.common:
	Add $(GRADEFLAGS-$@) as well as $(GRADEFLAGS-$*) to GRADEFLAGS.
	When doing the final link step, $@ is set but $* is not,
	so this change is necessary for the setting of `GRADEFLAGS-foo'
	to get passed to `ml' when linking `foo'.
	Also add some comments.

Index: Mmake.common
===================================================================
RCS file: /home/mercury1/repository/tests/Mmake.common,v
retrieving revision 1.10
diff -u -u -r1.10 Mmake.common
--- Mmake.common	1998/01/09 04:57:29	1.10
+++ Mmake.common	1998/01/15 01:50:22
@@ -1,9 +1,10 @@
 #-----------------------------------------------------------------------------#
 
-GRADEFLAGS = --grade $(GRADE) $(GRADEFLAGS-$*) $(EXTRA_GRADEFLAGS)
-MCFLAGS = $(MCFLAGS-$*) $(EXTRA_MCFLAGS)
-MGNUCFLAGS=-g $(EXTRA_MGNUCFLAGS) $(EXTRA_CFLAGS)
-MLFLAGS = $(MLFLAGS-$@) $(EXTRA_MLFLAGS)
+GRADEFLAGS =	--grade $(GRADE) $(GRADEFLAGS-$*) $(GRADEFLAGS-$@) \
+		$(EXTRA_GRADEFLAGS)
+MCFLAGS =	$(MCFLAGS-$*) $(EXTRA_MCFLAGS)
+MGNUCFLAGS =	-g $(EXTRA_MGNUCFLAGS) $(EXTRA_CFLAGS)
+MLFLAGS =	$(MLFLAGS-$@) $(EXTRA_MLFLAGS)
 
 # override this with `mmake HAVE_NUPROLOG=yes'
 # if you want to rebuild the `.exp' files.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list