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