Makefile

The Makefile controls the building of Tonto. To configure the Makefile, run the configure script. The Makefile requires GNU make to work correctly, most other make programs will fail. The configure script checks for GNU make on your system.

Common options for make:
run_mol.xmake the main executable, run_mol.x
installmakes and installs run_mol.x
bla.obuilds the object file bla.o from bla.foo, useful for developers
cleanremoves built program files
docscleanremoves built documentation files
distcleanremoves all built files

eg, "make install" will build and install run_mol.x.



Changing the Makefile

You shouldn't have to normally edit the Makefile, although there may be some things that need changing. In particular, the F90 variable can take a few options, FFAST for faster programs, FDEBUG to insert debugging code in programs, and FPROF for timing programs. eg,
F90 = $(FFAST) $(FPROF)
Usually the FFAST on its own is best, as it produces the fastest code.

If you want to change the command line arguments to the Fortran compiler, then it is safest to edit the appropriate file in the site_config directory, as if you run configure again, the Makefile will get overwritten.