1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
2 | # Also indentation by a single tab
|
---|
3 |
|
---|
4 | SUBDIRS = Actions UIElements
|
---|
5 |
|
---|
6 | # this includes source files that need to be present at multiple points
|
---|
7 | HELPERSOURCE = \
|
---|
8 | Helpers/Assert.cpp \
|
---|
9 | Helpers/MemDebug.cpp
|
---|
10 |
|
---|
11 | BASESOURCE = \
|
---|
12 | ${HELPERSOURCE} \
|
---|
13 | Space.cpp \
|
---|
14 | vector.cpp
|
---|
15 |
|
---|
16 | BASEHEADER = \
|
---|
17 | ${HELPERHEADER} \
|
---|
18 | Space.hpp \
|
---|
19 | vector.hpp
|
---|
20 |
|
---|
21 | ATOMSOURCE = \
|
---|
22 | atom.cpp \
|
---|
23 | atom_atominfo.cpp \
|
---|
24 | atom_bondedparticle.cpp \
|
---|
25 | atom_bondedparticleinfo.cpp \
|
---|
26 | atom_graphnode.cpp \
|
---|
27 | atom_graphnodeinfo.cpp \
|
---|
28 | atom_particleinfo.cpp \
|
---|
29 | atom_trajectoryparticle.cpp \
|
---|
30 | atom_trajectoryparticleinfo.cpp
|
---|
31 | ATOMHEADER = \
|
---|
32 | atom.hpp \
|
---|
33 | atom_atominfo.hpp \
|
---|
34 | atom_bondedparticle.hpp \
|
---|
35 | atom_bondedparticleinfo.hpp \
|
---|
36 | atom_graphnode.hpp \
|
---|
37 | atom_graphnodeinfo.hpp \
|
---|
38 | atom_particleinfo.hpp \
|
---|
39 | atom_trajectoryparticle.hpp \
|
---|
40 | atom_trajectoryparticleinfo.hpp
|
---|
41 |
|
---|
42 | LINALGSOURCE = \
|
---|
43 | gslmatrix.cpp \
|
---|
44 | gslvector.cpp \
|
---|
45 | linearsystemofequations.cpp
|
---|
46 |
|
---|
47 | LINALGHEADER = \
|
---|
48 | gslmatrix.hpp \
|
---|
49 | gslvector.hpp \
|
---|
50 | linearsystemofequations.hpp
|
---|
51 |
|
---|
52 | ANALYSISSOURCE = \
|
---|
53 | analysis_bonds.cpp \
|
---|
54 | analysis_correlation.cpp
|
---|
55 | ANALYSISHEADER = \
|
---|
56 | analysis_bonds.hpp \
|
---|
57 | analysis_correlation.hpp
|
---|
58 |
|
---|
59 | ACTIONSSOURCE = \
|
---|
60 | Actions/Action.cpp \
|
---|
61 | Actions/ActionHistory.cpp \
|
---|
62 | Actions/ActionRegistry.cpp \
|
---|
63 | Actions/ActionSequence.cpp \
|
---|
64 | Actions/ErrorAction.cpp \
|
---|
65 | Actions/MakroAction.cpp \
|
---|
66 | Actions/ManipulateAtomsProcess.cpp \
|
---|
67 | Actions/MethodAction.cpp \
|
---|
68 | Actions/Process.cpp
|
---|
69 |
|
---|
70 | ACTIONSHEADER = \
|
---|
71 | Actions/Action.hpp \
|
---|
72 | Actions/ActionHistory.hpp \
|
---|
73 | Actions/ActionRegistry.hpp \
|
---|
74 | Actions/ActionSequence.hpp \
|
---|
75 | Actions/Calculation.hpp \
|
---|
76 | Actions/Calculation_impl.hpp \
|
---|
77 | Actions/ErrorAction.hpp \
|
---|
78 | Actions/MakroAction.hpp \
|
---|
79 | Actions/ManipulateAtomsProcess.hpp \
|
---|
80 | Actions/MapOfActions.hpp \
|
---|
81 | Actions/MethodAction.hpp \
|
---|
82 | Actions/Process.hpp
|
---|
83 |
|
---|
84 | EXCEPTIONSOURCE = \
|
---|
85 | Exceptions/CustomException.cpp \
|
---|
86 | Exceptions/IllegalTypeException.cpp \
|
---|
87 | Exceptions/LinearDependenceException.cpp \
|
---|
88 | Exceptions/MathException.cpp \
|
---|
89 | Exceptions/MissingValueException.cpp \
|
---|
90 | Exceptions/NotInvertibleException.cpp \
|
---|
91 | Exceptions/ParseError.cpp \
|
---|
92 | Exceptions/SkewException.cpp \
|
---|
93 | Exceptions/ZeroVectorException.cpp
|
---|
94 |
|
---|
95 | EXCEPTIONHEADER = \
|
---|
96 | Exceptions/CustomException.hpp \
|
---|
97 | Exceptions/IllegalTypeException.hpp \
|
---|
98 | Exceptions/LinearDependenceException.hpp \
|
---|
99 | Exceptions/MathException.hpp \
|
---|
100 | Exceptions/MissingValueException.hpp \
|
---|
101 | Exceptions/NotInvertibleException.hpp \
|
---|
102 | Exceptions/ParseError.hpp \
|
---|
103 | Exceptions/SkewException.hpp \
|
---|
104 | Exceptions/ZeroVectorException.hpp
|
---|
105 |
|
---|
106 | PARSERSOURCE = \
|
---|
107 | Parser/ChangeTracker.cpp \
|
---|
108 | Parser/FormatParser.cpp \
|
---|
109 | Parser/FormatParserStorage.cpp \
|
---|
110 | Parser/MpqcParser.cpp \
|
---|
111 | Parser/PcpParser.cpp \
|
---|
112 | Parser/TremoloParser.cpp \
|
---|
113 | Parser/XyzParser.cpp
|
---|
114 |
|
---|
115 | PARSERHEADER = \
|
---|
116 | Parser/ChangeTracker.hpp \
|
---|
117 | Parser/FormatParser.hpp \
|
---|
118 | Parser/FormatParserStorage.hpp \
|
---|
119 | Parser/MpqcParser.hpp \
|
---|
120 | Parser/PcpParser.hpp \
|
---|
121 | Parser/TremoloParser.hpp \
|
---|
122 | Parser/XyzParser.hpp
|
---|
123 |
|
---|
124 | PATTERNSOURCE = \
|
---|
125 | Patterns/Observer.cpp
|
---|
126 | PATTERNHEADER = \
|
---|
127 | Patterns/Cacheable.hpp \
|
---|
128 | Patterns/Observer.hpp \
|
---|
129 | Patterns/Singleton.hpp
|
---|
130 |
|
---|
131 | SHAPESOURCE = \
|
---|
132 | Shapes/BaseShapes.cpp \
|
---|
133 | Shapes/Shape.cpp \
|
---|
134 | Shapes/ShapeOps.cpp
|
---|
135 | SHAPEHEADER = \
|
---|
136 | Shapes/BaseShapes.hpp \
|
---|
137 | Shapes/Shape.hpp \
|
---|
138 | Shapes/ShapeOps.hpp
|
---|
139 |
|
---|
140 |
|
---|
141 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
---|
142 | Descriptors/AtomIdDescriptor.cpp \
|
---|
143 | Descriptors/AtomSelectionDescriptor.cpp \
|
---|
144 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
145 | Descriptors/MoleculeDescriptor.cpp \
|
---|
146 | Descriptors/MoleculeFormulaDescriptor.cpp \
|
---|
147 | Descriptors/MoleculeIdDescriptor.cpp \
|
---|
148 | Descriptors/MoleculeNameDescriptor.cpp \
|
---|
149 | Descriptors/MoleculePtrDescriptor.cpp \
|
---|
150 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
151 |
|
---|
152 |
|
---|
153 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
---|
154 | Descriptors/AtomIdDescriptor.hpp \
|
---|
155 | Descriptors/AtomSelectionDescriptor.hpp \
|
---|
156 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
157 | Descriptors/MoleculeDescriptor.hpp \
|
---|
158 | Descriptors/MoleculeFormulaDescriptor.hpp \
|
---|
159 | Descriptors/MoleculeIdDescriptor.hpp \
|
---|
160 | Descriptors/MoleculeNameDescriptor.hpp \
|
---|
161 | Descriptors/MoleculePtrDescriptor.hpp \
|
---|
162 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
163 |
|
---|
164 |
|
---|
165 | QTUIMOC_HEADER = UIElements/QT4/QTDialog.hpp \
|
---|
166 | UIElements/QT4/QTMainWindow.hpp \
|
---|
167 | UIElements/Menu/QT4/QTMenu.hpp \
|
---|
168 | UIElements/Views/QT4/QTWorldView.hpp \
|
---|
169 | UIElements/Views/QT4/GLMoleculeView.hpp \
|
---|
170 | UIElements/Views/QT4/QTMoleculeView.hpp \
|
---|
171 | UIElements/Views/QT4/QTStatusBar.hpp
|
---|
172 |
|
---|
173 | QTUISOURCE = allmocs.moc.cpp \
|
---|
174 | UIElements/QT4/QTMainWindow.cpp \
|
---|
175 | UIElements/QT4/QTDialog.cpp \
|
---|
176 | UIElements/QT4/QTUIFactory.cpp \
|
---|
177 | UIElements/Menu/QT4/QTMenu.cpp \
|
---|
178 | UIElements/Views/QT4/QTWorldView.cpp \
|
---|
179 | UIElements/Views/QT4/GLMoleculeView.cpp \
|
---|
180 | UIElements/Views/QT4/QTMoleculeView.cpp \
|
---|
181 | UIElements/Views/QT4/QTStatusBar.cpp
|
---|
182 |
|
---|
183 | QTUIHEADER = ${QTUIMOC_HEADER} UIElements/QT4/QTUIFactory.hpp
|
---|
184 |
|
---|
185 | QTUI_DEFS =
|
---|
186 |
|
---|
187 | SOURCE = \
|
---|
188 | ${ANALYSISSOURCE} \
|
---|
189 | ${ACTIONSSOURCE} \
|
---|
190 | ${ATOMSOURCE} \
|
---|
191 | ${EXCEPTIONSOURCE} \
|
---|
192 | ${PATTERNSOURCE} \
|
---|
193 | ${PARSERSOURCE} \
|
---|
194 | ${SHAPESOURCE} \
|
---|
195 | ${DESCRIPTORSOURCE} \
|
---|
196 | ${HELPERSOURCE} \
|
---|
197 | bond.cpp \
|
---|
198 | bondgraph.cpp \
|
---|
199 | boundary.cpp \
|
---|
200 | Box.cpp \
|
---|
201 | CommandLineParser.cpp \
|
---|
202 | config.cpp \
|
---|
203 | ConfigFileBuffer.cpp \
|
---|
204 | element.cpp \
|
---|
205 | elements_db.cpp \
|
---|
206 | ellipsoid.cpp \
|
---|
207 | errorlogger.cpp \
|
---|
208 | Formula.cpp \
|
---|
209 | graph.cpp \
|
---|
210 | helpers.cpp \
|
---|
211 | info.cpp \
|
---|
212 | leastsquaremin.cpp \
|
---|
213 | Line.cpp \
|
---|
214 | linkedcell.cpp \
|
---|
215 | log.cpp \
|
---|
216 | logger.cpp \
|
---|
217 | Matrix.cpp \
|
---|
218 | moleculelist.cpp \
|
---|
219 | molecule.cpp \
|
---|
220 | molecule_dynamics.cpp \
|
---|
221 | molecule_fragmentation.cpp \
|
---|
222 | molecule_geometry.cpp \
|
---|
223 | molecule_graph.cpp \
|
---|
224 | molecule_pointcloud.cpp \
|
---|
225 | parser.cpp \
|
---|
226 | periodentafel.cpp \
|
---|
227 | Plane.cpp \
|
---|
228 | Space.cpp \
|
---|
229 | tesselation.cpp \
|
---|
230 | tesselationhelpers.cpp \
|
---|
231 | ThermoStatContainer.cpp \
|
---|
232 | triangleintersectionlist.cpp \
|
---|
233 | UIElements/UIFactory.cpp \
|
---|
234 | vector_ops.cpp \
|
---|
235 | verbose.cpp \
|
---|
236 | World.cpp
|
---|
237 |
|
---|
238 | HEADER = \
|
---|
239 | ${ANALYSISHEADER} \
|
---|
240 | ${ACTIONSHEADER} \
|
---|
241 | ${ATOMHEADER} \
|
---|
242 | ${EXCEPTIONHEADER} \
|
---|
243 | ${PARSERHEADER} \
|
---|
244 | ${PATTERNHEADER} \
|
---|
245 | ${SHAPEHEADER} \
|
---|
246 | ${DESCRIPTORHEADER} \
|
---|
247 | bond.hpp \
|
---|
248 | bondgraph.hpp \
|
---|
249 | boundary.hpp \
|
---|
250 | Box.hpp \
|
---|
251 | CommandLineParser.hpp \
|
---|
252 | config.hpp \
|
---|
253 | ConfigFileBuffer.hpp \
|
---|
254 | defs.hpp \
|
---|
255 | element.hpp \
|
---|
256 | elements_db.hpp \
|
---|
257 | ellipsoid.hpp \
|
---|
258 | errorlogger.hpp \
|
---|
259 | Formula.hpp \
|
---|
260 | graph.hpp \
|
---|
261 | helpers.hpp \
|
---|
262 | info.hpp \
|
---|
263 | leastsquaremin.hpp \
|
---|
264 | Line.hpp \
|
---|
265 | linkedcell.hpp \
|
---|
266 | lists.hpp \
|
---|
267 | log.hpp \
|
---|
268 | logger.hpp \
|
---|
269 | Matrix.hpp \
|
---|
270 | molecule.hpp \
|
---|
271 | molecule_template.hpp \
|
---|
272 | parser.hpp \
|
---|
273 | periodentafel.hpp \
|
---|
274 | Plane.hpp \
|
---|
275 | stackclass.hpp \
|
---|
276 | tesselation.hpp \
|
---|
277 | tesselationhelpers.hpp \
|
---|
278 | ThermoStatContainer.hpp \
|
---|
279 | triangleintersectionlist.hpp \
|
---|
280 | UIElements/UIFactory.hpp \
|
---|
281 | verbose.hpp \
|
---|
282 | vector_ops.hpp \
|
---|
283 | World.hpp
|
---|
284 |
|
---|
285 | # the following files are no longer used:
|
---|
286 | # memoryallocator.hpp \
|
---|
287 | # memoryallocator.cpp \
|
---|
288 | # memoryusageobserver.hpp \
|
---|
289 | # memoryusageobserver.cpp
|
---|
290 |
|
---|
291 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
|
---|
292 | GUI_LIBS = ${QT_LDADD} ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS}
|
---|
293 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
---|
294 |
|
---|
295 | noinst_LIBRARIES = libmolecuilderbase.a libmolecuilder.a libgslwrapper.a libmenu.a libparser.a
|
---|
296 | bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
|
---|
297 |
|
---|
298 | molecuilderdir = ${bindir}
|
---|
299 |
|
---|
300 | libmolecuilderbase_a_SOURCES = ${BASESOURCE} ${BASEHEADER}
|
---|
301 | libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
|
---|
302 | libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
|
---|
303 | libparser_a_SOURCES = ${PARSERSOURCE} ${PARSERHEADER}
|
---|
304 | libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
|
---|
305 |
|
---|
306 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
307 |
|
---|
308 | molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
|
---|
309 | #molecuilder_CXXFLAGS += -DNO_CACHING
|
---|
310 | molecuilder_LDFLAGS = $(BOOST_LIB)
|
---|
311 | molecuilder_SOURCES = ${LEGACYSOURCE} builder.cpp
|
---|
312 | molecuilder_SOURCES += $(srcdir)/version.c
|
---|
313 | molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilderbase.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
|
---|
314 |
|
---|
315 | #Stuff for building the GUI using QT
|
---|
316 | molecuildergui_SOURCES = ${QTUISOURCE} ${LEGACYSOURCE} builder.cpp
|
---|
317 | molecuildergui_SOURCES += $(srcdir)/version.c
|
---|
318 | molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT
|
---|
319 | molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS}
|
---|
320 | molecuildergui_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilderbase.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB} ${GUI_LIBS}
|
---|
321 |
|
---|
322 | joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
|
---|
323 | joiner_LDADD = libmolecuilder.a libmolecuilderbase.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
324 |
|
---|
325 | analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
|
---|
326 | analyzer_LDADD = libmolecuilder.a libmolecuilderbase.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
327 |
|
---|
328 | #Rules needed for QT4
|
---|
329 | # UI-Files are scattered throughout several subdirectories
|
---|
330 | # Therfore `%'-rules do not seem to work
|
---|
331 | #Quick fix to get it done otherwise
|
---|
332 | allmocs.moc.cpp: ${QTUIMOC_HEADER}
|
---|
333 | echo "" > allmocs.moc.cpp;\
|
---|
334 | list='$(QTUIMOC_HEADER)'; for header in $$list; do \
|
---|
335 | echo "Making mocfile for $$header"; \
|
---|
336 | target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
|
---|
337 | $(MOC) $(srcdir)/$$header -o $$target \
|
---|
338 | || eval $$failcom; \
|
---|
339 | echo "#include \"$$target\"" >> allmocs.moc.cpp; \
|
---|
340 | done;
|
---|
341 |
|
---|
342 |
|
---|
343 |
|
---|
344 | MOSTLYCLEANFILES = allmocs.moc.cpp
|
---|
345 |
|
---|
346 | #EXTRA_DIST = ${molecuilder_DATA}
|
---|
347 |
|
---|
348 | FORCE:
|
---|
349 | $(srcdir)/.git-version: FORCE
|
---|
350 | @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
|
---|
351 | && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
|
---|
352 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
353 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
354 | else \
|
---|
355 | rm -f .git-version-t; \
|
---|
356 | fi
|
---|
357 |
|
---|
358 | EXTRA_DIST = $(srcdir)/.git-version
|
---|
359 |
|
---|
360 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
361 | echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
362 |
|
---|
363 |
|
---|