changeset 994:6ada1ed8eba6

[project @ 1994-12-16 01:24:27 by jwe]
author jwe
date Fri, 16 Dec 1994 01:24:27 +0000
parents 34c1b152d6a3
children af4887fdeaea
files Makeconf.in
diffstat 1 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makeconf.in
+++ b/Makeconf.in
@@ -190,9 +190,21 @@
 # The following pattern rules and the substitution functions require
 # GNU make.  If you don't have it, get it!
 
-@DEFAULT_DOT_C_FROM_DOT_F@
+# Rules for making C source from Fortran source (if necessary).
+#
+# If we are using f2c there will be a command for the `%.c : %.f'
+# pattern and no command for the `%.o : %.f' pattern, so that make
+# will not invoke the fortran compiler by mistake.
+#
+# If we are not using f2c, it should be ok to have an empty rule for
+# the pattern `%.c : %.f', but we don't want to replace make's default
+# rule for making object from Fortran source files, so there should be
+# no pattern or command for that.
 
-@DEFAULT_DOT_O_FROM_DOT_F@
+%.c : %.f
+@DEFAULT_DOT_C_FROM_DOT_F_CMD@
+
+@DEFAULT_DOT_O_FROM_DOT_F_PAT@
 
 # How to make .o files from .c files: