Commit 4104012a authored by Lorenz Huedepohl's avatar Lorenz Huedepohl

Add inter-target Fortran module dependencies

The fdep magic only works within a single Automake target, add the
remaining dependencies by hand. Parallel compilation should now work
also for "make all" again.
parent 51b60930
......@@ -289,4 +289,16 @@ LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool
@FORTRAN_MODULE_DEPS@
# Fortran module dependencies only work within each target,
# specify that the test programs need a finished library before
# one can compile them
# $1 Object name
define require_elpa_lib
$1: $(build_lib)
endef
$(foreach p,$(bin_PROGRAMS),$(foreach o,$($p_OBJECTS),$(eval $(call require_elpa_lib,$o))))
......@@ -1966,6 +1966,17 @@ libtool: $(LIBTOOL_DEPS)
@FORTRAN_MODULE_DEPS@
# Fortran module dependencies only work within each target,
# specify that the test programs need a finished library before
# one can compile them
# $1 Object name
define require_elpa_lib
$1: $(build_lib)
endef
$(foreach p,$(bin_PROGRAMS),$(foreach o,$($p_OBJECTS),$(eval $(call require_elpa_lib,$o))))
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment