The program is temporarily named fmakegen.demo for demonstration purposes.
vincent% add fortran
vincent% fmakegen.demo -help
fmakegen -- simple automatic makefile generator for Fortran
Usage: fmakegen [-h | -help]
Options:
-h Show help text
-help Show help text
Instructions:
Create a file which contains a list (one per line) of Fortran source
file names. Name this file 'make_lis.dat'. The first filename in this
file is assumed to contain the main program.
vincent% ls
fun1.f prog.f sub1.f sub2.f
vincent% ls *.f > make_lis.dat
vincent% emacs make_lis.dat
[edit the 'make_lis.dat' such that 'prog.f' is the first line]
vincent% cat make_lis.dat
prog.f
fun1.f
sub1.f
sub2.f
Now run 'fmakegen' and redirect STDOUT to 'makefile':
vincent% fmakegen > makefile
Run 'make':
vincent% make