FGEN(1) 9/Apr/98 FGEN(1)
User Contributed Perl Documentation User Contributed Perl Documentation
perl 5.003
NAME
fgen - Makefile generator (for GNU make) for fortran 77/90 code
SYNOPSIS
fgen -m|-d [-h] [-77] [-c][-f fgenrc] [-i dir [-i dir] ...]
[-l dir [-l dir] ...] [-s dir [-s dir] ...]
DESCRIPTION
Generate makefiles and dependencies for fortran 77/90 code without
hassle.
OPTIONS
-m Generate Makefiles. These Makefiles are only targeted for
the GNU Make program. Make other than GNU Make will NOT be
able to read the Makefiles produced by fgen without
errors. You have been warned! Dependencies are
automatically generated when creating makefiles.
-d Generate dependencies. Two files are generated:
dependencies and objectlist file. The first contains all
file dependencies, and the second the definition of the
OBJS macro which list all objects. Dependencies are also
generated by calling 'make dep' once you have created the
makefiles.
-77 This switch tells fgen that all header files are in
fortran 77. This seems necessary, because there is no way
to be sure if a header file is in fortran 77 or in fortran
90
-h Show usage and exit
-c Do not check that the programms used in the makefiles are
in the PATH. This is useful for buiding a makefile on a
different machine than the one used to run make.
-f fgenrc fgenrc is an alternate configuration file for fgen. If
this option is not specified, fgen search in this order: a
user specific configuration file ~/.fgenrc, then the
system default configuration file
/usr/local/share/fgen/fgenrc. If this fails, that means
that your installation is broken and fgen exit with an
error message
-s srcdir -l libdir -i incdir
List of the search directories. If none is specified, the
current working directory is taken as a srcdir (the same
as if -s ./ was specified).
- 1 - Formatted: November 3, 2025
FGEN(1) 9/Apr/98 FGEN(1)
User Contributed Perl Documentation User Contributed Perl Documentation
perl 5.003
srcdir: an executable is assumed as the target
libdir: a library is assumed as target
incdir: optionnaly contains header files (*.h ...)
A single dependencies file is generated in incdirs. The
script assume that there is only include files living in
incdirs.
There is no limit for the number of search directories.
FILES
~/.fgenrc
/usr/local/share/fgen/fgenrc
AUTHOR
Beroud Jean-Marc (ber@sma.ch). Bug reports and suggestions are
welcome!
- 2 - Formatted: November 3, 2025