-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
146 lines (132 loc) · 5.85 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
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
# Don't require GNU-standard files (Changelog, README, etc.)
AUTOMAKE_OPTIONS = foreign subdir-objects
# Don't loose the autoconf include path
ACLOCAL_AMFLAGS = -I config
# Subdirectories to build
SUBDIRS = src MeshFiles $(itaps_dir) tools test $(pymoab_dir)
if ENABLE_fbigeom
itaps_dir_fbigeom = itaps
else
itaps_dir_fbigeom =
endif
if ENABLE_imesh
itaps_dir = itaps
else
itaps_dir = $(itaps_dir_fbigeom)
endif
if ENABLE_pymoab
pymoab_dir = pymoab
else
pymoab_dir =
endif
# Utility target: build but don't run tests
build-check:
$(MAKE) 'TESTS_ENVIRONMENT=: ' check
doc_DATA = ANNOUNCE KNOWN_ISSUES LICENSE README.md RELEASE_NOTES
examples_DATA = \
examples/makefile \
examples/makefile.config \
examples/makefile.config.in \
examples/CMakeLists.txt
examples_beginnerdir = $(datadir)/examples/beginner
examples_beginner_DATA = \
examples/beginner/README \
examples/beginner/makefile \
examples/beginner/mbex1.cpp \
examples/beginner/mbex2.cpp \
examples/beginner/mbex3.cpp \
examples/beginner/mbex4.cpp
examples_basicdir = $(datadir)/examples/basic
examples_basic_DATA = \
examples/basic/makefile \
examples/basic/ErrorHandlingSimulation.cpp \
examples/basic/GetEntities.cpp \
examples/basic/HelloMOAB.cpp \
examples/basic/HelloParMOAB.cpp \
examples/basic/ReadWriteTest.cpp \
examples/basic/SetsNTags.cpp \
examples/basic/StructuredMeshSimple.cpp \
examples/basic/TestErrorHandling.cpp \
examples/basic/TestErrorHandlingPar.cpp \
examples/basic/TestExodusII.cpp \
examples/basic/UniformRefinement.cpp
examples_intermediatedir = $(datadir)/examples/intermediate
examples_intermediate_DATA = \
examples/intermediate/makefile \
examples/intermediate/DirectAccessNoHoles.cpp \
examples/intermediate/DirectAccessWithHoles.cpp \
examples/intermediate/LoadPartial.cpp \
examples/intermediate/PointInElementSearch.cpp \
examples/intermediate/ReduceExchangeTags.cpp
examples_advanceddir = $(datadir)/examples/advanced
examples_advanced_DATA = \
examples/advanced/makefile \
examples/advanced/CrystalRouterExample.cpp \
examples/advanced/ExtrudePoly.cpp \
examples/advanced/GenLargeMesh.cpp \
examples/advanced/LloydRelaxation.cpp \
examples/advanced/VisTags.cpp
examples_fortrandir = $(datadir)/examples/fortran
examples_fortran_DATA = \
examples/fortran/makefile \
examples/fortran/DirectAccessNoHolesF90.F90 \
examples/fortran/PushParMeshIntoMoabF90.F90
examples_pythonexdir = $(datadir)/examples/python
examples_pythonex_DATA = \
examples/python/makefile \
examples/python/laplaciansmoother.py
examples_appsdir = $(datadir)/examples/apps
examples_apps_DATA = \
examples/apps/makefile
examples_apps_earthdir = $(datadir)/examples/apps
examples_apps_earth_DATA = \
examples/apps/earth/makefile \
examples/apps/earth/ContinentsOnGlobe.cpp
CMAKE_CONFIGURATION_FILES = CMakeLists.txt \
config/AutoconfHeader.cmake config/FindCGM.cmake config/FindMetis.cmake config/FindZoltan.cmake config/ForceAddFlags.cmake \
config/ResolveCompilerPaths.cmake config/CMakeDistCheck.cmake config/FindEigen3.cmake config/FindNetCDF.cmake config/Findgraphviz.cmake \
config/GetAcInitVersion.cmake config/TestBigEndian.cmake config/CheckCompilerFlags.cmake config/FindHDF5_MOAB.cmake config/FindParMetis.cmake \
config/Findverdict.cmake config/MOABConfig.cmake.cmake config/CMakeReplicateConfig.sh config/cmake_uninstall.cmake.in \
config/TemplateSpecialization.cxx config/MOABConfig.cmake.h.in
EXTRA_DIST = $(doc_DATA) \
debian \
$(CMAKE_CONFIGURATION_FILES) \
$(examples_DATA) \
$(examples_beginner_DATA) \
$(examples_basic_DATA) \
$(examples_intermediate_DATA) \
$(examples_advanced_DATA) \
$(examples_fortran_DATA) \
$(examples_pythonex_DATA) \
$(examples_apps_DATA) \
$(examples_apps_earth_DATA)
# Automake doesn't seem to have a directory defined for
# platform-dependent data (or include) files. So put
# in $(libdir). Define a $(cfgdir) to get around automake's
# check that only libraries are going in $(libdir)
cfgdir = $(libdir)
cfg_DATA = moab.make moab.config
cmakedir = $(libdir)/cmake/MOAB
cmake_DATA = MOABConfig.cmake config/ResolveCompilerPaths.cmake
# By default, moab.make will define these to $(srcdir). We
# want to override that during the INSTALL of the file so
# that the correct values are set (e.g. if someone does
# 'make prefix=/foo install', we don't know the correct install
# directory until we're doing the install.
install-data-hook:
$(AM_V_at)echo "MOAB_LIBDIR=${libdir}" >> $(DESTDIR)$(cfgdir)/moab.make
$(AM_V_at)echo "MOAB_INCLUDES=-I${includedir}" >> $(DESTDIR)$(cfgdir)/moab.make
# Generate a file to be installed in $libdir containing the configuration
# options used for this MOAB build.
# Note: If you modify this, verify that it works correctly for option
# values containing spaces.
# First line: get unformatted data from config.status
# Second line: extract just the list of options
# Third line: put individual options on separate lines
# Fourth line: remove any empty lines and trim spaces and then write to config file.
moab.config: config.status Makefile.am
$(AM_V_GEN)./config.status --version | \
sed -e 's/.*options "\(.*\)"/\1/p' -e 'd' | \
tr "'" "\n" | \
sed -e '/^ *$$/d' > $@
CLEANFILES = moab.config a.out configs.sed