File: Makefile.am

package info (click to toggle)
code-saturne 5.3.2+repack-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 76,868 kB
  • sloc: ansic: 338,582; f90: 118,487; python: 65,227; makefile: 4,429; cpp: 3,826; xml: 3,078; sh: 1,205; lex: 170; yacc: 100
file content (256 lines) | stat: -rw-r--r-- 7,061 bytes parent folder | download
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
## Process this file with automake to produce Makefile.in

#-------------------------------------------------------------------------------

# This file is part of Code_Saturne, a general-purpose CFD tool.
#
# Copyright (C) 1998-2018 EDF S.A.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program 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 General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA 02110-1301, USA.

#-------------------------------------------------------------------------------

# PLE dependency

if HAVE_INTERNAL_PLE
  CPPFLAGS_PLE = -I"$(top_srcdir)/libple/src" -I"$(top_builddir)/libple"
  LIBPLE_LA = $(top_builddir)/libple/src/libple.la
else
  CPPFLAGS_PLE = $(PLE_CPPFLAGS)
  LDFLAGS_PLE = $(PLE_LDFLAGS)
  LIBS_PLE = $(PLE_LIBS)
endif

# Relocatable installation

if HAVE_RELOCATABLE
  ORIGINRUNPATH = -R '\$$ORIGIN/../../lib'
  PLUGINRUNPATH_R = -R'\$$ORIGIN/../../lib/'$(PACKAGE)
else
#  PLUGINRUNPATH_N = -R$(pkglibdir)
endif

if HAVE_PLUGINS
  PLUGINRUNPATH = $(PLUGINRUNPATH_R)$(PLUGINRUNPATH_N)
endif

# BLAS

if HAVE_MKL
  CPPFLAGS_BLAS =  $(BLAS_CPPFLAGS)
  LDADD_BLAS = $(BLAS_LDFLAGS) $(BLASRUNPATH) $(BLAS_LIBS)
endif

# Catalyst

if HAVE_CATALYST
if HAVE_PLUGIN_CATALYST
else
  LDADD_CATALYST = $(CATALYST_LDFLAGS) $(CATALYSTRUNPATH) $(CATALYST_LIBS)
endif
endif

# MEDCoupling

if HAVE_MEDCOUPLING
if HAVE_PLUGIN_MEDCOUPLING
else
  LDADD_MEDCOUPLING = $(MEDCOUPLING_LDFLAGS) $(MEDCOUPLINGRUNPATH) $(MEDCOUPLING_LIBS)
endif
endif

# Melissa

if HAVE_MELISSA
if HAVE_PLUGIN_MELISSA
else
  LDADD_MELISSA = $(MELISSA_LDFLAGS) $(MELISSARUNPATH) $(MELISSA_LIBS)
endif
endif

# CoolProp

if HAVE_COOLPROP
if HAVE_PLUGINS
else
  LDADD_COOLPROP = $(COOLPROP_LDFLAGS) $(COOLPROPRUNPATH) $(COOLPROP_LIBS)
endif
endif

# Main part

if HAVE_BACKEND

AM_CPPFLAGS = \
-I$(top_srcdir)/src/alge \
-I$(top_srcdir)/src/base \
-I$(top_srcdir)/src/mesh \
-I$(top_srcdir)/src/elec \
-I$(top_srcdir)/src/cdo \
-I$(top_srcdir)/src/ctwr \
-I$(top_srcdir)/src/darc \
-I$(top_srcdir)/src/lagr \
-I$(top_srcdir)/src/bft \
-I$(top_srcdir)/src/fvm \
-I$(top_srcdir)/src/gui \
-I$(top_srcdir)/src/mei \
-I$(top_srcdir)/src/turb \
$(CPPFLAGS_PLE) \
$(MPI_CPPFLAGS) $(CPPFLAGS_BLAS)

AM_CFLAGS = $(CFLAGS_DBG) $(CFLAGS_OPT)

# Global LDFLAGS must be used so as to handle the possibility of a CXX link.
# Per-executable flags will override this global definition.
AM_LDFLAGS = $(ORIGINRUNPATH) $(PLUGINRUNPATH)

# Library source files

lib_LTLIBRARIES = libsaturne.la libcs_solver.la

