1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
2 | # Also indentation by a single tab
|
---|
3 |
|
---|
4 | SUBDIRS = \
|
---|
5 | Exceptions \
|
---|
6 | RandomNumbers \
|
---|
7 | Parser \
|
---|
8 | LinearAlgebra \
|
---|
9 | Shapes \
|
---|
10 | Actions \
|
---|
11 | UIElements
|
---|
12 |
|
---|
13 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
|
---|
14 |
|
---|
15 | ATOMSOURCE = \
|
---|
16 | atom.cpp \
|
---|
17 | AtomicInfo.cpp \
|
---|
18 | atom_atominfo.cpp \
|
---|
19 | atom_bondedparticle.cpp \
|
---|
20 | atom_bondedparticleinfo.cpp \
|
---|
21 | atom_graphnode.cpp \
|
---|
22 | atom_graphnodeinfo.cpp \
|
---|
23 | atom_particleinfo.cpp
|
---|
24 | ATOMHEADER = \
|
---|
25 | atom.hpp \
|
---|
26 | AtomicInfo.hpp \
|
---|
27 | atom_atominfo.hpp \
|
---|
28 | atom_bondedparticle.hpp \
|
---|
29 | atom_bondedparticleinfo.hpp \
|
---|
30 | atom_graphnode.hpp \
|
---|
31 | atom_graphnodeinfo.hpp \
|
---|
32 | atom_particleinfo.hpp
|
---|
33 |
|
---|
34 | ANALYSISSOURCE = \
|
---|
35 | analysis_bonds.cpp \
|
---|
36 | analysis_correlation.cpp
|
---|
37 | ANALYSISHEADER = \
|
---|
38 | analysis_bonds.hpp \
|
---|
39 | analysis_correlation.hpp
|
---|
40 |
|
---|
41 | ACTIONSSOURCE = \
|
---|
42 | Actions/Action.cpp \
|
---|
43 | Actions/ActionHistory.cpp \
|
---|
44 | Actions/ActionRegistry.cpp \
|
---|
45 | Actions/ActionSequence.cpp \
|
---|
46 | Actions/ActionTraits.cpp \
|
---|
47 | Actions/ErrorAction.cpp \
|
---|
48 | Actions/MakroAction.cpp \
|
---|
49 | Actions/ManipulateAtomsProcess.cpp \
|
---|
50 | Actions/MethodAction.cpp \
|
---|
51 | Actions/OptionRegistry.cpp \
|
---|
52 | Actions/OptionTrait.cpp \
|
---|
53 | Actions/Process.cpp
|
---|
54 |
|
---|
55 | ACTIONSHEADER = \
|
---|
56 | Actions/Action.hpp \
|
---|
57 | Actions/ActionHistory.hpp \
|
---|
58 | Actions/ActionRegistry.hpp \
|
---|
59 | Actions/ActionSequence.hpp \
|
---|
60 | Actions/ActionTraits.hpp \
|
---|
61 | Actions/Calculation.hpp \
|
---|
62 | Actions/Calculation_impl.hpp \
|
---|
63 | Actions/ErrorAction.hpp \
|
---|
64 | Actions/MakroAction.hpp \
|
---|
65 | Actions/ManipulateAtomsProcess.hpp \
|
---|
66 | Actions/MethodAction.hpp \
|
---|
67 | Actions/OptionRegistry.hpp \
|
---|
68 | Actions/OptionTrait.hpp \
|
---|
69 | Actions/Process.hpp
|
---|
70 |
|
---|
71 |
|
---|
72 | DESCRIPTORSOURCE = \
|
---|
73 | Descriptors/AtomDescriptor.cpp \
|
---|
74 | Descriptors/AtomIdDescriptor.cpp \
|
---|
75 | Descriptors/AtomOfMoleculeSelectionDescriptor.cpp \
|
---|
76 | Descriptors/AtomSelectionDescriptor.cpp \
|
---|
77 | Descriptors/AtomShapeDescriptor.cpp \
|
---|
78 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
79 | Descriptors/MoleculeDescriptor.cpp \
|
---|
80 | Descriptors/MoleculeFormulaDescriptor.cpp \
|
---|
81 | Descriptors/MoleculeIdDescriptor.cpp \
|
---|
82 | Descriptors/MoleculeNameDescriptor.cpp \
|
---|
83 | Descriptors/MoleculeOfAtomSelectionDescriptor.cpp \
|
---|
84 | Descriptors/MoleculeOrderDescriptor.cpp \
|
---|
85 | Descriptors/MoleculePtrDescriptor.cpp \
|
---|
86 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
87 |
|
---|
88 |
|
---|
89 | DESCRIPTORHEADER = \
|
---|
90 | Descriptors/AtomDescriptor.hpp \
|
---|
91 | Descriptors/AtomIdDescriptor.hpp \
|
---|
92 | Descriptors/AtomOfMoleculeSelectionDescriptor.hpp \
|
---|
93 | Descriptors/AtomSelectionDescriptor.hpp \
|
---|
94 | Descriptors/AtomShapeDescriptor.hpp \
|
---|
95 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
96 | Descriptors/MoleculeDescriptor.hpp \
|
---|
97 | Descriptors/MoleculeFormulaDescriptor.hpp \
|
---|
98 | Descriptors/MoleculeIdDescriptor.hpp \
|
---|
99 | Descriptors/MoleculeNameDescriptor.hpp \
|
---|
100 | Descriptors/MoleculeOfAtomSelectionDescriptor.hpp \
|
---|
101 | Descriptors/MoleculeOrderDescriptor.hpp \
|
---|
102 | Descriptors/MoleculePtrDescriptor.hpp \
|
---|
103 | Descriptors/MoleculeSelectionDescriptor.hpp
|
---|
104 |
|
---|
105 | DESCRIPTORIMPLHEADER = \
|
---|
106 | Descriptors/AtomDescriptor_impl.hpp \
|
---|
107 | Descriptors/AtomIdDescriptor_impl.hpp \
|
---|
108 | Descriptors/AtomOfMoleculeSelectionDescriptor_impl.hpp \
|
---|
109 | Descriptors/AtomSelectionDescriptor_impl.hpp \
|
---|
110 | Descriptors/AtomShapeDescriptor_impl.hpp \
|
---|
111 | Descriptors/AtomTypeDescriptor_impl.hpp \
|
---|
112 | Descriptors/MoleculeDescriptor_impl.hpp \
|
---|
113 | Descriptors/MoleculeFormulaDescriptor_impl.hpp \
|
---|
114 | Descriptors/MoleculeIdDescriptor_impl.hpp \
|
---|
115 | Descriptors/MoleculeNameDescriptor_impl.hpp \
|
---|
116 | Descriptors/MoleculeOfAtomSelectionDescriptor_impl.hpp \
|
---|
117 | Descriptors/MoleculeOrderDescriptor_impl.hpp \
|
---|
118 | Descriptors/MoleculePtrDescriptor_impl.hpp \
|
---|
119 | Descriptors/MoleculeSelectionDescriptor_impl.hpp
|
---|
120 |
|
---|
121 | THERMOSTATSOURCE = \
|
---|
122 | Thermostats/Berendsen.cpp \
|
---|
123 | Thermostats/GaussianThermostat.cpp \
|
---|
124 | Thermostats/Langevin.cpp \
|
---|
125 | Thermostats/NoseHoover.cpp \
|
---|
126 | Thermostats/NoThermostat.cpp \
|
---|
127 | Thermostats/Thermostat.cpp \
|
---|
128 | Thermostats/Woodcock.cpp
|
---|
129 |
|
---|
130 | THERMOSTATHEADER = \
|
---|
131 | Thermostats/Berendsen.hpp \
|
---|
132 | Thermostats/GaussianThermostat.hpp \
|
---|
133 | Thermostats/Langevin.hpp \
|
---|
134 | Thermostats/NoseHoover.hpp \
|
---|
135 | Thermostats/NoThermostat.hpp \
|
---|
136 | Thermostats/Thermostat.hpp \
|
---|
137 | Thermostats/Woodcock.hpp
|
---|
138 |
|
---|
139 | TESSELATIONSOURCE = \
|
---|
140 | BoundaryLineSet.cpp \
|
---|
141 | BoundaryPointSet.cpp \
|
---|
142 | BoundaryPolygonSet.cpp \
|
---|
143 | BoundaryTriangleSet.cpp \
|
---|
144 | CandidateForTesselation.cpp \
|
---|
145 | PointCloud.cpp \
|
---|
146 | tesselation.cpp \
|
---|
147 | tesselationhelpers.cpp \
|
---|
148 | TesselPoint.cpp
|
---|
149 |
|
---|
150 | TESSELATIONHEADER = \
|
---|
151 | BoundaryLineSet.hpp \
|
---|
152 | BoundaryPointSet.hpp \
|
---|
153 | BoundaryPolygonSet.hpp \
|
---|
154 | BoundaryTriangleSet.hpp \
|
---|
155 | CandidateForTesselation.hpp \
|
---|
156 | PointCloud.hpp \
|
---|
157 | tesselation.hpp \
|
---|
158 | tesselationhelpers.hpp \
|
---|
159 | TesselPoint.hpp
|
---|
160 |
|
---|
161 | MOLECUILDERSOURCE = \
|
---|
162 | ${ANALYSISSOURCE} \
|
---|
163 | ${ACTIONSSOURCE} \
|
---|
164 | ${ATOMSOURCE} \
|
---|
165 | ${DESCRIPTORSOURCE} \
|
---|
166 | ${RANDOMSOURCE} \
|
---|
167 | ${THERMOSTATSOURCE} \
|
---|
168 | ${TESSELATIONSOURCE} \
|
---|
169 | Helpers/defs.cpp \
|
---|
170 | Helpers/helpers.cpp \
|
---|
171 | bond.cpp \
|
---|
172 | bondgraph.cpp \
|
---|
173 | boundary.cpp \
|
---|
174 | Box.cpp \
|
---|
175 | config.cpp \
|
---|
176 | ConfigFileBuffer.cpp \
|
---|
177 | element.cpp \
|
---|
178 | elements_db.cpp \
|
---|
179 | ellipsoid.cpp \
|
---|
180 | Formula.cpp \
|
---|
181 | graph.cpp \
|
---|
182 | linkedcell.cpp \
|
---|
183 | moleculelist.cpp \
|
---|
184 | molecule.cpp \
|
---|
185 | molecule_dynamics.cpp \
|
---|
186 | molecule_fragmentation.cpp \
|
---|
187 | molecule_geometry.cpp \
|
---|
188 | molecule_graph.cpp \
|
---|
189 | molecule_pointcloud.cpp \
|
---|
190 | parser.cpp \
|
---|
191 | periodentafel.cpp \
|
---|
192 | ThermoStatContainer.cpp \
|
---|
193 | triangleintersectionlist.cpp \
|
---|
194 | UIElements/UIFactory.cpp \
|
---|
195 | World.cpp \
|
---|
196 | WorldTime.cpp
|
---|
197 |
|
---|
198 | MOLECUILDERHEADER = \
|
---|
199 | ${ANALYSISHEADER} \
|
---|
200 | ${ACTIONSHEADER} \
|
---|
201 | ${ATOMHEADER} \
|
---|
202 | ${DESCRIPTORHEADER} \
|
---|
203 | ${DESCRIPTORIMPLHEADER} \
|
---|
204 | ${RANDOMSOURCE} \
|
---|
205 | ${THERMOSTATHEADER} \
|
---|
206 | ${TESSELATIONHEADER} \
|
---|
207 | Helpers/defs.hpp \
|
---|
208 | Helpers/fast_functions.hpp \
|
---|
209 | Helpers/helpers.hpp \
|
---|
210 | bond.hpp \
|
---|
211 | bondgraph.hpp \
|
---|
212 | boundary.hpp \
|
---|
213 | Box.hpp \
|
---|
214 | config.hpp \
|
---|
215 | ConfigFileBuffer.hpp \
|
---|
216 | element.hpp \
|
---|
217 | elements_db.hpp \
|
---|
218 | ellipsoid.hpp \
|
---|
219 | Formula.hpp \
|
---|
220 | graph.hpp \
|
---|
221 | linkedcell.hpp \
|
---|
222 | molecule.hpp \
|
---|
223 | parser.hpp \
|
---|
224 | periodentafel.hpp \
|
---|
225 | ThermoStatContainer.hpp \
|
---|
226 | triangleintersectionlist.hpp \
|
---|
227 | UIElements/UIFactory.hpp \
|
---|
228 | World.hpp \
|
---|
229 | WorldTime.hpp
|
---|
230 |
|
---|
231 | lib_LTLIBRARIES = libMolecuilder.la
|
---|
232 | libMolecuilder_la_includedir = $(includedir)/MoleCuilder/
|
---|
233 | libMolecuilder_la_LIBADD = \
|
---|
234 | LinearAlgebra/libMolecuilderLinearAlgebra.la \
|
---|
235 | ${CodePatterns_LIBS} \
|
---|
236 | ${BOOST_PROGRAM_OPTIONS_LIB}
|
---|
237 |
|
---|
238 | nobase_libMolecuilder_la_include_HEADERS = ${MOLECUILDERHEADER}
|
---|
239 |
|
---|
240 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
241 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
242 | ## will therefore be treated as if it were literally part of the target name,
|
---|
243 | ## and the variable name derived from that.
|
---|
244 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
245 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
246 | ## from each source file. Note that it is not necessary to list header files
|
---|
247 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
248 | libMolecuilder_la_SOURCES = ${MOLECUILDERSOURCE} $(srcdir)/version.c
|
---|
249 |
|
---|
250 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
251 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
252 | ## that all version information is kept in one place.
|
---|
253 | libMolecuilder_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
254 |
|
---|
255 | ## The generated configuration header is installed in its own subdirectory of
|
---|
256 | ## $(libdir). The reason for this is that the configuration information put
|
---|
257 | ## into this header file describes the target platform the installed library
|
---|
258 | ## has been built for. Thus the file must not be installed into a location
|
---|
259 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
260 | ## Hierarchy Standard (FHS).
|
---|
261 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
262 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
263 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
264 | ## configuration header file is generated at configure time and should not be
|
---|
265 | ## shipped with the source tarball.
|
---|
266 | libMolecuilder_la_libincludedir = $(libdir)/MoleCuilder/include
|
---|
267 | nodist_libMolecuilder_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
268 |
|
---|
269 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
270 | ## architecture-dependent package configuration information. Occasionally,
|
---|
271 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
272 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
273 | pkgconfigdir = $(libdir)/pkgconfig
|
---|
274 | pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
---|
275 |
|
---|
276 |
|
---|
277 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
|
---|
278 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
---|
279 |
|
---|
280 | noinst_LIBRARIES = libmenu.a
|
---|
281 | bin_PROGRAMS = molecuilder molecuildergui joiner analyzer SubspaceFactorizer
|
---|
282 | EXTRA_PROGRAMS = unity
|
---|
283 |
|
---|
284 | molecuilderdir = ${bindir}
|
---|
285 |
|
---|
286 | libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
|
---|
287 |
|
---|
288 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
289 |
|
---|
290 | SubspaceFactorizer_CXXFLAGS = $(BOOST_CPPFLAGS)
|
---|
291 | SubspaceFactorizer_SOURCES = SubspaceFactorizer.cpp Helpers/defs.cpp Helpers/defs.hpp Helpers/helpers.cpp Helpers/helpers.hpp
|
---|
292 | SubspaceFactorizer_LDADD = \
|
---|
293 | LinearAlgebra/libMolecuilderLinearAlgebra.la \
|
---|
294 | Exceptions/libMolecuilderExceptions.la \
|
---|
295 | ${CodePatterns_LIBS} \
|
---|
296 | $(GSLLIB) \
|
---|
297 | $(BOOST_LIB)
|
---|
298 |
|
---|
299 | molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
|
---|
300 | #molecuilder_CXXFLAGS += -DNO_CACHING
|
---|
301 | molecuilder_LDFLAGS = $(BOOST_LIB)
|
---|
302 | molecuilder_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
|
---|
303 | molecuilder_LDADD = \
|
---|
304 | UIElements/libMolecuilderUI.la \
|
---|
305 | Actions/libMolecuilderActions.la \
|
---|
306 | libMolecuilder.la \
|
---|
307 | Parser/libMolecuilderParser.la \
|
---|
308 | Shapes/libMolecuilderShapes.la \
|
---|
309 | LinearAlgebra/libMolecuilderLinearAlgebra.la \
|
---|
310 | Exceptions/libMolecuilderExceptions.la \
|
---|
311 | RandomNumbers/libMolecuilderRandomNumbers.la \
|
---|
312 | ${CodePatterns_LIBS} \
|
---|
313 | $(BOOST_LIB)
|
---|
314 |
|
---|
315 | #Stuff for building the GUI using Qt
|
---|
316 | molecuildergui_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
|
---|
317 | molecuildergui_CXXFLAGS = $(BOOST_CPPFLAGS) -DUSE_GUI_QT
|
---|
318 | molecuildergui_LDFLAGS = $(BOOST_LIB)
|
---|
319 |
|
---|
320 | unity_SOURCES = unity.cpp
|
---|
321 | unity_LDADD = $(BOOST_LIB)
|
---|
322 |
|
---|
323 | molecuildergui_LDADD = \
|
---|
324 | UIElements/libMolecuilderUI.la \
|
---|
325 | UIElements/libMolecuilderQtUI.la \
|
---|
326 | Actions/libMolecuilderActions.la \
|
---|
327 | libMolecuilder.la \
|
---|
328 | Parser/libMolecuilderParser.la \
|
---|
329 | Shapes/libMolecuilderShapes.la \
|
---|
330 | LinearAlgebra/libMolecuilderLinearAlgebra.la \
|
---|
331 | Exceptions/libMolecuilderExceptions.la \
|
---|
332 | RandomNumbers/libMolecuilderRandomNumbers.la \
|
---|
333 | ${CodePatterns_LIBS} \
|
---|
334 | $(BOOST_LIB) \
|
---|
335 | ${GUI_LIBS}
|
---|
336 |
|
---|
337 | joiner_SOURCES = joiner.cpp datacreator.cpp datacreator.hpp periodentafel.hpp
|
---|
338 | joiner_LDADD = \
|
---|
339 | UIElements/libMolecuilderUI.la \
|
---|
340 | Actions/libMolecuilderActions.la \
|
---|
341 | libMolecuilder.la \
|
---|
342 | Parser/libMolecuilderParser.la \
|
---|
343 | Shapes/libMolecuilderShapes.la \
|
---|
344 | LinearAlgebra/libMolecuilderLinearAlgebra.la \
|
---|
345 | Exceptions/libMolecuilderExceptions.la \
|
---|
346 | RandomNumbers/libMolecuilderRandomNumbers.la \
|
---|
347 | ${CodePatterns_LIBS} \
|
---|
348 | $(BOOST_LIB)
|
---|
349 |
|
---|
350 | analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
|
---|
351 | analyzer_LDADD = \
|
---|
352 | UIElements/libMolecuilderUI.la \
|
---|
353 | Actions/libMolecuilderActions.la \
|
---|
354 | libMolecuilder.la \
|
---|
355 | Parser/libMolecuilderParser.la \
|
---|
356 | Shapes/libMolecuilderShapes.la \
|
---|
357 | LinearAlgebra/libMolecuilderLinearAlgebra.la \
|
---|
358 | Exceptions/libMolecuilderExceptions.la \
|
---|
359 | RandomNumbers/libMolecuilderRandomNumbers.la \
|
---|
360 | ${CodePatterns_LIBS} \
|
---|
361 | $(BOOST_LIB)
|
---|
362 |
|
---|
363 | #EXTRA_DIST = ${molecuilder_DATA}
|
---|
364 |
|
---|
365 | FORCE:
|
---|
366 | $(srcdir)/.git-version: FORCE
|
---|
367 | @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
|
---|
368 | && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
|
---|
369 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
370 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
371 | else \
|
---|
372 | rm -f .git-version-t; \
|
---|
373 | fi
|
---|
374 |
|
---|
375 | EXTRA_DIST = $(srcdir)/.git-version
|
---|
376 |
|
---|
377 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
378 | echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
379 |
|
---|
380 |
|
---|
381 | unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
|
---|
382 | echo "#include \"$(srcdir)/Helpers/MemDebug.cpp\"" > unity.cpp; \
|
---|
383 | list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
|
---|
384 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
385 | done; \
|
---|
386 | subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
|
---|
387 | olddir=$$PWD;\
|
---|
388 | cd $$directory && make unity.cpp;\
|
---|
389 | cd $$olddir;\
|
---|
390 | echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
|
---|
391 | done;\
|
---|
392 | echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
|
---|
393 | echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
|
---|
394 |
|
---|
395 | MOSTLYCLEANFILES = unity.cpp
|
---|
396 |
|
---|