[m-rev.] trivial: update comments in standalone_c makefile

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Jun 3 15:42:21 AEST 2011


Branches: main

samples/c_interface/standalone_c/Makefile:
 	Delete comments regarding the mgnuc and ml scripts.
 	The example was changed so that it doesn't rely on those
 	some time ago.

Julien.

Index: Makefile
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/samples/c_interface/standalone_c/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	20 Jan 2009 06:24:05 -0000	1.3
+++ Makefile	3 Jun 2011 05:40:35 -0000
@@ -101,18 +101,9 @@
  	$(MMC) $(GRADEOPT) --ml mercury_lib \
  		--generate-standalone-interface mercury_lib_int

-# We use the mgnuc script here rather than invoking gcc directly since
-# c_main.c #includes parts of the Mercury runtime and mgnuc knows where to
-# find those header files without us specifying the location.  If we used
-# gcc (or some other C compiler) directly then we would need to specify the
-# location of the runtime and standard library header files, e.g. by using
-# the `-I' option.
-#
  c_main.o: c_main.c mercury_lib.init mercury_lib_int.o
  	$(CC) $(CFLAGS) -c c_main.c

-# For similar reasons we use the ml script rather than invoking ld directly.
-#
  c_main: c_main.o mercury_lib_int.o mercury_lib.init
  	$(LD) -o c_main c_main.o $(MERCURY_LIB_LDFLAGS) mercury_lib_int.o $(LIB_LDFLAGS)

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list