From 7e5fcd3a4a4f4949505b47d48d0292e944b3e670 Mon Sep 17 00:00:00 2001 From: "M. Scot Breitenfeld" Date: Mon, 26 Sep 2016 11:49:06 -0500 Subject: Added rule to build buildiface program, without a rule, build would add repeated compile options when using the NAG compiler. --- fortran/src/Makefile.am | 3 +++ fortran/test/Makefile.am | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/fortran/src/Makefile.am b/fortran/src/Makefile.am index a271666..bbdae2f 100644 --- a/fortran/src/Makefile.am +++ b/fortran/src/Makefile.am @@ -138,6 +138,9 @@ H5_buildiface_SOURCES = H5_buildiface.F90 # Mark this directory as part of the Fortran API FORTRAN_API=yes +H5_buildiface$(EXEEXT): $(H5_buildiface_SOURCES) H5config_f.inc + $(FC) $(FCFLAGS) $< -o $@ -I. + # Hardcode the dependencies of these files. There isn't a known way of # determining this automagically (like we do with the C files). So, when # doing a parallel make, some modules could be made way before the diff --git a/fortran/test/Makefile.am b/fortran/test/Makefile.am index 60f9f53..67b39e2 100644 --- a/fortran/test/Makefile.am +++ b/fortran/test/Makefile.am @@ -92,10 +92,14 @@ tf_gen.F90: H5_test_buildiface$(EXEEXT) H5_test_buildiface_SOURCES = H5_test_buildiface.F90 -# The build of the H5_test_buildiface does depend on any libraries, so set it +# The build of the H5_test_buildiface does not depend on any libraries, so set it # to nothing. -H5_test_buildiface_LDADD = +H5_test_buildiface_LDADD = + + +H5_test_buildiface$(EXEEXT): $(H5_test_buildiface_SOURCES) + $(FC) $(FCFLAGS) $< -o $@ -I. # fflush2 depends on files created by fflush1 fflush2.chkexe_: fflush1.chkexe_ -- cgit v0.12