-
Notifications
You must be signed in to change notification settings - Fork 304
Expand file tree
/
Copy pathMakefile.am
More file actions
357 lines (327 loc) · 11.4 KB
/
Makefile.am
File metadata and controls
357 lines (327 loc) · 11.4 KB
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
AUTOMAKE_OPTIONS = subdir-objects
AM_CXXFLAGS = $(libmesh_CXXFLAGS)
AM_CFLAGS = $(libmesh_CFLAGS)
AM_CPPFLAGS = $(libmesh_optional_INCLUDES) -I$(top_builddir)/include \
$(libmesh_contrib_INCLUDES) $(CPPUNIT_CFLAGS) \
-DLIBMESH_IS_UNIT_TESTING
AM_LDFLAGS = $(libmesh_LDFLAGS)
LIBS = $(libmesh_optional_LIBS) $(CPPUNIT_LIBS)
# We might have turned on -Werror and/or paranoid warnings
CXXFLAGS_DBG += $(ACSM_ANY_WERROR_FLAG) $(ACSM_ANY_PARANOID_FLAGS)
CXXFLAGS_DEVEL += $(ACSM_ANY_WERROR_FLAG) $(ACSM_ANY_PARANOID_FLAGS)
CXXFLAGS_OPROF += $(ACSM_ANY_WERROR_FLAG) $(ACSM_ANY_PARANOID_FLAGS)
CXXFLAGS_OPT += $(ACSM_ANY_WERROR_FLAG) $(ACSM_ANY_PARANOID_FLAGS)
CXXFLAGS_PROF += $(ACSM_ANY_WERROR_FLAG) $(ACSM_ANY_PARANOID_FLAGS)
unit_tests_sources = \
driver.C \
libmesh_cppunit.h \
stream_redirector.h \
test_comm.h \
base/dof_object_test.h \
base/dof_map_test.C \
base/default_coupling_test.C \
base/getpot_test.C \
base/point_neighbor_coupling_test.C \
base/overlapping_coupling_test.C \
base/multi_evaluable_pred_test.C \
fe/fe_bernstein_test.C \
fe/fe_clough_test.C \
fe/fe_hermite_test.C \
fe/fe_hierarchic_test.C \
fe/inf_fe_radial_test.C \
fe/fe_l2_hierarchic_test.C \
fe/fe_l2_lagrange_test.C \
fe/fe_lagrange_test.C \
fe/fe_monomial_test.C \
fe/fe_rational_map.C \
fe/fe_rational_test.C \
fe/fe_side_test.C \
fe/fe_szabab_test.C \
fe/fe_test.h \
fe/fe_xyz_test.C \
fe/dual_shape_verification_test.C \
geom/bbox_test.C \
geom/edge_test.C \
geom/elem_test.C \
geom/elem_test.h \
geom/node_test.C \
geom/point_test.C \
geom/point_test.h \
geom/side_test.C \
geom/volume_test.C \
geom/which_node_am_i_test.C \
mesh/all_second_order.C \
mesh/all_tri.C \
mesh/distort.C \
mesh/boundary_mesh.C \
mesh/boundary_info.C \
mesh/boundary_points.C \
mesh/checkpoint.C \
mesh/contains_point.C \
mesh/distributed_mesh_test.C \
mesh/extra_integers.C \
mesh/exodus_test.C \
mesh/mesh_assign.C \
mesh/mesh_base_test.C \
mesh/mesh_collection.C \
mesh/mesh_deletions.C \
mesh/mesh_extruder.C \
mesh/mesh_function.C \
mesh/mesh_function_dfem.C \
mesh/mesh_generation_test.C \
mesh/mesh_input.C \
mesh/mesh_stitch.C \
mesh/mesh_triangulation.C \
mesh/mixed_dim_mesh_test.C \
mesh/mixed_order_test.C \
mesh/nodal_neighbors.C \
mesh/libmesh_poly2tri.C \
mesh/slit_mesh_test.C \
mesh/spatial_dimension_test.C \
mesh/mapped_subdomain_partitioner_test.C \
mesh/write_elemset_data.C \
mesh/write_sideset_data.C \
mesh/write_nodeset_data.C \
mesh/write_edgeset_data.C \
mesh/write_vec_and_scalar.C \
numerics/composite_function_test.C \
numerics/coupling_matrix_test.C \
numerics/distributed_vector_test.C \
numerics/eigen_sparse_vector_test.C \
numerics/laspack_vector_test.C \
numerics/laspack_matrix_test.C \
numerics/numeric_vector_test.h \
numerics/parsed_fem_function_test.C \
numerics/parsed_function_test.C \
numerics/petsc_vector_test.C \
numerics/trilinos_epetra_vector_test.C \
numerics/type_vector_test.h \
numerics/vector_value_test.C \
numerics/type_tensor_test.C \
numerics/sparse_matrix_test.h \
numerics/dense_matrix_test.C \
numerics/petsc_matrix_test.C \
numerics/diagonal_matrix_test.C \
numerics/lumped_mass_matrix_test.C \
numerics/eigen_sparse_matrix_test.C \
numerics/tensor_traits_test.C \
parallel/message_tag.C \
parallel/packed_range_test.C \
parallel/packing_types_test.C \
parallel/parallel_sort_test.C \
parallel/parallel_sync_test.C \
parallel/parallel_ghost_sync_test.C \
parallel/parallel_test.C \
parallel/parallel_point_test.C \
partitioning/partitioner_test.h \
partitioning/centroid_partitioner_test.C \
partitioning/hilbert_sfc_partitioner_test.C \
partitioning/linear_partitioner_test.C \
partitioning/metis_partitioner_test.C \
partitioning/morton_sfc_partitioner_test.C \
partitioning/parmetis_partitioner_test.C \
partitioning/sfc_partitioner_test.C \
quadrature/quadrature_test.C \
solvers/time_solver_test_common.h \
solvers/first_order_unsteady_solver_test.C \
solvers/second_order_unsteady_solver_test.C \
systems/constraint_operator_test.C \
systems/equation_systems_test.C \
systems/periodic_bc_test.C \
systems/systems_test.C \
utils/parameters_test.C \
utils/point_locator_test.C \
utils/rb_parameters_test.C \
utils/transparent_comparator.C \
utils/vectormap_test.C \
utils/xdr_test.C
#EXTRA_DIST = base/getpot_test_input.in
# Make sure any data goes in "make dist"
datadir = $(install_dir)
data = matrices/geom_1_extraction_op.m \
matrices/geom_1_extraction_op.petsc32 \
meshes/1_quad.bxt.gz \
meshes/25_quad.bxt.gz \
meshes/BlockWithHole_Patch9.bxt.gz \
meshes/PlateWithHole_Patch8.bxt.gz \
meshes/PressurizedCyl3d_Patch1_8Elem.bxt.gz \
meshes/PressurizedCyl_Patch6_256Elem.bxt.gz \
meshes/Cube_With_Sidesets.e \
meshes/PlateWithHole_Patch8.e \
meshes/PressurizedCyl3d_Patch1_8Elem.e \
meshes/bad_64bit_elem_integers.e \
meshes/good_32bit_elem_integers.e \
meshes/mesh_assign_test_mesh.xda \
meshes/mesh_with_low_order_edge_blocks.e \
meshes/shark_tooth_tri6.xda.gz \
meshes/tetgen_one_tet10.ele \
meshes/tetgen_one_tet10.node \
meshes/find_neighbors_junction_1D_only.e
unit_tests_data = $(data)
if LIBMESH_ENABLE_FPARSER
unit_tests_sources += \
fparser/autodiff.C
endif
check_PROGRAMS = # empty, append below
noinst_PROGRAMS = # empty, append below
# our GLIBC debugging preprocessor flags seem to potentially conflict
# with libcppunit binaries. Some cppunit versions work fine for us,
# others segfault and/or hang. By default we will not run
# GLIBCXX-debugging builds with cppunit unless specifically
# configured to.
if LIBMESH_ENABLE_CPPUNIT
if LIBMESH_DBG_MODE
if ACSM_ENABLE_GLIBCXX_DEBUGGING
if ACSM_ENABLE_GLIBCXX_DEBUGGING_CPPUNIT
check_PROGRAMS += unit_tests-dbg
else
noinst_PROGRAMS += unit_tests-dbg
endif
else
check_PROGRAMS += unit_tests-dbg
endif
unit_tests_dbg_SOURCES = $(unit_tests_sources)
unit_tests_dbg_CPPFLAGS = $(CPPFLAGS_DBG) $(AM_CPPFLAGS)
unit_tests_dbg_CXXFLAGS = $(CXXFLAGS_DBG)
unit_tests_dbg_LDADD = $(top_builddir)/libmesh_dbg.la
unit_tests_dbgdir = $(datadir)
unit_tests_dbg_DATA = $(data)
endif
endif
if LIBMESH_ENABLE_CPPUNIT
if LIBMESH_DEVEL_MODE
check_PROGRAMS += unit_tests-devel
noinst_PROGRAMS += unit_tests-devel
unit_tests_devel_SOURCES = $(unit_tests_sources)
unit_tests_devel_CPPFLAGS = $(CPPFLAGS_DEVEL) $(AM_CPPFLAGS)
unit_tests_devel_CXXFLAGS = $(CXXFLAGS_DEVEL)
unit_tests_devel_LDADD = $(top_builddir)/libmesh_devel.la
unit_tests_develdir = $(datadir)
unit_tests_devel_DATA = $(data)
endif
endif
if LIBMESH_ENABLE_CPPUNIT
if LIBMESH_PROF_MODE
check_PROGRAMS += unit_tests-prof
noinst_PROGRAMS += unit_tests-prof
unit_tests_prof_SOURCES = $(unit_tests_sources)
unit_tests_prof_CPPFLAGS = $(CPPFLAGS_PROF) $(AM_CPPFLAGS)
unit_tests_prof_CXXFLAGS = $(CXXFLAGS_PROF)
unit_tests_prof_LDADD = $(top_builddir)/libmesh_prof.la
unit_tests_profdir = $(datadir)
unit_tests_prof_DATA = $(data)
endif
endif
if LIBMESH_ENABLE_CPPUNIT
if LIBMESH_OPROF_MODE
check_PROGRAMS += unit_tests-oprof
noinst_PROGRAMS += unit_tests-oprof
unit_tests_oprof_SOURCES = $(unit_tests_sources)
unit_tests_oprof_CPPFLAGS = $(CPPFLAGS_OPROF) $(AM_CPPFLAGS)
unit_tests_oprof_CXXFLAGS = $(CXXFLAGS_OPROF)
unit_tests_oprof_LDADD = $(top_builddir)/libmesh_oprof.la
unit_tests_oprofdir = $(datadir)
unit_tests_oprof_DATA = $(data)
endif
endif
if LIBMESH_ENABLE_CPPUNIT
if LIBMESH_OPT_MODE
check_PROGRAMS += unit_tests-opt
unit_tests_opt_SOURCES = $(unit_tests_sources)
unit_tests_opt_CPPFLAGS = $(CPPFLAGS_OPT) $(AM_CPPFLAGS)
unit_tests_opt_CXXFLAGS = $(CXXFLAGS_OPT)
unit_tests_opt_LDADD = $(top_builddir)/libmesh_opt.la
unit_tests_optdir = $(datadir)
unit_tests_opt_DATA = $(data)
endif
endif
# Recursive automake builds subdirectories before parent directories.
# But here we need the subdirectory to be able to link to
# already-built parent directory libraries.
# For most of our modes, this means "you can't run make check unless
# make already completed", which is an annoying bug; for the dbg
# noinst case this means "you can't run make unless make already
# completed", which is a devastating bug.
#
# Putting . in the top-level SUBDIRS works when make is invoked on the
# top level, but can leave `make -C tests` runs linked (or failing to
# link, if there have been ABI changes) against a non-up-to-date
# library file.
#
# As a quick fix we'll ensure library dependencies are built manually:
# http://lists.gnu.org/archive/html/automake/2009-03/msg00011.html
FORCE:
.PHONY: FORCE
$(top_builddir)/libmesh_dbg.la: FORCE
(cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) libmesh_dbg.la)
$(top_builddir)/libmesh_devel.la: FORCE
(cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) libmesh_devel.la)
$(top_builddir)/libmesh_opt.la: FORCE
(cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) libmesh_opt.la)
$(top_builddir)/libmesh_prof.la: FORCE
(cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) libmesh_prof.la)
$(top_builddir)/libmesh_oprof.la: FORCE
(cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) libmesh_oprof.la)
if LIBMESH_ENABLE_CPPUNIT
TESTS = run_unit_tests.sh
endif
CLEANFILES = cube_mesh.xda \
slit_mesh.xda slit_solution.xda \
out.e \
mesh_with_soln.e \
elemental_from_nodal.e \
write_elemset_data.e \
write_sideset_data.e \
write_nodeset_data.e \
write_edgeset_data.e \
read_header_test.e \
output.dat \
periodic.e \
mesh.out.memory.moved.xda \
mesh.out.file.moved.xda \
repl_with_nodal_soln.nem.1.0 \
dist_with_elem_soln.e \
dist.e \
dist_with_nodal_soln.e \
dist_with_nodal_soln.nem.1.0 \
dist_with_elem_vec.e \
dist_with_single_elem.nem.1.0 \
dist_with_elem_soln.nem.1.0 \
rep.nem.1.0 \
repl_with_elem_soln.nem.1.0 \
repl_with_single_elem.nem.1.0 \
dist_with_elem_vec.nem.1.0 \
repl_with_elem_vec.nem.1.0 \
dist.nem.1.0 \
repl_with_elem_soln.e \
test_nemesis_read.nem.1.0 \
rep.e \
repl_with_nodal_soln.e \
repl_with_elem_vec.e \
extra_integers.xda \
extra_integers.xdr \
write_elemset_data.xda \
write_elemset_data.xdr \
test_helper.xdr
# need to link any data files for VPATH builds
if LIBMESH_VPATH_BUILD
BUILT_SOURCES = .linkstamp
.linkstamp:
-rm -f meshes && $(LN_S) -f $(srcdir)/meshes .
-rm -f matrices && $(LN_S) -f $(srcdir)/matrices .
$(AM_V_GEN)touch .linkstamp
CLEANFILES += .linkstamp
endif
# CLEANFILES only applies to files, handle directories separately
clean-local:
rm -rf checkpoint_splitter.cpr \
checkpoint_splitter.cpa \
extra_integers.cpr \
extra_integers.cpa \
.jitcache
######################################################################
#
# Don't leave code coverage outputs lying around
if CODE_COVERAGE_ENABLED
CLEANFILES += */*.gcda */*.gcno
endif