chore: Change version number to next development version (#874)
[FMS.git] / fms2_io / Makefile.am
blobc186d7667885b9417482f8002583cf5310646dd5
1 #***********************************************************************
2 #*                   GNU Lesser General Public License
3 #*
4 #* This file is part of the GFDL Flexible Modeling System (FMS).
5 #*
6 #* FMS is free software: you can redistribute it and/or modify it under
7 #* the terms of the GNU Lesser General Public License as published by
8 #* the Free Software Foundation, either version 3 of the License, or (at
9 #* your option) any later version.
11 #* FMS is distributed in the hope that it will be useful, but WITHOUT
12 #* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 #* for more details.
16 #* You should have received a copy of the GNU Lesser General Public
17 #* License along with FMS.  If not, see <http://www.gnu.org/licenses/>.
18 #***********************************************************************
20 # This is an automake file for the fms2_io directory of the FMS package.
22 # Include .h and .mod files.
23 AM_CPPFLAGS = -I$(top_srcdir)/fms2_io/include -I$(top_srcdir)/include
24 AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
26 # Build these uninstalled convenience libraries.
27 noinst_LTLIBRARIES = libfms2_io.la
29 # Each convenience library depends on its source.
30 libfms2_io_la_SOURCES = \
31   fms2_io.F90 \
32   fms_io_utils.F90 \
33   netcdf_io.F90 \
34   fms_netcdf_domain_io.F90 \
35   fms_netcdf_unstructured_domain_io.F90 \
36   blackboxio.F90 \
37   include/array_utils_char.inc \
38   include/compressed_read.inc \
39   include/compute_global_checksum.inc \
40   include/domain_write.inc \
41   include/get_data_type_string.inc \
42   include/get_variable_attribute.inc \
43   include/netcdf_read_data.inc \
44   include/register_domain_restart_variable.inc \
45   include/register_unstructured_domain_restart_variable.inc \
46   include/unstructured_domain_read.inc \
47   include/array_utils.inc \
48   include/compressed_write.inc \
49   include/domain_read.inc \
50   include/get_global_attribute.inc \
51   include/netcdf_add_restart_variable.inc \
52   include/netcdf_write_data.inc \
53   include/register_global_attribute.inc \
54   include/register_variable_attribute.inc \
55   include/unstructured_domain_write.inc \
56   include/gather_data_bc.inc \
57   include/scatter_data_bc.inc
59 # Some mods are dependant on other mods in this dir.
60 fms2_io_mod.$(FC_MODEXT): fms_io_utils_mod.$(FC_MODEXT) netcdf_io_mod.$(FC_MODEXT) fms_netcdf_domain_io_mod.$(FC_MODEXT) \
61                  fms_netcdf_unstructured_domain_io_mod.$(FC_MODEXT) blackboxio.$(FC_MODEXT)
62 fms_io_utils_mod.$(FC_MODEXT): include/array_utils.inc include/array_utils_char.inc \
63                       include/get_data_type_string.inc
64 netcdf_io_mod.$(FC_MODEXT): fms_io_utils_mod.$(FC_MODEXT) include/netcdf_add_restart_variable.inc include/netcdf_read_data.inc \
65                    include/netcdf_write_data.inc include/register_global_attribute.inc \
66                    include/register_variable_attribute.inc include/get_global_attribute.inc \
67                    include/get_variable_attribute.inc include/compressed_write.inc include/compressed_read.inc \
68                    include/gather_data_bc.inc include/scatter_data_bc.inc
69 fms_netcdf_domain_io_mod.$(FC_MODEXT): fms_io_utils_mod.$(FC_MODEXT) netcdf_io_mod.$(FC_MODEXT) include/register_domain_restart_variable.inc \
70                               include/domain_read.inc include/domain_write.inc include/compute_global_checksum.inc
71 fms_netcdf_unstructured_domain_io_mod.$(FC_MODEXT): fms_io_utils_mod.$(FC_MODEXT) netcdf_io_mod.$(FC_MODEXT) \
72                                            include/register_unstructured_domain_restart_variable.inc \
73                                            include/unstructured_domain_read.inc include/unstructured_domain_write.inc
74 blackboxio.$(FC_MODEXT): fms_io_utils_mod.$(FC_MODEXT) netcdf_io_mod.$(FC_MODEXT) fms_netcdf_domain_io_mod.$(FC_MODEXT) \
75                 fms_netcdf_unstructured_domain_io_mod.$(FC_MODEXT)
77 # Mod files are built and then installed as headers.
78 MODFILES = \
79   fms2_io_mod.$(FC_MODEXT) \
80   fms_io_utils_mod.$(FC_MODEXT) \
81   netcdf_io_mod.$(FC_MODEXT) \
82   fms_netcdf_domain_io_mod.$(FC_MODEXT) \
83   fms_netcdf_unstructured_domain_io_mod.$(FC_MODEXT) \
84   blackboxio.$(FC_MODEXT)
85 BUILT_SOURCES = $(MODFILES)
86 nodist_include_HEADERS = $(MODFILES)
88 include $(top_srcdir)/mkmods.mk