| 1 |
vim: ai expandtab |
| 2 |
|
| 3 |
Makedepf90 |
| 4 |
|
| 5 |
Copyright (C) 2000--2006 Erik Edelmann <[email protected]> |
| 6 |
|
| 7 |
|
| 8 |
Makedepf90 is a program for automatic creation of |
| 9 |
Makefile-style dependency lists for Fortran source code. |
| 10 |
|
| 11 |
|
| 12 |
INSTALL |
| 13 |
|
| 14 |
Pre-compiled binary |
| 15 |
------------------- |
| 16 |
|
| 17 |
If you have downloaded a pre-compiled binary, just copy the |
| 18 |
executable 'makedepf90' and the manpage 'makedepf90.1' to wherever |
| 19 |
you want them, typically /usr/local/bin and /usr/local/man/man1, and |
| 20 |
give them proper permissions |
| 21 |
|
| 22 |
> cp makedepf90 /usr/local/bin |
| 23 |
> chmod a+x /usr/local/bin/makedepf90 |
| 24 |
> cp makedepf90.1 /usr/local/man/man1 |
| 25 |
> chmod a+r /usr/local/man/man1/makedepf90.1 |
| 26 |
|
| 27 |
|
| 28 |
Source distribution |
| 29 |
------------------- |
| 30 |
|
| 31 |
To compile and install makedepf90, type the commands |
| 32 |
|
| 33 |
./configure [options] |
| 34 |
make |
| 35 |
make install |
| 36 |
|
| 37 |
Possible options to 'configure' are: |
| 38 |
|
| 39 |
--prefix=PREFIX install files in PREFIX (default: /usr/local) |
| 40 |
|
| 41 |
--exec_prefix=EPREFIX Prefix for executable files |
| 42 |
(default: ${prefix}) |
| 43 |
|
| 44 |
--bindir=DIR install executables in DIR |
| 45 |
(default: ${exec_prefix}/bin) |
| 46 |
|
| 47 |
--mandir=DIR install manpage in DIR |
| 48 |
(default: ${prefix}/man) |
| 49 |
|
| 50 |
./configure will by default use 'gcc' as C compiler if found, |
| 51 |
otherwise 'cc'. CFLAGS will by default be set to '-g -O2' for gcc |
| 52 |
and '-g' for cc. To override these defaults, set environments |
| 53 |
variables CC and CFLAGS before running ./configure: |
| 54 |
|
| 55 |
(t)csh: |
| 56 |
setenv CC "C compiler you want to use" |
| 57 |
setenv CFLAGS "C compiler options you want to use" |
| 58 |
|
| 59 |
bash & friends: |
| 60 |
CC="C compiler you want to use" |
| 61 |
CFLAGS="C compiler options you want to use" |
| 62 |
|
| 63 |
|
| 64 |
If 'configure' doesn't work on your system (perhaps because it |
| 65 |
lacks a working bourne shell implementation), you may try to use |
| 66 |
'Makefile.def' after tweaking it for your needs. |
| 67 |
|
| 68 |
|
| 69 |
PORTABILITY |
| 70 |
|
| 71 |
Makedepf90 is written in C. The C code should compile with little |
| 72 |
or no changes with most standard (ansi C89) compliant C compilers |
| 73 |
on most Unix and Unix-like systems (including MacOS X), but I |
| 74 |
myself have tested recent versions only on GNU/Linux systems, since |
| 75 |
that is all I use myself nowadays. |
| 76 |
|
| 77 |
Parts of makedepf90 are written using flex & bison. Since the C |
| 78 |
code they produce are included in the distribution, you don't need |
| 79 |
these tools unless you are going to make modifications to the |
| 80 |
source code. |
| 81 |
|
| 82 |
I have no experience with compiling makedepf90 on non-unix systems |
| 83 |
of my own, but an earlier (C++) version has been reported to work |
| 84 |
on Windows, with the following comment by Tim Prince: |
| 85 |
|
| 86 |
It requires an unidentified pair of files fnmatch.[ch] |
| 87 |
which I found elsewhere in a directory glibc2.1/posix. With |
| 88 |
that addition, it builds and runs without difficulty using |
| 89 |
g++ on Windows. |
| 90 |
|
| 91 |
With 'g++' replaced with 'gcc' I would guess that this is true for |
| 92 |
the newer (C) versions as well. |
| 93 |
|
| 94 |
|
| 95 |
BUG REPORTS |
| 96 |
|
| 97 |
Please send bug reports or patches to [email protected] |
| 98 |
|
| 99 |
|
| 100 |
HACKING |
| 101 |
|
| 102 |
If you intend to modify makedepf90, please note that the files |
| 103 |
find_dep.c, find_dep.h and lexer.c are automatically generated by |
| 104 |
bison and flex. Don't edit them; edit find_dep.y or lexer.l |
| 105 |
instead. |
| 106 |
|
| 107 |
|
| 108 |
COPYING |
| 109 |
|
| 110 |
This program is free software; you can redistribute it and/or |
| 111 |
modify it under the terms of the GNU General Public License version |
| 112 |
2 as published by the Free Software Foundation. |
| 113 |
|
| 114 |
This program is distributed in the hope that it will be useful, but |
| 115 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 116 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 117 |
General Public License in the file 'COPYING' for more details. |