Re: R-alpha: Fortran etc.

Martin Maechler (maechler@stat.math.ethz.ch)
Tue, 12 Nov 96 09:55:01 +0100


Date: Tue, 12 Nov 96 09:55:01 +0100
Message-Id: <9611120855.AA03651@>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: ihaka@stat.auckland.ac.nz
In-Reply-To: <199611120413.RAA25707@stat13.stat.auckland.ac.nz> (message from
Subject: Re: R-alpha:  Fortran etc.

My 5  :

1) Personally, I'd prefer  "patching"  Fortran-66 code to Fortran-77

2) FC is THE name of the  Fortran_Compiler
	
	- for GNU make  (any platform)

	- for /usr/bin/make		on  SunOS 4.1.4
 and	- for /usr/ccs/bin/make		on  Solaris 2.5


e.g. on Solaris :

florence{maechler}303>  /usr/ccs/bin/make -p | egrep -i '(f77|fc)'

        $(FC) $(FFLAGS) -c  $*.F
        $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $*.f
        $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $*.F
        $(FC) $(FFLAGS) -c  $*.f
LINK.r= $(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS)
LINK.f= $(FC) $(FFLAGS) $(LDFLAGS)
LINK.F= $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS)
F77= f77
FC= f77
COMPILE.r= $(FC) $(FFLAGS) $(RFLAGS)  -c
COMPILE.f= $(FC) $(FFLAGS)  -c
COMPILE.F= $(FC) $(FFLAGS) $(CPPFLAGS)  -c


florence{maechler}307> make --version

GNU Make version 3.74, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
 
florence{maechler}308> make -p | egrep -i '(f77|fc)'

make: *** No targets specified and no makefile found.  Stop.
F77 = $(FC)
PREPROCESS.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -F
COMPILE.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c
LINK.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
COMPILE.f = $(FC) $(FFLAGS) $(TARGET_ARCH) -c
PREPROCESS.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -F
FC = f77
COMPILE.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
F77FLAGS = $(FFLAGS)
LINK.r = $(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH)
LINK.f = $(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-