forked from NOAA-GFDL/FMS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
117 lines (102 loc) · 3.15 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#***********************************************************************
#* GNU Lesser General Public License
#*
#* This file is part of the GFDL Flexible Modeling System (FMS).
#*
#* FMS is free software: you can redistribute it and/or modify it under
#* the terms of the GNU Lesser General Public License as published by
#* the Free Software Foundation, either version 3 of the License, or (at
#* your option) any later version.
#*
#* FMS is distributed in the hope that it will be useful, but WITHOUT
#* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
#* for more details.
#*
#* You should have received a copy of the GNU Lesser General Public
#* License along with FMS. If not, see <http://www.gnu.org/licenses/>.
#***********************************************************************
# This is the main automake file for FMS.
# Ed Hartnett 2/21/2019
# This directory stores libtool macros, put there by aclocal.
ACLOCAL_AMFLAGS = -I m4
# Directory to place all .mod files. Convienient place to look for these
# files.
#include $(top_srcdir)/mkmods.mk
# Does the user want to build documentation?
if BUILD_DOCS
DOCS = docs
endif
# Make targets will be run in each subdirectory. Order is significant.
SUBDIRS = \
platform \
constants \
tridiagonal \
mpp \
memutils \
fms2_io \
mosaic2 \
fms \
affinity \
mosaic \
time_manager \
axis_utils \
diag_manager \
drifters \
horiz_interp \
time_interp \
column_diagnostics \
block_control \
data_override \
astronomy \
field_manager \
coupler \
diag_integral \
monin_obukhov \
interpolator \
amip_interp \
exchange \
topography \
tracer_manager \
sat_vapor_pres \
random_numbers \
libFMS \
test_fms \
${DOCS}
include_HEADERS = include/file_version.h include/fms_platform.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = FMS.pc
## Build libFMS module
AM_CPPFLAGS = -I${top_srcdir}/include -I${top_srcdir}/mpp/include
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
noinst_LTLIBRARIES = libFMS_mod.la
libFMS_mod_la_SOURCES = libFMS.F90
fms.$(FC_MODEXT): .mods/*_mod.$(FC_MODEXT)
nodist_include_HEADERS = libFMS_mod.la
include $(top_srcdir)/mkmods.mk
# Prepare CMake files for installation. This is to help
# packages build using CMake to more easily use the libFMS
# library.
#
# A simple edit command
#edit = sed \
# -e 's|@PACKAGE_VERSION[@]|$(pkgdatadir)|g' \
# -e 's|@PACKAGE_CMAKE_INSTALL_PREFIX[@]|$(prefix)|g' \
# -e 's|@PACKAGE_CMAKE_INSTALL_INCLUDEDIR[@]|$(includedir)|g' \
# -e 's|@PACKAGE_CMAKE_INSTALL_LIBDIR[@]|$(libdir)|g' \
# -e '/@PACKAGE_INIT[@]/ {' -e 'r $(top_srcdir)/_package_init_cmake' -e 'd' -e '}'
#FMSConfig.cmake FMSConfigVersion.cmake: Makefile
# rm -f $@ $@.tmp
# $(edit) $@.in >$@.tmp
# mv $@.tmp $@
#FMSConfig.cmake: FMSConfig.cmake.in
#FMSConfigVersion.cmake: FMSConfigVersion.cmake.in
#
#cmakedir = $(libdir)
#cmake_DATA = FMSConfig.cmake \
# FMSConfigVersion.cmake
#clean-local:
# -rm -f FMSConfig.cmake FMSConfigVersion.cmake
EXTRA_DIST = README.md #_package_init_cmake
clean-local:
-rm -rf .mods