Prev Up (Under construction)

f2c

FORTRAN-to-C translator

Compilation

V20061008

This package (i.e. its sources) appears to be very strangely organized and partially incomplete (sysdeptest.c is missing in the latest release). There's no comprehensive source archive, no versioning, so I used sth like
wget -r -e robots=off http://www.netlib.org/f2c/
to get what appeared to be the sources. Then
  1. cd src     
    make clean
    make        
    cd ..
    
    Note that the Makefile might need adaption of CFLAGS.
  2. manually copy binaries, man pages etc to its final location

20100827

This version seems to be better organized. The source for the f2c is in src, the libf2c comes as an extra zip file which I unpacked into an extra lib directory.
  1. mkdir lib; cd lib
    cp -p makefile.u Makefile # modify LDFLAGS=-r for AIX
                              # add/modify the "install" section, if so desired:     
                              # LIBDIR=/tmp/f2c-20100827/lib
                              # INCDIR=/tmp/f2c-20100827/
    make clean
    make f2c.h      
    make        
    make install       
    
  2. Compile the executable:
    cd ../src     
    cp -p makefile.u Makefile      
                              # add an "install" section, if so desired     
    make clean
    make        
    make install       
    

Installation/Configuration


Last updated: Tue, May 28, 2013 10:44:17 AM , M.Kraemer