Commit 51f3a6c5 authored by Sergey Kosukhin's avatar Sergey Kosukhin Committed by Thomas Jahns
Browse files

Don't warn for some modules when generating Fortran dependencies.

* The files for these modules are frequently not found, because they
  are provided by the compiler in some place not directly observable.
parent 438a26bf
......@@ -33,9 +33,16 @@ noinst_PROGRAMS = show_ieee_emulation \
check_prng_f \
graph_build
makef90depend_ignore_args = \
--ignore-module=ieee_arithmetic \
--ignore-module=iso_c_binding \
--ignore-module=omp_lib
if USE_METIS
noinst_PROGRAMS += \
graph_partition
else
makef90depend_ignore_args += --ignore-module=ppm_graph_partition_serial
endif
AM_FCFLAGS = $(FPP_INCOPT)$(top_srcdir)/include/f90 \
......@@ -74,7 +81,8 @@ FCCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=FC $(AM_LIBTOOLFLAGS) \
done | grep '\.f90$$' ` ; \
FC="$(FC)" FPP="$(FPP)" \
$(PERL) -I$(top_srcdir)/scripts \
$(top_srcdir)/scripts/makef90depends --ignore-module iso_c_binding \
$(top_srcdir)/scripts/makef90depends \
$(makef90depend_ignore_args) \
--strip-obj-dirname --parse-cache=./$(DEPDIR)/FC.depdb \
--fc-mod-flag=$(FC_MOD_FLAG) --fc-def-opt=$(FPP_DEFOPT) \
--fc-inc-flag=$(FPP_INCOPT) --fc-mod-suf=.$(FCMODEXT) \
......
......@@ -407,6 +407,13 @@ uninstall-local:
"$(DESTDIR)$(libdir)/pkgconfig/scales-ppm-core.pc"
-rmdir "$(DESTDIR)$(libdir)/pkgconfig"
makef90depend_ignore_args = \
--ignore-module=netcdf \
--ignore-module=ieee_arithmetic \
--ignore-module=iso_c_binding \
--ignore-module=mpi \
--ignore-module=omp_lib
./$(DEPDIR)/FC.deps: $(libscalesppm_la_SOURCES) \
$(nodist_libscalesppm_la_SOURCES) \
$(libtestdata_la_SOURCES) \
......@@ -419,7 +426,8 @@ uninstall-local:
done | grep '\.f90$$' ` ; \
FC="$(FC)" FPP="$(FPP)" \
$(PERL) -I$(top_srcdir)/scripts \
$(top_srcdir)/scripts/makef90depends --ignore-module iso_c_binding \
$(top_srcdir)/scripts/makef90depends \
$(makef90depend_ignore_args) \
--fc-mod-flag=$(FC_MOD_FLAG) --fc-def-opt=$(FPP_DEFOPT) \
--fc-inc-flag=$(FPP_INCOPT) --fc-mod-suf=.$(FCMODEXT) \
--fc-mod-case=$(FCMODCASE) --prog-fpp='$(FPP)' \
......
......@@ -168,13 +168,20 @@ COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
FCCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=FC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(FC) -static $(AM_FCFLAGS) $(FCFLAGS)
makef90depend_ignore_args = \
--ignore-module=mpi \
--ignore-module=ieee_arithmetic \
--ignore-module=iso_c_binding \
--ignore-module=omp_lib
./$(DEPDIR)/FC.deps: $(SOURCES) Makefile
@unique=`for i in $(SOURCES); do \
if test -f "$$i"; then echo "$$i"; else echo "$(srcdir)/$$i"; fi; \
done | grep '\.f90$$' ` ; \
FC="$(FC)" FPP="$(FPP)" \
$(PERL) -I$(top_srcdir)/scripts \
$(top_srcdir)/scripts/makef90depends --ignore-module iso_c_binding \
$(top_srcdir)/scripts/makef90depends \
$(makef90depend_ignore_args) \
--strip-obj-dirname --parse-cache=./$(DEPDIR)/FC.depdb \
--fc-mod-flag=$(FC_MOD_FLAG) --fc-def-opt=$(FPP_DEFOPT) \
--fc-inc-flag=$(FPP_INCOPT) --fc-mod-suf=.$(FCMODEXT) \
......
Supports Markdown
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