Skip to content

Commit

Permalink
now generating F90 files from .in files with genf90.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed May 17, 2019
1 parent 81aedfa commit 62b859f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9,111 deletions.
5 changes: 0 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,6 @@ if test "x$enable_timing" = xyes; then
fi
AM_CONDITIONAL([HAVE_PAPI], [test "x$have_papi" = xyes])

AC_CONFIG_FILES(src/flib/piodarray.F90:src/flib/piodarray.F90.in2)
#AC_CONFIG_FILES(src/flib/pionfatt_mod.F90:src/flib/pionfatt_mod.F90.in2)
AC_CONFIG_FILES(src/flib/pionfget_mod.F90:src/flib/pionfget_mod.F90.in2)
AC_CONFIG_FILES(src/flib/pionfput_mod.F90:src/flib/pionfput_mod.F90.in2)

AC_CONFIG_FILES([tests/general/pio_tutil.F90:tests/general/util/pio_tutil.F90])

AC_CONFIG_LINKS([tests/unit/input.nl:tests/unit/input.nl])
Expand Down
18 changes: 14 additions & 4 deletions src/flib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,30 @@ libpio_la_SOURCES = pio.F90
pionfatt_mod.F90: ${top_srcdir}/src/flib/pionfatt_mod.F90.in
${top_srcdir}/scripts/genf90.pl $< > $@

piodarray.F90: piodarray.F90.in
${top_srcdir}/scripts/genf90.pl $< > $@

pionfget_mod.F90: pionfget_mod.F90.in
${top_srcdir}/scripts/genf90.pl $< > $@

pionfput_mod.F90: pionfput_mod.F90.in
${top_srcdir}/scripts/genf90.pl $< > $@

# Each mod file depends on the .o file.
pio_kinds.mod: pio_kinds.$(OBJEXT)
pio_types.mod: pio_types.$(OBJEXT)
pio_support.mod: pio_support.$(OBJEXT)
pio_nf.mod: pio_nf.$(OBJEXT)
piodarray.mod: piodarray.$(OBJEXT)
piodarray.mod: piodarray.F90 piodarray.$(OBJEXT)
pionfatt_mod.mod: pionfatt_mod.F90 pionfatt_mod.$(OBJEXT)
pionfget_mod.mod: pionfget_mod.$(OBJEXT)
pionfput_mod.mod: pionfput_mod.$(OBJEXT)
pionfget_mod.mod: pionfget_mod.F90 pionfget_mod.$(OBJEXT)
pionfput_mod.mod: pionfput_mod.F90 pionfput_mod.$(OBJEXT)
piolib_mod.mod: piolib_mod.$(OBJEXT)
pio.mod: pio.$(OBJEXT)

# Some mod files depend on other mod files.
pio.$(OBJEXT): pio_kinds.mod piolib_mod.mod pio_types.mod piodarray.mod pio_nf.mod pionfatt_mod.mod pionfget_mod.mod pionfput_mod.mod pio_support.mod
pio.$(OBJEXT): pio_kinds.mod piolib_mod.mod pio_types.mod piodarray.mod \
pio_nf.mod pionfatt_mod.mod pionfget_mod.mod pionfput_mod.mod pio_support.mod

# Mod files are built and then installed as headers.
MODFILES = pio_kinds.mod pio_types.mod pio_support.mod pio_nf.mod \
Expand Down
Loading

0 comments on commit 62b859f

Please sign in to comment.