libsaturne_la_SOURCES =
libsaturne_la_LIBADD = \
$(top_builddir)/src/fvm/libfvm_filters.la \
$(top_builddir)/src/base/libcsbase.la \
$(top_builddir)/src/base/libcscore.la \
$(top_builddir)/src/base/libcsrenumber.la \
$(top_builddir)/src/pprt/libcspprt.la \
$(top_builddir)/src/alge/libcsalge.la \
$(top_builddir)/src/mesh/libcsmesh.la \
$(top_builddir)/src/mesh/libcspartition.la \
$(top_builddir)/src/turb/libcsturb.la \
$(top_builddir)/src/atmo/libcsatmo.la \
$(top_builddir)/src/cdo/libcscdo.la \
$(top_builddir)/src/cfbl/libcscfbl.la \
$(top_builddir)/src/cogz/libcscogz.la \
$(top_builddir)/src/comb/libcscomb.la \
$(top_builddir)/src/ctwr/libcsctwr.la \
$(top_builddir)/src/darc/libcsdarc.la \
$(top_builddir)/src/elec/libcselec.la \
$(top_builddir)/src/gui/libcsgui.la \
$(top_builddir)/src/lagr/libcslagr.la \
$(top_builddir)/src/rayt/libcsrayt.la \
$(top_builddir)/src/user/libcsuser.la \
$(top_builddir)/src/libcsmodules.la \
$(top_builddir)/src/mei/libmei.la \
$(top_builddir)/src/bft/libbft.la \
$(LIBPLE_LA) \
$(LDFLAGS_PLE) $(LIBS_PLE) \
$(CCM_LDFLAGS) $(CCMRUNPATH) $(CCM_LIBS) \
$(CGNS_LDFLAGS) $(CGNSRUNPATH) $(CGNS_LIBS) \
$(MED_LDFLAGS) $(MED_LIBS) $(MEDRUNPATH) \
$(HDF5_LDFLAGS) $(HDF5_LIBS) $(HDF5RUNPATH) \
$(METIS_LDFLAGS) $(METIS_LIBS) $(METISRUNPATH) \
$(SCOTCH_LDFLAGS) $(SCOTCH_LIBS) $(SCOTCHRUNPATH) \
$(EOS_LDFLAGS) $(EOS_LIBS) $(EOSRUNPATH) \
$(FREESTEAM_LDFLAGS) $(FREESTEAM_LIBS) $(FREESTEAMRUNPATH) \
$(COOLPROP_LDFLAGS) $(COOLPROP_LIBS) $(COOLPROPRUNPATH) \
$(LDADD_CATALYST) $(LDADD_MEDCOUPLING) $(LDADD_MELISSA) \
$(LDADD_COOLPROP) \
$(MPI_LDFLAGS) $(MPI_LIBS) \
$(LDADD_BLAS) \
$(LTLIBINTL) \
$(FCLIBS)
libsaturne_la_LDFLAGS = -no-undefined -version-info 5:3:0

libcs_solver_la_SOURCES = cs_solver.c
libcs_solver_la_LIBADD = libsaturne.la \
$(LIBPLE_LA) \
$(LDFLAGS_PLE) $(LIBS_PLE) \
$(CCM_LDFLAGS) $(CCMRUNPATH) $(CCM_LIBS) \
$(CGNS_LDFLAGS) $(CGNSRUNPATH) $(CGNS_LIBS) \
$(MED_LDFLAGS) $(MED_LIBS) $(MEDRUNPATH) \
$(HDF5_LDFLAGS) $(HDF5_LIBS) $(HDF5RUNPATH) \
$(METIS_LDFLAGS) $(METIS_LIBS) $(METISRUNPATH) \
$(SCOTCH_LDFLAGS) $(SCOTCH_LIBS) $(SCOTCHRUNPATH) \
$(EOS_LDFLAGS) $(EOS_LIBS) $(EOSRUNPATH) \
$(FREESTEAM_LDFLAGS) $(FREESTEAM_LIBS) $(FREESTEAMRUNPATH) \
$(COOLPROP_LDFLAGS) $(COOLPROP_LIBS) $(COOLPROPRUNPATH) \
$(LDADD_CATALYST) $(LDADD_MEDCOUPLING) $(LDADD_MELISSA) \
$(LDADD_COOLPROP) \
$(MPI_LDFLAGS) $(MPI_LIBS) \
$(LDADD_BLAS) \
$(LTLIBINTL) \
$(FCLIBS)
libcs_solver_la_LDFLAGS = -no-undefined -version-info 5:3:0

endif

# Main program
#pkglibexecdir = $(libexecdir)/$(PACKAGE)
pkglibexec_PROGRAMS =

# Code_Saturne IO utility program

if HAVE_FRONTEND
pkglibexec_PROGRAMS += cs_io_dump
endif

# Code_Saturne syntax checker

if HAVE_FRONTEND
pkglibexec_PROGRAMS += cs_check_syntax
endif

if HAVE_BACKEND
cs_solver$(EXEEXT): libcs_solver.la
	PYTHONPATH=$(top_builddir)/bin:$(top_srcdir)/bin \
	$(PYTHON) -B $(top_srcdir)/build-aux/cs_compile_build.py \
        $(top_srcdir)/src/apps/cs_solver.c
endif

# Code_Saturne IO utility (minimal dependencies)

if HAVE_FRONTEND
cs_io_dump_CPPFLAGS = -DLOCALEDIR=\"'$(localedir)'\" -I$(top_srcdir)/src/base
cs_io_dump_SOURCES = cs_io_dump.c
cs_io_dump_LDADD = $(LTLIBINTL)
endif

# Code_Saturne syntax checker

if HAVE_FRONTEND

cs_check_syntax_CPPFLAGS = \
-DLOCALEDIR=\"'$(localedir)'\" \
-I$(top_srcdir)/src/base \
-I$(top_srcdir)/src/bft \
-I$(top_srcdir)/src/mei
cs_check_syntax_SOURCES = cs_check_syntax.c
cs_check_syntax_LDADD = \
$(top_builddir)/src/mei/libmei.la \
$(top_builddir)/src/bft/libbft.la \
-lm
cs_check_syntax_LDFLAGS = \
$(ORIGINRUNPATH)

endif

# cs_solver executable is built using the same Python script as when
# using user functions (rather than with libtool), so it must be
# handled separately

all-local: cs_solver$(EXEEXT)

install-exec-hook: libcs_solver.la
	PYTHONPATH=$(top_builddir)/bin:$(top_srcdir)/bin \
	$(PYTHON) -B $(top_srcdir)/build-aux/cs_compile_build.py \
	 --mode=install --dest "$(DESTDIR)"

clean-local:
	-rm -f cs_solver$(EXEEXT)

uninstall-local:
	rm $(pkglibexecdir)/cs_solver$(EXEEXT)