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