[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
.F fix to automake.in
From: |
Christian Holm Christensen |
Subject: |
.F fix to automake.in |
Date: |
Mon, 21 May 2001 09:40:43 +0200 |
Dear Automake team,
First off, thanks for a great piece of software.
I wanted to make some libraries of Fortran77 code, but I had some
problem with preprocessed Fortran source files.
I did a bit of tracking, and found that lang_ppf77_rewrite wasn't
defined, and that the subroutine lang_ppf77_finish output errouneous
rules.
Below is a patch that should fix these problems. I hope you find it
usefull. I did this patch against version 1.4 (latest Changelog entry
at 1999-01-14).
If you already have solved this problem, my apologise for bothering
you.
Yours,
Christian -----------------------------------------------------------
Holm Christensen Phone: (+45) 35 35 96 91
Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305
DK-2200 Copenhagen N Web: www.nbi.dk/~cholm
Denmark Email: address@hidden
<<< Begin patch <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
--- automake.in Fri Jan 15 07:42:36 1999
+++ automake.in.cholm Mon May 21 09:23:59 2001
@@ -4502,6 +4502,12 @@
return 1;
}
+# Rewrite a single Fortran 77 preprocessed file.
+sub lang_ppf77_rewrite
+{
+ return 1;
+}
+
# Rewrite a single Objective C file.
sub lang_objc_rewrite
{
@@ -4832,19 +4838,19 @@
&define_variable ('F77LD', '$(F77)');
&define_variable ('F77LINK', $ltlink . '$(F77LD) $(AM_FFLAGS) $(FFLAGS)
$(LDFLAGS) -o $@');
- $output_rules .= ("$ext.o:\n"
+ $output_rules .= (".$ext.o:\n"
. "\t\$(F77COMPILE) -c \$<\n");
# FIXME: Using cygpath should be somehow conditional.
- $output_rules .= ("$ext.obj:\n"
+ $output_rules .= (".$ext.obj:\n"
. "\t\$(F77COMPILE) -c `cygpath -w \$<`\n")
if ($seen_objext);
- $output_rules .= ("$ext.lo:\n"
+ $output_rules .= (".$ext.lo:\n"
. "\t\$(LTF77COMPILE) -c \$<\n")
if ($seen_libtool);
# We also handle the case of preprocessing `.F' files into `.f'
# files.
- $output_rules .= ("$ext.f:\n"
+ $output_rules .= (".$ext.f:\n"
. "\t\$(F77COMPILE) -F \$<\n");
if (! defined $configure_vars{'F77'})
>>> End patch >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- .F fix to automake.in,
Christian Holm Christensen <=
- Re: .F fix to automake.in, Akim Demaille, 2001/05/21
- Re: .F fix to automake.in, Christian Holm Christensen, 2001/05/21
- Re: .F fix to automake.in, Akim Demaille, 2001/05/21
- Re: .F fix to automake.in, Christian Holm Christensen, 2001/05/21
- Re: .F fix to automake.in, Gary V . Vaughan, 2001/05/21
- Re: .F fix to automake.in, Tim Van Holder, 2001/05/21
- Re: .F fix to automake.in, Tom Tromey, 2001/05/21
- Re: .F fix to automake.in, Tom Tromey, 2001/05/22
- Re: .F fix to automake.in, Christian Holm Christensen, 2001/05/22
- Re: .F fix to automake.in, Tom Tromey, 2001/05/22