forked from ESMCI/cime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ESMCI#1378 from NCAR/ejh_fortran_build
autotools fortran build
- Loading branch information
Showing
18 changed files
with
10,466 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This is part of the PIO package. | ||
# | ||
# Assemble the CPPFLAGS and for PIO Fortran tests. | ||
# | ||
# Ed Hartnett 3/26/19 | ||
|
||
# Set the CPPFLAGS. | ||
AM_CPPFLAGS = -I$(top_srcdir)/src/flib -D_NETCDF | ||
|
||
# Is the user building with pnetcdf? | ||
if BUILD_PNETCDF | ||
AM_CPPFLAGS += -D_PETCDF | ||
endif | ||
|
||
# Is the user building with netCDF-4 parallel I/O? | ||
if BUILD_NETCDF4 | ||
AM_CPPFLAGS += -D_NETCDF4 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
## 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 | ||
|
||
AM_CPPFLAGS = -D_NETCDF -D_NETCDF4 -D_PETCDF | ||
|
||
# These linker flags specify libtool version info. | ||
# See http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning | ||
# for information regarding incrementing `-version-info`. | ||
libpiof_la_LDFLAGS = -version-info 1:0:0 | ||
|
||
# The library soure files. | ||
libpiof_la_LIBADD = libpio_nf.la libpio_kinds.la \ | ||
libpio_support.la libpiodarray.la libpionfatt.la libpionfget.la \ | ||
libpionfput.la libpiolib_mod.la libpio.la | ||
|
||
libpiof_la_SOURCES = pio_types.F90 | ||
|
||
# Build these uninstalled convenience libraries. | ||
noinst_LTLIBRARIES = libpio_kinds.la libpio_types.la \ | ||
libpio_support.la libpio_nf.la libpiodarray.la libpionfatt.la \ | ||
libpionfget.la libpionfput.la libpiolib_mod.la libpio.la | ||
|
||
# The convenience libraries depends on their source. | ||
libpio_kinds_la_SOURCES = pio_kinds.F90 | ||
libpio_types_la_SOURCES = pio_types.F90 | ||
libpio_support_la_SOURCES = pio_support.F90 | ||
libpio_nf_la_SOURCES = pio_nf.F90 | ||
libpiodarray_la_SOURCES = piodarray.F90 | ||
libpionfatt_la_SOURCES = pionfatt_mod.F90 | ||
libpionfget_la_SOURCES = pionfget_mod.F90 | ||
libpionfput_la_SOURCES = pionfput_mod.F90 | ||
libpiolib_mod_la_SOURCES = piolib_mod.F90 | ||
libpio_la_SOURCES = pio.F90 | ||
|
||
# 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) | ||
pionfatt_mod.mod: pionfatt_mod.$(OBJEXT) | ||
pionfget_mod.mod: pionfget_mod.$(OBJEXT) | ||
pionfput_mod.mod: pionfput_mod.$(OBJEXT) | ||
piolib_mod.mod: piolib_mod.$(OBJEXT) | ||
pio.mod: pio.$(OBJEXT) | ||
|
||
# Mod files are built and then installed as headers. | ||
MODFILES = pio_kinds.mod pio_types.mod pio_support.mod pio_nf.mod \ | ||
piodarray.mod pionfatt_mod.mod pionfget_mod.mod pionfput_mod.mod \ | ||
piolib_mod.mod pio.mod | ||
BUILT_SOURCES = $(MODFILES) | ||
include_HEADERS = $(MODFILES) | ||
|
||
CLEANFILES = *.mod | ||
|
||
EXTRA_DIST = CMakeLists.txt |
Oops, something went wrong.