5 Copyright (C) 2000--2006 Erik Edelmann <erik.edelmann@iki.fi>
8 Makedepf90 is a program for automatic creation of
9 Makefile-style dependency lists for Fortran source code.
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
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
31 To compile and install makedepf90, type the commands
37 Possible options to 'configure' are:
39 --prefix=PREFIX install files in PREFIX (default: /usr/local)
41 --exec_prefix=EPREFIX Prefix for executable files
44 --bindir=DIR install executables in DIR
45 (default: ${exec_prefix}/bin)
47 --mandir=DIR install manpage in DIR
48 (default: ${prefix}/man)
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:
56 setenv CC "C compiler you want to use"
57 setenv CFLAGS "C compiler options you want to use"
60 CC="C compiler you want to use"
61 CFLAGS="C compiler options you want to use"
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.
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.
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
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:
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
91 With 'g++' replaced with 'gcc' I would guess that this is true for
92 the newer (C) versions as well.
97 Please send bug reports or patches to erik.edelmann@iki.fi
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
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.
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.