File: Makefile.am

package info (click to toggle)
madlib 1.3.0-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,912 kB
  • sloc: cpp: 39,850; sh: 10,088; makefile: 476
file content (270 lines) | stat: -rw-r--r-- 9,020 bytes parent folder | download | duplicates (3)
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
## -------------------------------------------------------------------
## MAdLib - Copyright (C) 2008-2009 Universite catholique de Louvain

## See the Copyright.txt and License.txt files for license information. 
## You should have received a copy of these files along with MAdLib. 
## If not, see <http://www.madlib.be/license/>

## Please report all bugs and problems to <contrib@madlib.be>

## Author: Gaetan Compere
## -------------------------------------------------------------------

## Process this file with automake to produce Makefile.in

srcdir = @srcdir@
MAdLib_DIRS = @MAdLib_DIRS@
MAdLib_DEFS = @MAdLib_DEFS@
MAdLib_INCLUDES = @MAdLib_INCLUDES@
MAdLib_BENCHDIRS = @MAdLib_BENCHDIRS@
MAdLib_LIBADD = @MAdLib_LIBADD@
VPATH = @srcdir@
DOXYGEN = @DOXYGEN@
docdir = @docdir@
includedir = @includedir@
allincludedir = @allincludedir@

MADLIB_MAJOR_VERSION = 1
MADLIB_MINOR_VERSION = 3
MADLIB_PATCH_VERSION = 0

MADLIB_VERSION = ${MADLIB_MAJOR_VERSION}.${MADLIB_MINOR_VERSION}.${MADLIB_PATCH_VERSION}

SUBDIRS = ${MAdLib_DIRS}
AUTOMAKE_OPTIONS = subdir-objects

DISTCHECK_CONFIGURE_FLAGS = --enable-benchmarks --enable-ann

dist_doc_DATA = README License.txt Copyright.txt Credits.txt Tutorial/MAdLibInterface.h Tutorial/MAdLibInterface.cpp Tutorial/Makefile doxygen.config

EXTRA_DIST = \
Benchmarks/moveIt/examples/tube/tube.geo \
Benchmarks/moveIt/examples/tube/MyParams.h \
Benchmarks/moveIt/examples/tube/tube.mad \
Benchmarks/moveIt/examples/square/square.geo \
Benchmarks/moveIt/examples/square/square.mad \
Benchmarks/moveIt/examples/cube/cube.geo \
Benchmarks/moveIt/examples/cube/cube.mad \
Benchmarks/moveIt/examples/sphere/spheres.geo \
Benchmarks/moveIt/examples/sphere/spheres.mad \
Benchmarks/moveIt/examples/block/block.step \
Benchmarks/moveIt/examples/block/block.mad \
Benchmarks/moveIt/examples/A319/A319.brep \
Benchmarks/moveIt/examples/A319/A319_nobox.geo \
Benchmarks/moveIt/examples/A319/A319_2D.mad

lib_LTLIBRARIES = libMAdLib.la

libMAdLib_la_LIBADD = ${MAdLib_LIBADD}

libMAdLib_la_DEPENDENCIES = ${MAdLib_LIBADD}

CPPFLAGS += ${MAdLib_DEFS}

AM_CPPFLAGS =  ${MAdLib_INCLUDES}\
       -I$(srcdir)/Geo\
       -I$(srcdir)/Mesh\
       -I$(srcdir)/Common\
       -I$(srcdir)/Adapt\
       -I$(srcdir)/Adapt/constraint\
       -I$(srcdir)/Adapt/operator\
       -I$(srcdir)/Adapt/output\
       -I$(srcdir)/Adapt/quality\
       -I$(srcdir)/Adapt/repositioning\
       -I$(srcdir)/Adapt/sizeField\
       -I$(srcdir)/Adapt/utils


libMAdLib_la_SOURCES =

include_HEADERS = \
  Adapt/AdaptInterface.h\
  Adapt/output/MAdOutput.h\
  Adapt/repositioning/MobileObject.h\
  Adapt/operator/MAdOperations.h\
  Adapt/sizeField/LocalSizeField.h\
  Adapt/sizeField/AnalyticalSField.h\
  Adapt/sizeField/PWLinearSField.h\
  Adapt/sizeField/SizeFieldBase.h\
  Adapt/sizeField/DiscreteSF.h\
  Adapt/sizeField/SizeField.h\
  Adapt/sizeField/BackgroundSF.h\
  Adapt/utils/DistanceToPoints.h\
  Adapt/utils/DistanceFunction.h\
  Adapt/utils/CallbackDefinition.h\
  Geo/ModelInterface.h\
  Mesh/CheckMesh.h\
  Mesh/MeshDataBaseInterface.h\
  Mesh/MeshDataBaseParallelInterface.h\
  Mesh/MeshDataBaseComm.h\
  Mesh/MeshDataBaseCommPeriodic.h\
  Common/MAdLib.h

