Wiki

Clone wiki

krome_bootcamp_2016_ex / makefile

Back to main

Makefile


The Makefile contains the following variables:

  • fc: compiler variable, can be changed to, e.g., ifort (but, in that case, be sure to change switch);
  • switch: compiler options (change if using something other than gfortran);
  • exec: name of the executable (no need to change this);
  • objs: the list of the objects that will be compiled and the order they are compiled in (corresponding to .f90 files).

It also contains a rule for compiling .f90 files that uses the provided fc and switch variables.

Updated