1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
2 | # Also indentation by a single tab
|
---|
3 |
|
---|
4 | # this includes source files that need to be present at multiple points
|
---|
5 | HELPERSOURCE = \
|
---|
6 | Helpers/Assert.cpp \
|
---|
7 | Helpers/MemDebug.cpp
|
---|
8 |
|
---|
9 | ATOMSOURCE = \
|
---|
10 | atom.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 | atom_atominfo.hpp \
|
---|
22 | atom_bondedparticle.hpp \
|
---|
23 | atom_bondedparticleinfo.hpp \
|
---|
24 | atom_graphnode.hpp \
|
---|
25 | atom_graphnodeinfo.hpp \
|
---|
26 | atom_particleinfo.hpp \
|
---|
27 | atom_trajectoryparticle.hpp \
|
---|
28 | atom_trajectoryparticleinfo.hpp
|
---|
29 |
|
---|
30 | LINALGSOURCE = \
|
---|
31 | ${HELPERSOURCE} \
|
---|
32 | gslmatrix.cpp \
|
---|
33 | gslvector.cpp \
|
---|
34 | linearsystemofequations.cpp \
|
---|
35 | Space.cpp \
|
---|
36 | vector.cpp
|
---|
37 |
|
---|
38 | LINALGHEADER = gslmatrix.hpp \
|
---|
39 | gslvector.hpp \
|
---|
40 | linearsystemofequations.hpp \
|
---|
41 | Space.hpp \
|
---|
42 | vector.hpp
|
---|
43 |
|
---|
44 | ANALYSISSOURCE = \
|
---|
45 | analysis_bonds.cpp \
|
---|
46 | analysis_correlation.cpp
|
---|
47 | ANALYSISHEADER = \
|
---|
48 | analysis_bonds.hpp \
|
---|
49 | analysis_correlation.hpp
|
---|
50 |
|
---|
51 | ACTIONSSOURCE = Actions/Action.cpp \
|
---|
52 | Actions/ActionHistory.cpp \
|
---|
53 | Actions/ActionRegistry.cpp \
|
---|
54 | Actions/ActionSequence.cpp \
|
---|
55 | Actions/ErrorAction.cpp \
|
---|
56 | Actions/MakroAction.cpp \
|
---|
57 | Actions/ManipulateAtomsProcess.cpp \
|
---|
58 | Actions/MethodAction.cpp \
|
---|
59 | Actions/small_actions.cpp \
|
---|
60 | Actions/Process.cpp
|
---|
61 |
|
---|
62 | ACTIONSHEADER = Actions/Action.hpp \
|
---|
63 | Actions/ActionHistory.hpp \
|
---|
64 | Actions/ActionRegistry.hpp \
|
---|
65 | Actions/ActionSequence.hpp \
|
---|
66 | Actions/Calculation.hpp \
|
---|
67 | Actions/Calculation_impl.hpp \
|
---|
68 | Actions/ErrorAction.hpp \
|
---|
69 | Actions/MakroAction.hpp \
|
---|
70 | Actions/ManipulateAtomsProcess.hpp \
|
---|
71 | Actions/MethodAction.hpp \
|
---|
72 | Actions/small_actions.hpp \
|
---|
73 | Actions/Process.hpp
|
---|
74 |
|
---|
75 | PARSERSOURCE = \
|
---|
76 | Parser/ChangeTracker.cpp \
|
---|
77 | Parser/FormatParser.cpp \
|
---|
78 | Parser/TremoloParser.cpp \
|
---|
79 | Parser/XyzParser.cpp
|
---|
80 | PARSERHEADER = \
|
---|
81 | Parser/ChangeTracker.hpp \
|
---|
82 | Parser/FormatParser.hpp \
|
---|
83 | Parser/TremoloParser.hpp \
|
---|
84 | Parser/XyzParser.hpp
|
---|
85 |
|
---|
86 | PATTERNSOURCE = \
|
---|
87 | Patterns/Observer.cpp
|
---|
88 | PATTERNHEADER = \
|
---|
89 | Patterns/Cacheable.hpp \
|
---|
90 | Patterns/Observer.hpp \
|
---|
91 | Patterns/Singleton.hpp
|
---|
92 |
|
---|
93 | # Below is all for the User Interface
|
---|
94 |
|
---|
95 | VIEWSOURCE = \
|
---|
96 | Views/View.cpp \
|
---|
97 | Views/StringView.cpp \
|
---|
98 | Views/MethodStringView.cpp \
|
---|
99 | Views/StreamStringView.cpp
|
---|
100 | VIEWHEADER = \
|
---|
101 | Views/View.hpp \
|
---|
102 | Views/StringView.hpp \
|
---|
103 | Views/MethodStringView.hpp \
|
---|
104 | Views/StreamStringView.hpp
|
---|
105 |
|
---|
106 | MENUSOURCE = \
|
---|
107 | Menu/Menu.cpp \
|
---|
108 | Menu/TextMenu.cpp \
|
---|
109 | Menu/MenuItem.cpp \
|
---|
110 | Menu/SubMenuItem.cpp \
|
---|
111 | Menu/ActionMenuItem.cpp \
|
---|
112 | Menu/SeperatorItem.cpp \
|
---|
113 | Menu/DisplayMenuItem.cpp
|
---|
114 |
|
---|
115 | MENUHEADER = \
|
---|
116 | Menu/Menu.hpp \
|
---|
117 | Menu/TextMenu.hpp \
|
---|
118 | Menu/MenuItem.hpp \
|
---|
119 | Menu/SubMenuItem.hpp \
|
---|
120 | Menu/ActionMenuItem.hpp \
|
---|
121 | Menu/SeperatorItem.hpp \
|
---|
122 | Menu/DisplayMenuItem.hpp
|
---|
123 |
|
---|
124 | UISOURCE = \
|
---|
125 | ${ACTIONSSOURCE} \
|
---|
126 | ${COMMANDLINEUISOURCE} \
|
---|
127 | ${MENUSOURCE} \
|
---|
128 | ${TEXTUISOURCE} \
|
---|
129 | ${VIEWSOURCE} \
|
---|
130 | UIElements/Dialog.cpp \
|
---|
131 | UIElements/MainWindow.cpp \
|
---|
132 | UIElements/UIFactory.cpp
|
---|
133 |
|
---|
134 | UIHEADER = \
|
---|
135 | ${ACTIONSHEADER} \
|
---|
136 | ${COMMANDLINEUIHEADER} \
|
---|
137 | ${MENUHEADER} \
|
---|
138 | ${TEXTUIHEADER} \
|
---|
139 | ${VIEWHEADER} \
|
---|
140 | UIElements/Dialog.hpp \
|
---|
141 | UIElements/MainWindow.hpp \
|
---|
142 | UIElements/UIFactory.hpp
|
---|
143 |
|
---|
144 | TEXTUISOURCE = \
|
---|
145 | UIElements/TextDialog.cpp \
|
---|
146 | UIElements/TextStatusIndicator.cpp \
|
---|
147 | UIElements/TextUIFactory.cpp \
|
---|
148 | UIElements/TextWindow.cpp
|
---|
149 | TEXTUIHEADER = \
|
---|
150 | UIElements/TextDialog.hpp \
|
---|
151 | UIElements/TextStatusIndicator.hpp \
|
---|
152 | UIElements/TextUIFactory.hpp \
|
---|
153 | UIElements/TextWindow.hpp
|
---|
154 |
|
---|
155 | COMMANDLINEUISOURCE = \
|
---|
156 | UIElements/CommandLineDialog.cpp \
|
---|
157 | UIElements/CommandLineStatusIndicator.cpp \
|
---|
158 | UIElements/CommandLineUIFactory.cpp \
|
---|
159 | UIElements/CommandLineWindow.cpp
|
---|
160 | COMMANDLINEUIHEADER = \
|
---|
161 | UIElements/CommandLineDialog.hpp \
|
---|
162 | UIElements/CommandLineStatusIndicator.hpp \
|
---|
163 | UIElements/CommandLineUIFactory.hpp \
|
---|
164 | UIElements/CommandLineWindow.hpp
|
---|
165 |
|
---|
166 | # all these files are only used for legacy reasons while the transition is in progress
|
---|
167 | # they are only needed to keep the program usable at any point of the transition and will be
|
---|
168 | # deleted once everything is fully refactored
|
---|
169 | LEGACYSOURCE = Legacy/oldmenu.cpp
|
---|
170 | LEGACYHEADER = Legacy/oldmenu.hpp
|
---|
171 |
|
---|
172 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
---|
173 | Descriptors/AtomIdDescriptor.cpp \
|
---|
174 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
175 | Descriptors/MoleculeDescriptor.cpp \
|
---|
176 | Descriptors/MoleculeIdDescriptor.cpp
|
---|
177 |
|
---|
178 |
|
---|
179 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
---|
180 | Descriptors/AtomIdDescriptor.hpp \
|
---|
181 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
182 | Descriptors/MoleculeDescriptor.hpp \
|
---|
183 | Descriptors/MoleculeIdDescriptor.hpp
|
---|
184 |
|
---|
185 | EXCEPTIONSOURCE = Exceptions/CustomException.cpp \
|
---|
186 | Exceptions/LinearDependenceException.cpp \
|
---|
187 | Exceptions/MathException.cpp \
|
---|
188 | Exceptions/ZeroVectorException.cpp
|
---|
189 |
|
---|
190 | EXCEPTIONHEADER = Exceptions/CustomException.hpp \
|
---|
191 | Exceptions/LinearDependenceException.hpp \
|
---|
192 | Exceptions/MathException.hpp \
|
---|
193 | Exceptions/ZeroVectorException.hpp
|
---|
194 |
|
---|
195 | SOURCE = \
|
---|
196 | ${ANALYSISSOURCE} \
|
---|
197 | ${ATOMSOURCE} \
|
---|
198 | ${PATTERNSOURCE} \
|
---|
199 | ${PARSERSOURCE} \
|
---|
200 | ${UISOURCE} \
|
---|
201 | ${DESCRIPTORSOURCE} \
|
---|
202 | ${HELPERSOURCE} \
|
---|
203 | ${LEGACYSOURCE} \
|
---|
204 | ${EXCEPTIONSOURCE} \
|
---|
205 | bond.cpp \
|
---|
206 | bondgraph.cpp \
|
---|
207 | boundary.cpp \
|
---|
208 | config.cpp \
|
---|
209 | element.cpp \
|
---|
210 | ellipsoid.cpp \
|
---|
211 | errorlogger.cpp \
|
---|
212 | graph.cpp \
|
---|
213 | helpers.cpp \
|
---|
214 | info.cpp \
|
---|
215 | leastsquaremin.cpp \
|
---|
216 | Line.cpp \
|
---|
217 | linkedcell.cpp \
|
---|
218 | lists.cpp \
|
---|
219 | log.cpp \
|
---|
220 | logger.cpp \
|
---|
221 | memoryusageobserver.cpp \
|
---|
222 | moleculelist.cpp \
|
---|
223 | molecule.cpp \
|
---|
224 | molecule_dynamics.cpp \
|
---|
225 | molecule_fragmentation.cpp \
|
---|
226 | molecule_geometry.cpp \
|
---|
227 | molecule_graph.cpp \
|
---|
228 | molecule_pointcloud.cpp \
|
---|
229 | parser.cpp \
|
---|
230 | periodentafel.cpp \
|
---|
231 | Plane.cpp \
|
---|
232 | tesselation.cpp \
|
---|
233 | tesselationhelpers.cpp \
|
---|
234 | triangleintersectionlist.cpp \
|
---|
235 | verbose.cpp \
|
---|
236 | vector_ops.cpp \
|
---|
237 | World.cpp
|
---|
238 |
|
---|
239 | HEADER = \
|
---|
240 | ${ANALYSISHEADER} \
|
---|
241 | ${ATOMHEADER} \
|
---|
242 | ${PARSERHEADER} \
|
---|
243 | ${PATTERNHEADER} \
|
---|
244 | ${UIHEADER} \
|
---|
245 | ${DESCRIPTORHEADER} \
|
---|
246 | ${EXCEPTIONHEADER} \
|
---|
247 | ${LEGACYHEADER} \
|
---|
248 | bond.hpp \
|
---|
249 | bondgraph.hpp \
|
---|
250 | boundary.hpp \
|
---|
251 | config.hpp \
|
---|
252 | defs.hpp \
|
---|
253 | element.hpp \
|
---|
254 | ellipsoid.hpp \
|
---|
255 | errorlogger.hpp \
|
---|
256 | graph.hpp \
|
---|
257 | helpers.hpp \
|
---|
258 | info.hpp \
|
---|
259 | leastsquaremin.hpp \
|
---|
260 | Line.hpp \
|
---|
261 | linkedcell.hpp \
|
---|
262 | lists.hpp \
|
---|
263 | log.hpp \
|
---|
264 | logger.hpp \
|
---|
265 | memoryallocator.hpp \
|
---|
266 | memoryusageobserver.hpp \
|
---|
267 | molecule.hpp \
|
---|
268 | molecule_template.hpp \
|
---|
269 | parser.hpp \
|
---|
270 | periodentafel.hpp \
|
---|
271 | Plane.hpp \
|
---|
272 | stackclass.hpp \
|
---|
273 | tesselation.hpp \
|
---|
274 | tesselationhelpers.hpp \
|
---|
275 | triangleintersectionlist.hpp \
|
---|
276 | verbose.hpp \
|
---|
277 | vector_ops.hpp \
|
---|
278 | World.hpp
|
---|
279 |
|
---|
280 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
|
---|
281 | INCLUDES = -I$(top_srcdir)/src/unittests
|
---|
282 |
|
---|
283 | noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a
|
---|
284 | bin_PROGRAMS = molecuilder joiner analyzer
|
---|
285 | molecuilderdir = ${bindir}
|
---|
286 | libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
|
---|
287 | libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
|
---|
288 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
289 | molecuilder_LDFLAGS = $(BOOST_LDFLAGS)
|
---|
290 | molecuilder_SOURCES = builder.cpp
|
---|
291 | molecuilder_LDADD = libmolecuilder.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
292 | joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
|
---|
293 | joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
294 | analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
|
---|
295 | analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
296 |
|
---|
297 | FORCE:
|
---|
298 | $(srcdir)/.git-version: FORCE
|
---|
299 | @if (test -d $(top_srcdir)/../.git && cd $(srcdir) && git describe HEAD) > .git-version-t 2>/dev/null \
|
---|
300 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
301 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
302 | else \
|
---|
303 | rm -f .git-version-t; \
|
---|
304 | fi
|
---|
305 |
|
---|
306 | EXTRA_DIST = $(srcdir)/.git-version
|
---|
307 |
|
---|
308 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
309 | echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
310 |
|
---|
311 | molecuilder_SOURCES += $(srcdir)/version.c
|
---|