Module

Usage: makemake90 [src=…] [obj=…] [mod=…] [bin=…]

Optional arguments specify places for source (.f90), object (.o), module (.mod), and executable files. They all default to the currect directory. There is no need to specify them again when updating existing makefiles.

makemake90.dependencies(src='.', obj='.', bin='.', **ignore)[source]

Determine dependencies of Fortran project.

Parameters:
srcstr, default ‘.’

Directory with source files.

objstr, default ‘.’

Directory for object files.

binstr, default ‘.’

Directory for executable binary files.

Returns:
dict of set

Programs with direct and indirect dependencies.

dict of set

Objects with direct dependencies.

set

All objects used.

makemake90.makefile(filename='Makefile', components={}, references={}, related=None, preamble='', epilogue='', src='.', obj='.', mod='.', bin='.', **ignore)[source]

Create makefile.

Parameters:
filenamestr, default ‘Makefile’

Name of makefile.

componentsdict of set, default {}

Programs with direct and indirect dependencies.

referencesdict of set, default {}

Objects with direct dependencies.

relatedset, default None

All objects used. Inferred from components if absent.

preamblestr, default ‘’

Static makefile header.

epiloguestr, default ‘’

Static makefile footer.

srcstr, default ‘.’

Directory with source files.

objstr, default ‘.’

Directory for object files.

modstr, default ‘.’

Directory for module files.

binstr, default ‘.’

Directory for executable binary files.

makemake90.parameters(*filenames, **args)[source]

Fetch parameters from existing makefile and command arguments.

Parameters:
*filenamesstr

Possible names of makefile.

**argsstr

Default command arguments.

Returns:
str

Name of makefile.

str

Static makefile header.

str

Static makefile footer.

dict of str

Command arguments.