f2c-1998.11.12.m.bs.NIS.README Nov. 15, 1998 f2c F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to C (or C++) source files in the current directory, with `.c' substituted for the final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from standard input and writes C on standard output. File names that end with `.p' or `.P' are taken to be prototype files, as produced by option `-P', and are read first. Compiled for OpenStep 4.2/mach for m68k, Intel, Sparc. Only tested on OS4.2/m68k. Version f2c Sept. 13, 1998 libf2c Nov. 12, 1998 fc May 14, 1995 file: f2c-1998.11.12.m.bs.NIS.tar.gz (** To be placed at http://www.peak.org/openstep/mach/apps/utils/unix ftp://next-ftp.peak.org/pub/openstep/mach/utils/unix **) INSTALLATION The tar.gz archive contains the installer package f2c.pkg. Use /NextAdmin/Installer.app to install. This will install f2c, fcc, libf2c.a, f2c.h and man/man1/f2c.1. fcc is a modified script from original fc (bash has a built-in shell command fc, so I changed the name to fcc), to make it work with bash. fc is a shell script that uses f2c and imitates much of the behavior of commonly found f77 commands, fc. So if you want to use fcc, you need bash (you may need to change the very first line of script, !#/usr/gnu/bin/bash to give the PATH to your bash). The other files contained in the tar.gz archive: f2c-1998.11.12.m.bs.NIS.README -- this file. Source/src.tar.gz Source for the converter itself (f2c). Source/libf2c.zip Source for libf2c.a, which is combination of libf77 and libi77. libf77 is a library of non I/O support routines the generated C may need. libi77 is a library of Fortran I/O routines the generated C may need. Source/fc unmodified original f77-style shell script to compile and load fortran, C, and assembly codes Source/*.OS4.patch patch files which I applied to the original source docs/changes docs/disclaimer docs/f2c.ps -- Postscript for a technical report on f2c. docs/permission docs/readme Port Note: Source downloaded from ftp://netlib.bell-labs.com/netlib/f2c/src.tar ftp://netlib.bell-labs.com/netlib/f2c/libf2c.zip ftp://netlib.bell-labs.com/netlib/f2c/fc.gz Compiled on OpenStep4.2/mach m68k Straight forward compilation 1. to compile f2c, apply the following patch (included as Source/f2c.OS4.patch) for the makefile, and then make. diff -ur ../src.orig/makefile ./makefile --- ../src.orig/makefile Wed Feb 25 08:18:04 1998 +++ ./makefile Fri Oct 30 20:07:07 1998 @@ -2,7 +2,8 @@ .SUFFIXES: .c .o CC = cc -CFLAGS = -O +CFLAGS = -g -O -arch m68k -arch i486 -arch sparc +LDFLAGS = -arch m68k -arch i486 -arch sparc SHELL = /bin/sh YACC = yacc YFLAGS = 2. to compile libf2c.a, unzip the src, then go into the directory libf2c, and cp makefile.u makefile Then copy the patch "libf2c.OS4.patch" into the directory and apply it by patch -p0 < libf2c.OS4.patch This will patch the makefile you copied and open.c. Then, simply make. Credits: /**************************************************************** Copyright 1990 - 1997 by AT&T, Lucent Technologies and Bellcore. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that the copyright notice and this permission notice and warranty disclaimer appear in supporting documentation, and that the names of AT&T, Bell Laboratories, Lucent or Bellcore or any of their entities not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. AT&T, Lucent and Bellcore disclaim all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall AT&T, Lucent or Bellcore be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with the use or performance of this software. ****************************************************************/ Packager: Naoki Takebayashi Biology Dept. Indiana Univ. Bloomington, IN, USA