chore: merge changes from 2024.01.02 patch release into main (#1549)
[FMS.git] / exchange / Makefile.am
blobe62ad1eb79770f641bfa6a69a6dfa93cea984c56
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 exchange directory of the FMS
21 # package.
23 # Ed Hartnett 2/22/19
25 # Include .h and .mod files.
26 AM_CPPFLAGS = -I$(top_srcdir)/include
27 AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
29 # Build these uninstalled convenience libraries.
30 noinst_LTLIBRARIES = libexchange.la
32 # Each convenience library depends on its source.
33 libexchange_la_SOURCES = \
34   stock_constants.F90 \
35   xgrid.F90
37 # Some mods are dependant on other mods in this dir.
38 xgrid_mod.$(FC_MODEXT): stock_constants_mod.$(FC_MODEXT)
40 # Mod files are built and then installed as headers.
41 MODFILES = \
42   stock_constants_mod.$(FC_MODEXT) \
43   xgrid_mod.$(FC_MODEXT)
44 nodist_include_HEADERS = $(MODFILES)
45 BUILT_SOURCES = $(MODFILES)
47 include $(top_srcdir)/mkmods.mk