1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
2 | # Also indentation by a single tab
|
---|
3 |
|
---|
4 | SUBDIRS = Actions Exceptions Helpers LinearAlgebra Parser UIElements
|
---|
5 |
|
---|
6 | AM_CPPFLAGS = ${BOOST_CPPFLAGS}
|
---|
7 |
|
---|
8 | ATOMSOURCE = \
|
---|
9 | atom.cpp \
|
---|
10 | AtomicInfo.cpp \
|
---|
11 | atom_atominfo.cpp \
|
---|
12 | atom_bondedparticle.cpp \
|
---|
13 | atom_bondedparticleinfo.cpp \
|
---|
14 | atom_graphnode.cpp \
|
---|
15 | atom_graphnodeinfo.cpp \
|
---|
16 | atom_particleinfo.cpp \
|
---|
17 | atom_trajectoryparticle.cpp \
|
---|
18 | atom_trajectoryparticleinfo.cpp
|
---|
19 | ATOMHEADER = \
|
---|
20 | atom.hpp \
|
---|
21 | AtomicInfo.hpp \
|
---|
22 | atom_atominfo.hpp \
|
---|
23 | atom_bondedparticle.hpp \
|
---|
24 | atom_bondedparticleinfo.hpp \
|
---|
25 | atom_graphnode.hpp \
|
---|
26 | atom_graphnodeinfo.hpp \
|
---|
27 | atom_particleinfo.hpp \
|
---|
28 | atom_trajectoryparticle.hpp \
|
---|
29 | atom_trajectoryparticleinfo.hpp
|
---|
30 |
|
---|
31 | ANALYSISSOURCE = \
|
---|
32 | analysis_bonds.cpp \
|
---|
33 | analysis_correlation.cpp
|
---|
34 | ANALYSISHEADER = \
|
---|
35 | analysis_bonds.hpp \
|
---|
36 | analysis_correlation.hpp
|
---|
37 |
|
---|
38 | ACTIONSSOURCE = \
|
---|
39 | Actions/Action.cpp \
|
---|
40 | Actions/ActionHistory.cpp \
|
---|
41 | Actions/ActionRegistry.cpp \
|
---|
42 | Actions/ActionSequence.cpp \
|
---|
43 | Actions/ActionTraits.cpp \
|
---|
44 | Actions/ErrorAction.cpp \
|
---|
45 | Actions/MakroAction.cpp \
|
---|
46 | Actions/ManipulateAtomsProcess.cpp \
|
---|
47 | Actions/MethodAction.cpp \
|
---|
48 | Actions/OptionRegistry.cpp \
|
---|
49 | Actions/OptionTrait.cpp \
|
---|
50 | Actions/Process.cpp
|
---|
51 |
|
---|
52 | ACTIONSHEADER = \
|
---|
53 | Actions/Action.hpp \
|
---|
54 | Actions/ActionHistory.hpp \
|
---|
55 | Actions/ActionRegistry.hpp \
|
---|
56 | Actions/ActionSequence.hpp \
|
---|
57 | Actions/ActionTraits.hpp \
|
---|
58 | Actions/Calculation.hpp \
|
---|
59 | Actions/Calculation_impl.hpp \
|
---|
60 | Actions/ErrorAction.hpp \
|
---|
61 | Actions/MakroAction.hpp \
|
---|
62 | Actions/ManipulateAtomsProcess.hpp \
|
---|
63 | Actions/MethodAction.hpp \
|
---|
64 | Actions/OptionRegistry.hpp \
|
---|
65 | Actions/OptionTrait.hpp \
|
---|
66 | Actions/Process.hpp
|
---|
67 |
|
---|
68 |
|
---|
69 | PATTERNSOURCE = \
|
---|
70 | Patterns/Observer.cpp
|
---|
71 | PATTERNHEADER = \
|
---|
72 | Patterns/Cacheable.hpp \
|
---|
73 | Patterns/Observer.hpp \
|
---|
74 | Patterns/Singleton.hpp
|
---|
75 |
|
---|
76 | SHAPESOURCE = \
|
---|
77 | Shapes/BaseShapes.cpp \
|
---|
78 | Shapes/Shape.cpp \
|
---|
79 | Shapes/ShapeOps.cpp
|
---|
80 | SHAPEHEADER = \
|
---|
81 | Shapes/BaseShapes.hpp \
|
---|
82 | Shapes/Shape.hpp \
|
---|
83 | Shapes/ShapeOps.hpp
|
---|
84 |
|
---|
85 |
|
---|
86 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
---|
87 | Descriptors/AtomIdDescriptor.cpp \
|
---|
88 | Descriptors/AtomSelectionDescriptor.cpp \
|
---|
89 | Descriptors/AtomShapeDescriptor.cpp \
|
---|
90 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
91 | Descriptors/MoleculeDescriptor.cpp \
|
---|
92 | Descriptors/MoleculeFormulaDescriptor.cpp \
|
---|
93 | Descriptors/MoleculeIdDescriptor.cpp \
|
---|
94 | Descriptors/MoleculeNameDescriptor.cpp \
|
---|
95 | Descriptors/MoleculePtrDescriptor.cpp \
|
---|
96 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
97 |
|
---|
98 |
|
---|
99 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
---|
100 | Descriptors/AtomIdDescriptor.hpp \
|
---|
101 | Descriptors/AtomSelectionDescriptor.hpp \
|
---|
102 | Descriptors/AtomShapeDescriptor.hpp \
|
---|
103 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
104 | Descriptors/MoleculeDescriptor.hpp \
|
---|
105 | Descriptors/MoleculeFormulaDescriptor.hpp \
|
---|
106 | Descriptors/MoleculeIdDescriptor.hpp \
|
---|
107 | Descriptors/MoleculeNameDescriptor.hpp \
|
---|
108 | Descriptors/MoleculePtrDescriptor.hpp \
|
---|
109 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
110 |
|
---|
111 | THERMOSTATSOURCE = \
|
---|
112 | Thermostats/Berendsen.cpp \
|
---|
113 | Thermostats/GaussianThermostat.cpp \
|
---|
114 | Thermostats/Langevin.cpp \
|
---|
115 | Thermostats/NoseHoover.cpp \
|
---|
116 | Thermostats/NoThermostat.cpp \
|
---|
117 | Thermostats/Thermostat.cpp \
|
---|
118 | Thermostats/Woodcock.cpp
|
---|
119 |
|
---|
120 | THERMOSTATHEADER = \
|
---|
121 | Thermostats/Berendsen.hpp \
|
---|
122 | Thermostats/GaussianThermostat.hpp \
|
---|
123 | Thermostats/Langevin.hpp \
|
---|
124 | Thermostats/NoseHoover.hpp \
|
---|
125 | Thermostats/NoThermostat.hpp \
|
---|
126 | Thermostats/Thermostat.hpp \
|
---|
127 | Thermostats/Woodcock.hpp
|
---|
128 |
|
---|
129 | TESSELATIONSOURCE = \
|
---|
130 | BoundaryLineSet.cpp \
|
---|
131 | BoundaryPointSet.cpp \
|
---|
132 | BoundaryPolygonSet.cpp \
|
---|
133 | BoundaryTriangleSet.cpp \
|
---|
134 | CandidateForTesselation.cpp \
|
---|
135 | PointCloud.cpp \
|
---|
136 | tesselation.cpp \
|
---|
137 | tesselationhelpers.cpp \
|
---|
138 | TesselPoint.cpp
|
---|
139 |
|
---|
140 | TESSELATIONHEADER = \
|
---|
141 | BoundaryLineSet.hpp \
|
---|
142 | BoundaryPointSet.hpp \
|
---|
143 | BoundaryPolygonSet.hpp \
|
---|
144 | BoundaryTriangleSet.hpp \
|
---|
145 | CandidateForTesselation.hpp \
|
---|
146 | PointCloud.hpp \
|
---|
147 | tesselation.hpp \
|
---|
148 | tesselationhelpers.hpp \
|
---|
149 | TesselPoint.hpp
|
---|
150 |
|
---|
151 | MOLECUILDERSOURCE = \
|
---|
152 | ${ANALYSISSOURCE} \
|
---|
153 | ${ACTIONSSOURCE} \
|
---|
154 | ${ATOMSOURCE} \
|
---|
155 | ${PATTERNSOURCE} \
|
---|
156 | ${SHAPESOURCE} \
|
---|
157 | ${DESCRIPTORSOURCE} \
|
---|
158 | ${THERMOSTATSOURCE} \
|
---|
159 | ${TESSELATIONSOURCE} \
|
---|
160 | bond.cpp \
|
---|
161 | bondgraph.cpp \
|
---|
162 | boundary.cpp \
|
---|
163 | Box.cpp \
|
---|
164 | config.cpp \
|
---|
165 | ConfigFileBuffer.cpp \
|
---|
166 | element.cpp \
|
---|
167 | elements_db.cpp \
|
---|
168 | ellipsoid.cpp \
|
---|
169 | Formula.cpp \
|
---|
170 | graph.cpp \
|
---|
171 | linkedcell.cpp \
|
---|
172 | moleculelist.cpp \
|
---|
173 | molecule.cpp \
|
---|
174 | molecule_dynamics.cpp \
|
---|
175 | molecule_fragmentation.cpp \
|
---|
176 | molecule_geometry.cpp \
|
---|
177 | molecule_graph.cpp \
|
---|
178 | molecule_pointcloud.cpp \
|
---|
179 | parser.cpp \
|
---|
180 | periodentafel.cpp \
|
---|
181 | ThermoStatContainer.cpp \
|
---|
182 | triangleintersectionlist.cpp \
|
---|
183 | UIElements/UIFactory.cpp \
|
---|
184 | World.cpp
|
---|
185 |
|
---|
186 | MOLECUILDERHEADER = \
|
---|
187 | ${ANALYSISHEADER} \
|
---|
188 | ${ACTIONSHEADER} \
|
---|
189 | ${ATOMHEADER} \
|
---|
190 | ${PATTERNHEADER} \
|
---|
191 | ${SHAPEHEADER} \
|
---|
192 | ${DESCRIPTORHEADER} \
|
---|
193 | ${THERMOSTATHEADER} \
|
---|
194 | ${TESSELATIONHEADER} \
|
---|
195 | bond.hpp \
|
---|
196 | bondgraph.hpp \
|
---|
197 | boundary.hpp \
|
---|
198 | Box.hpp \
|
---|
199 | config.hpp \
|
---|
200 | ConfigFileBuffer.hpp \
|
---|
201 | element.hpp \
|
---|
202 | elements_db.hpp \
|
---|
203 | ellipsoid.hpp \
|
---|
204 | Formula.hpp \
|
---|
205 | graph.hpp \
|
---|
206 | linkedcell.hpp \
|
---|
207 | lists.hpp \
|
---|
208 | molecule.hpp \
|
---|
209 | parser.hpp \
|
---|
210 | periodentafel.hpp \
|
---|
211 | stackclass.hpp \
|
---|
212 | ThermoStatContainer.hpp \
|
---|
213 | triangleintersectionlist.hpp \
|
---|
214 | UIElements/UIFactory.hpp \
|
---|
215 | World.hpp
|
---|
216 |
|
---|
217 | lib_LTLIBRARIES = libMolecuilder-@MOLECUILDER_API_VERSION@.la
|
---|
218 | libMolecuilder_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
|
---|
219 | libMolecuilder_LIBS = \
|
---|
220 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
---|
221 | ${BOOST_PROGRAM_OPTIONS_LIB}
|
---|
222 |
|
---|
223 | # UIElements/libMolecuilderUI.a \
|
---|
224 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
---|
225 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
---|
226 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
---|
227 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
---|
228 | $(BOOST_LIB) \
|
---|
229 | ${BOOST_THREAD_LIB}
|
---|
230 |
|
---|
231 | nobase_libMolecuilder_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_@MOLECUILDER_API_VERSION@_la_SOURCES = ${MOLECUILDERSOURCE} $(srcdir)/version.c
|
---|
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_@MOLECUILDER_API_VERSION@_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_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
|
---|
260 | nodist_libMolecuilder_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-$(MOLECUILDER_API_VERSION).pc
|
---|
268 |
|
---|
269 |
|
---|
270 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
|
---|
271 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
---|
272 |
|
---|
273 | noinst_LIBRARIES = libmenu.a
|
---|
274 | bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
|
---|
275 | EXTRA_PROGRAMS = unity
|
---|
276 |
|
---|
277 | molecuilderdir = ${bindir}
|
---|
278 |
|
---|
279 | libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
|
---|
280 |
|
---|
281 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
282 |
|
---|
283 | molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
|
---|
284 | #molecuilder_CXXFLAGS += -DNO_CACHING
|
---|
285 | molecuilder_LDFLAGS = $(BOOST_LIB)
|
---|
286 | molecuilder_SOURCES = builder.cpp
|
---|
287 | molecuilder_LDADD = \
|
---|
288 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
---|
289 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
---|
290 | libMolecuilder-@MOLECUILDER_API_VERSION@.la \
|
---|
291 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
---|
292 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
---|
293 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
---|
294 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
---|
295 | $(BOOST_LIB)
|
---|
296 |
|
---|
297 | #Stuff for building the GUI using Qt
|
---|
298 | molecuildergui_SOURCES = builder.cpp
|
---|
299 | molecuildergui_CXXFLAGS = $(BOOST_CPPFLAGS) -DUSE_GUI_QT
|
---|
300 | molecuildergui_LDFLAGS = $(BOOST_LIB)
|
---|
301 |
|
---|
302 | unity_SOURCES = unity.cpp
|
---|
303 | unity_LDADD = $(BOOST_LIB)
|
---|
304 |
|
---|
305 | molecuildergui_LDADD = \
|
---|
306 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
---|
307 | UIElements/libMolecuilderQtUI-@MOLECUILDER_API_VERSION@.la \
|
---|
308 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
---|
309 | libMolecuilder-@MOLECUILDER_API_VERSION@.la \
|
---|
310 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
---|
311 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
---|
312 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
---|
313 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
---|
314 | $(BOOST_LIB) \
|
---|
315 | ${GUI_LIBS}
|
---|
316 |
|
---|
317 | joiner_SOURCES = joiner.cpp datacreator.cpp datacreator.hpp periodentafel.hpp
|
---|
318 | joiner_LDADD = \
|
---|
319 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
---|
320 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
---|
321 | libMolecuilder-@MOLECUILDER_API_VERSION@.la \
|
---|
322 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
---|
323 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
---|
324 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
---|
325 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
---|
326 | $(BOOST_LIB)
|
---|
327 |
|
---|
328 | analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
|
---|
329 | analyzer_LDADD = \
|
---|
330 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
---|
331 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
---|
332 | libMolecuilder-@MOLECUILDER_API_VERSION@.la \
|
---|
333 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
---|
334 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
---|
335 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
---|
336 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
---|
337 | $(BOOST_LIB)
|
---|
338 |
|
---|
339 | #EXTRA_DIST = ${molecuilder_DATA}
|
---|
340 |
|
---|
341 | FORCE:
|
---|
342 | $(srcdir)/.git-version: FORCE
|
---|
343 | @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
|
---|
344 | && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
|
---|
345 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
346 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
347 | else \
|
---|
348 | rm -f .git-version-t; \
|
---|
349 | fi
|
---|
350 |
|
---|
351 | EXTRA_DIST = $(srcdir)/.git-version
|
---|
352 |
|
---|
353 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
354 | echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
355 |
|
---|
356 |
|
---|
357 | unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
|
---|
358 | echo "#include \"$(srcdir)/Helpers/MemDebug.cpp\"" > unity.cpp; \
|
---|
359 | list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
|
---|
360 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
361 | done; \
|
---|
362 | subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
|
---|
363 | olddir=$$PWD;\
|
---|
364 | cd $$directory && make unity.cpp;\
|
---|
365 | cd $$olddir;\
|
---|
366 | echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
|
---|
367 | done;\
|
---|
368 | echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
|
---|
369 | echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
|
---|
370 |
|
---|
371 | MOSTLYCLEANFILES = unity.cpp
|
---|
372 |
|
---|