if Extended_API
allinclude_HEADERS = \
  Adapt/AdaptInterface.h\
  Adapt/constraint/ModelConstraintManager.h\
  Adapt/constraint/Constraint.h\
  Adapt/MeshParametersManager.h\
  Adapt/operator/MAdOperations.h\
  Adapt/operator/VertexMoveOp.h\
  Adapt/operator/SliverRegionHandler.h\
  Adapt/operator/FaceSwapOp.h\
  Adapt/operator/DESCOp.h\
  Adapt/operator/EdgeCollapseOp.h\
  Adapt/operator/EdgeSplitOp.h\
  Adapt/operator/EdgeSwapConfig.h\
  Adapt/operator/EdgeSwapOp.h\
  Adapt/operator/FaceCollapseOp.h\
  Adapt/operator/OperatorTools.h\
  Adapt/operator/SliverFaceHandler.h\
  Adapt/operator/RegionRemoveOp.h\
  Adapt/operator/MAdOperatorBase.h\
  Adapt/output/MAdOutput.h\
  Adapt/quality/ElementEvaluatorBase.h\
  Adapt/quality/ElementStatistics.h\
  Adapt/quality/MeshQualityManager.h\
  Adapt/quality/MeanRatioEvaluator.h\
  Adapt/quality/OrientedMeanRatioEvaluator.h\
  Adapt/repositioning/NodesRepositioningOp.h\
  Adapt/repositioning/GeoMatcher.h\
  Adapt/repositioning/MobileObject.h\
  Adapt/repositioning/LaplaceSmoothingOp.h\
  Adapt/repositioning/MAdElasticityOp.h\
  Adapt/sizeField/NullSField.h\
  Adapt/sizeField/MeshSizeBase.h\
  Adapt/sizeField/IsoMeshSize.h\
  Adapt/sizeField/LocalSizeField.h\
  Adapt/sizeField/AnalyticalSField.h\
  Adapt/sizeField/PWLinearSField.h\
  Adapt/sizeField/AnisoMeshSize.h\
  Adapt/sizeField/SizeField.h\
  Adapt/sizeField/BackgroundSF.h\
  Adapt/sizeField/SizeFieldBase.h\
  Adapt/sizeField/SizeFieldManager.h\
  Adapt/sizeField/DiscreteSF.h\
  Adapt/utils/MAdStatistics.h\
  Adapt/utils/MAdLinearSystemSparskit.h\
  Adapt/utils/DistanceToPoints.h\
  Adapt/utils/DistanceFunction.h\
  Adapt/utils/MAdLinearSystemPETSc.h\
  Adapt/utils/MAdTimeManager.h\
  Adapt/utils/MAdLinearSystemGmm.h\
  Adapt/utils/NodalDataManager.h\
  Adapt/utils/CallbackManager.h\
  Adapt/utils/CallbackDefinition.h\
  Adapt/utils/MAdLinearSystem.h\
  Adapt/utils/History.h\
  Geo/GM_Iterators.h\
  Geo/GmshEntities.h\
  Geo/GmshModel.h\
  Geo/MAdModel.h\
  Geo/ModelInterface.h\
  Geo/NullEntities.h\
  Geo/NullModel.h\
  Geo/PGList.h\
  Geo/Physical.h\
  Mesh/CheckMesh.h\
  Mesh/CheckOrientation.h\
  Mesh/Mark.h\
  Mesh/MeshDataBaseAttachable.h\
  Mesh/MeshDataBaseCommCheck.h\
  Mesh/MeshDataBaseComm.h\
  Mesh/MeshDataBaseCommPeriodic.h\
  Mesh/MeshDataBaseGEntity2Physical.h\
  Mesh/MeshDataBase.h\
  Mesh/MeshDataBaseInterface.h\
  Mesh/MeshDataBaseIO.h\
  Mesh/MeshDataBaseIterators.h\
  Mesh/MeshDataBaseLoadBalancing.h\
  Mesh/MeshDataBaseMiniMesh.h\
  Mesh/MeshDataBaseParallelInterface.h\
  Mesh/MeshDataBaseParallelIO.h\
  Mesh/metisAdaptiveRepart.h\
  Mesh/MshTags.h\
  Mesh/ParallelUtils.h\
  Mesh/PList.h\
  Common/MAdDefines.h\
  Common/MAdFieldEvaluator.h\
  Common/MAdMatrix.h\
  Common/MAdMessage.h\
  Common/MAdResourceManager.h\
  Common/MAdSingleton.h\
  Common/MAdStringFieldEvaluator.h\
  Common/MathUtils.h\
  Common/MAdLib.h\
  Common/MAdMetric.h\
  Common/MAdVector3.h\
  Contrib/mathex/mathex.h
