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