Makefile: clean up Fortran rules
Created by: fxcoudert
Currently, parallel build works sometimes, but not always, because of a unspecified dependency: the two module object files (parameters.o
and mendeleiev.o
) need to be compiled before all other Fortran sources. They are first in the list, but in parallel build that does not always mean they come first.
The patch adds this dependency, and simplifies the rules to a generic rule.
-
SOURCES_F90
is all the Fortran sources (F90 files in the right directory) -
OBJECTS_F90
is determined automatically from that -
MODOBJECTS_F90
are the module objects, that need to be built first