mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 18:09:53 +08:00
f30bc2e7f5
Sat Jun 13 03:46:40 1998 Craig Burley <burley@gnu.org> * Makefile.in (install): Don't install if $(libsubdir) is empty; issue a diagnostic saying top-level Makefile must pass it in instead, and exit. * Makefile.in (g2c.h): Rename from f2c.h. * Makefile.in, libF77/Makefile.in, libI77/Makefile.in, libU77/Makefile.in: Rewrite config and var assignment sections to be even more minimal than before, and to more clearly documented what macros are expected to be set and to what sorts of values. Eliminate CROSS and related stuff, since there's no such things as CROSS in egcs. Rename GCC_FOR_TARGET to CC throughout. * Makefile.in (stamp-libi77, stamp-libf77, stamp-libu77): Eliminate CROSS. * configure.in: Eliminate CROSS. Rename libf2c.a and f2c.h to libg2c.a and g2c.h, normalize and simplify g77/libg2c build process: * Makefile.in: Remove all stuff pertaining to installation, cleaning, and so on. Parent Makefile does all that now. Pass F2C_H_DIR, G2C_H_DIR, and GCC_H_DIR, the pathnames for the directories containing f2c.h, g2c.h, and other #include files, to subdirectory Makefiles. (stamp-libf77, stamp-libi77, stamp-libu77): Don't specify `-f Makefile' anymore, it's not needed now that subdirectory makefile's from netlib are renamed to makefile.netlib in g77 source (and to makefile.ori by configuration process, in case they're still around somehow). (stamp-libe77): Don't make libE77 dir unless it doesn't exist, if it does just delete all objects in it. Compile using $(GCC_FOR_TARGET), not $(CC). (rebuilt): Remove this and all subordinate targets, as parent Makefile now handles all that. (*clean): Remove. * configure.in (Pad_UDread, ALWAYS_FLUSH, WANT_LEAD_0): Remove these and commentary to new f2c.h file. AC_OUTPUT g2c.h instead of f2c.h. Remove old commentary regarding concatenation. * g2c.h.in: Rename from f2c.h.in, add appropriate commentary. * f2c.h: New file, a wrapper for g2c.h that does libg2c-specific stuff. * libF77/Makefile.in, libI77/Makefile.in, libU77/Makefile.in: Change $(ALL_CFLAGS) to use F2C_H_DIR, G2C_H_DIR, and GCC_H_DIR macros. Remove F2C_H macro, replace use with explicit dependencies on f2c.h and g2c.h. (*clean): Remove. From-SVN: r20507
49 lines
2.3 KiB
Plaintext
49 lines
2.3 KiB
Plaintext
1998-04-20
|
|
|
|
This directory contains the f2c library packaged for use with g77 to configure
|
|
and build automatically (in principle!) as part of the top-level configure and
|
|
make steps. This depends on the makefile and configure fragments in ../f.
|
|
g77 names this library `libg2c' to avoid conflict with existing copies
|
|
of `libf2c' on a system.
|
|
|
|
Some small changes have been made to the f2c distributions of lib[FI]77 which
|
|
come from <ftp:bell-labs.com/netlib/f2c/> and are maintained (excellently) by
|
|
David M. Gay <dmg@bell-labs.com>. See the Notice files for copyright
|
|
information. I'll try to get the changes rolled into the f2c distribution.
|
|
|
|
Files that come directly from netlib are either maintained in the
|
|
gcc/f/runtime/ directory under their original names or, if they
|
|
are not pertinent for g77's version of libf2c, under their original
|
|
names with `.netlib' appended. For example, gcc/f/runtime/permissions.netlib
|
|
is a copy of f2c's top-level`permissions' file in the netlib distribution.
|
|
In this case, it applies only to the relevant portions of the libF77/ and
|
|
libI77/ directories; it does not apply to the libU77/ directory, which is
|
|
distributed under different licensing arrangements. Similarly,
|
|
the `makefile.netlib' files in libF77/ and libI77/ are copies of
|
|
the respective `makefile' files in the netlib distribution, but
|
|
are not used when building g77's version of libf2c.
|
|
|
|
The `README.netlib' files in libF77/ and libI77/ thus might be
|
|
interesting, but should not be taken as guidelines for how to
|
|
configure and build libf2c in g77's distribution.
|
|
|
|
The packaging for auto-configuration was done by Dave Love <d.love@dl.ac.uk>.
|
|
Minor changes have been made by James Craig Burley <burley@gnu.org>,
|
|
who probably broke things Dave had working. :-)
|
|
|
|
Among the user-visible changes (choices) g77 makes in its
|
|
version of libf2c:
|
|
|
|
- f2c.h configured to default to padding unformatted direct reads
|
|
(#define Pad_UDread), because that's the behavior most users
|
|
expect.
|
|
|
|
- f2c.h configured to default to outputting leading zeros before
|
|
decimal points in formatted and list-directed output, to be compatible
|
|
with many other compilers (#define WANT_LEAD_0). Either way is
|
|
standard-conforming, however, and you should try to avoid writing
|
|
code that assumes one format or another.
|
|
|
|
- dtime_() and etime_() are from Dave Love's libU77, not from
|
|
netlib's libF77.
|