endif

ACLOCAL_AMFLAGS = -I m4


##bench: install
##	@for i in ${MAdLib_BENCHDIRS}; do (cd $$i && ${MAKE}); done

##install-bench: bench
##	@for i in ${MAdLib_BENCHDIRS}; do (cd $$i && ${MAKE} install); done

##uninstall-bench:
##	@for i in ${MAdLib_BENCHDIRS}; do (cd $$i && ${MAKE} uninstall); done

doc:
	cd ${srcdir} && ${DOXYGEN} && cd -

install-doc: doc
	cd ${srcdir} && cp -r doc/ ${prefix}/. && cd -

##purge:
##	for i in ${MAdLib_DIRS}; do (cd $$i && ${MAKE} purge); done
##	for i in ${MAdLib_BENCHDIRS}; do (cd $$i && ${MAKE} purge); done

## GC warning: should be replaced by distcheck or sthing like that
source-tree: ##purge
	rm -rf MAdLib-${MADLIB_VERSION}
	cd ${srcdir} && tar zcf MAdLib.tgz --exclude "*.o" --exclude "*.a" --exclude "libMAdLib*"\
          --exclude "variables" --exclude "config.log" --exclude "config.status"\
          --exclude "autom4*" --exclude "Makefile.distrib" --exclude "*.bak"\
          --exclude "HTML" --exclude "*TAGS*" --exclude ".svn" --exclude "*.pos"\
          --exclude "*.msh" --exclude "toPort" --exclude "poubelle"\
          --exclude "Makefile.buildconfig"\
          Geo Mesh Adapt Common Copyright.txt License.txt Credits.txt\
          README *.in Contrib Makefile* configure Tutorial
	mkdir MAdLib-${MADLIB_VERSION}
	cd MAdLib-${MADLIB_VERSION} && tar zxf ${srcdir}/MAdLib.tgz
	rm -f ${srcdir}/MAdLib.tgz
	cd ${srcdir} && tar zcf MAdLib_Benchmarks.tgz\
          --exclude "*.bak"\
          --exclude "*.msh"\
          --exclude "*.pos"\
          --exclude ".svn"\
          --exclude "cpu" --exclude "*tmp*" --exclude "statistics"\
          --exclude "slivers" --exclude "cpuinfo" --exclude "journal" --exclude "meshSize"\
          Benchmarks/checkMesh Benchmarks/meshInfo Benchmarks/optimize\
          Benchmarks/moveIt/*.h Benchmarks/moveIt/*.cc Benchmarks/moveIt/Makefile*\
          Benchmarks/moveIt/README\
          Benchmarks/moveIt/examples/tube
	cd MAdLib-${MADLIB_VERSION} && tar zxf ${srcdir}/MAdLib_Benchmarks.tgz
	rm -f ${srcdir}/MAdLib_Benchmarks.tgz

## GC warning: should be replaced by distcheck or sthing like that
source: source-tree
	cd MAdLib-${MADLIB_VERSION} && rm -rf ${MADLIB_VERSION_FILE}\
          Common/MAdLibConfig.h 
	tar zcf MAdLib-${MADLIB_VERSION}-source.tgz MAdLib-${MADLIB_VERSION}

MADLIB_PCFILE = MAdLib.pc
pc:
	echo "prefix=${prefix}" > ${MADLIB_PCFILE}
	echo "exec_prefix=${prefix}/bin" >> ${MADLIB_PCFILE}
	echo "libdir=${libdir}" >> ${MADLIB_PCFILE}
	echo "includedir=${includedir}" >> ${MADLIB_PCFILE}
	echo "">> ${MADLIB_PCFILE}
	echo "Name: MAdLib" >> ${MADLIB_PCFILE}
	echo "Version: ${MADLIB_VERSION}" >> ${MADLIB_PCFILE}
	echo "Description: Mesh adaptation library" >> ${MADLIB_PCFILE}
	echo "Libs: -L${libdir} -lMAdLib" >> ${MADLIB_PCFILE}
	echo "Cflags: -I${includedir}" >> ${MADLIB_PCFILE}
	mkdir ${libdir}/pkgconfig
	cp ${MADLIB_PCFILE} ${libdir}/pkgconfig/.