Skip to content

Commit

Permalink
progress on fortran autotools build
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 19, 2019
1 parent ebaf86e commit 9e9ea92
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ fi
#AC_CHECK_SIZEOF([MPI_Offset], [], [[#include <mpi.h>]])
#AC_DEFINE([SIZEOF_MPI_OFFSET], [8], [netCDF classic library available])

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)

# Create the config.h file.
AC_CONFIG_HEADERS([config.h])

Expand Down
16 changes: 14 additions & 2 deletions src/flib/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## This is the automake file to build the PIO Fortran library.
# Ed Hartnett 3/19/19

# Turn off parallel builds in this directory.
.NOTPARALLEL:

# The library we are building.
#lib_LTLIBRARIES = libpiof.la

Expand All @@ -13,19 +16,28 @@
#libpiof_la_SOURCES = pio.F90

# Build this uninstalled convenience library.
noinst_LTLIBRARIES = libpio_kinds.la libpio_support.la
noinst_LTLIBRARIES = libpio_types.la libpio_nf.la libpio_kinds.la \
libpio_support.la
#libpiodarray.la libpionfatt.la libpionfput.la

# The convenience libraries depends on their source.
libpio_types_la_SOURCES = pio_types.F90
libpio_nf_la_SOURCES = pio_nf.F90
libpio_kinds_la_SOURCES = pio_kinds.F90
libpio_support_la_SOURCES = pio_support.F90
#libpiodarray_la_SOURCES = piodarray.F90
#libpionfatt_la_SOURCES = pionfatt.F90

# Each mod file depends on the .o file.
pio_types.mod: pio_types.$(OBJEXT)
pio_nf.mod: pio_nf.$(OBJEXT)
pio_kinds.mod: pio_kinds.$(OBJEXT)
pio_support.mod: pio_support.$(OBJEXT)
#piodarray.mod: piodarray.$(OBJEXT)

# Mod files are built and then installed as headers.
MODFILES = pio_kinds.mod pio_support.mod
MODFILES = pio_types.mod pio_nf.mod pio_kinds.mod pio_support.mod
#piodarray.mod
BUILT_SOURCES = $(MODFILES)
include_HEADERS = $(MODFILES)

Expand Down

0 comments on commit 9e9ea92

Please sign in to comment.