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 | ${ANALYSISACTIONHEADER} \
|
---|
66 | ${ATOMACTIONHEADER} \
|
---|
67 | ${CMDACTIONHEADER} \
|
---|
68 | ${FRAGMENTATIONACTIONHEADER} \
|
---|
69 | ${MOLECULEACTIONHEADER} \
|
---|
70 | ${PARSERACTIONHEADER} \
|
---|
71 | ${TESSELATIONACTIONHEADER} \
|
---|
72 | ${WORLDACTIONHEADER} \
|
---|
73 | Actions/Action.hpp \
|
---|
74 | Actions/ActionHistory.hpp \
|
---|
75 | Actions/ActionRegistry.hpp \
|
---|
76 | Actions/ActionSequence.hpp \
|
---|
77 | Actions/Calculation.hpp \
|
---|
78 | Actions/Calculation_impl.hpp \
|
---|
79 | Actions/ErrorAction.hpp \
|
---|
80 | Actions/MakroAction.hpp \
|
---|
81 | Actions/ManipulateAtomsProcess.hpp \
|
---|
82 | Actions/MapOfActions.hpp \
|
---|
83 | Actions/MethodAction.hpp \
|
---|
84 | Actions/Process.hpp
|
---|
85 |
|
---|
86 |
|
---|
87 | PARSERSOURCE = \
|
---|
88 | Parser/ChangeTracker.cpp \
|
---|
89 | Parser/FormatParser.cpp \
|
---|
90 | Parser/FormatParserStorage.cpp \
|
---|
91 | Parser/MpqcParser.cpp \
|
---|
92 | Parser/PcpParser.cpp \
|
---|
93 | Parser/TremoloParser.cpp \
|
---|
94 | Parser/XyzParser.cpp
|
---|
95 |
|
---|
96 | PARSERHEADER = \
|
---|
97 | Parser/ChangeTracker.hpp \
|
---|
98 | Parser/FormatParser.hpp \
|
---|
99 | Parser/FormatParserStorage.hpp \
|
---|
100 | Parser/MpqcParser.hpp \
|
---|
101 | Parser/PcpParser.hpp \
|
---|
102 | Parser/TremoloParser.hpp \
|
---|
103 | Parser/XyzParser.hpp
|
---|
104 |
|
---|
105 | PATTERNSOURCE = \
|
---|
106 | Patterns/Observer.cpp
|
---|
107 | PATTERNHEADER = \
|
---|
108 | Patterns/Cacheable.hpp \
|
---|
109 | Patterns/Observer.hpp \
|
---|
110 | Patterns/Singleton.hpp
|
---|
111 |
|
---|
112 | # all these files are only used for legacy reasons while the transition is in progress
|
---|
113 | # they are only needed to keep the program usable at any point of the transition and will be
|
---|
114 | # deleted once everything is fully refactored
|
---|
115 | LEGACYSOURCE = Legacy/oldmenu.cpp
|
---|
116 | LEGACYHEADER = Legacy/oldmenu.hpp
|
---|
117 |
|
---|
118 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
---|
119 | Descriptors/AtomIdDescriptor.cpp \
|
---|
120 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
121 | Descriptors/MoleculeDescriptor.cpp \
|
---|
122 | Descriptors/MoleculeIdDescriptor.cpp \
|
---|
123 | Descriptors/MoleculeNameDescriptor.cpp \
|
---|
124 | Descriptors/MoleculePtrDescriptor.cpp
|
---|
125 |
|
---|
126 |
|
---|
127 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
---|
128 | Descriptors/AtomIdDescriptor.hpp \
|
---|
129 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
130 | Descriptors/MoleculeDescriptor.hpp \
|
---|
131 | Descriptors/MoleculeIdDescriptor.hpp \
|
---|
132 | Descriptors/MoleculeNameDescriptor.hpp \
|
---|
133 | Descriptors/MoleculePtrDescriptor.hpp
|
---|
134 |
|
---|
135 | EXCEPTIONSOURCE = Exceptions/CustomException.cpp \
|
---|
136 | Exceptions/LinearDependenceException.cpp \
|
---|
137 | Exceptions/MathException.cpp \
|
---|
138 | Exceptions/SkewException.cpp \
|
---|
139 | Exceptions/ZeroVectorException.cpp
|
---|
140 |
|
---|
141 | EXCEPTIONHEADER = Exceptions/CustomException.hpp \
|
---|
142 | Exceptions/LinearDependenceException.hpp \
|
---|
143 | Exceptions/MathException.hpp \
|
---|
144 | Exceptions/SkewException.hpp \
|
---|
145 | Exceptions/ZeroVectorException.hpp
|
---|
146 |
|
---|
147 | SOURCE = \
|
---|
148 | ${ANALYSISSOURCE} \
|
---|
149 | ${ACTIONSSOURCE} \
|
---|
150 | ${ATOMSOURCE} \
|
---|
151 | ${PATTERNSOURCE} \
|
---|
152 | ${PARSERSOURCE} \
|
---|
153 | ${DESCRIPTORSOURCE} \
|
---|
154 | ${HELPERSOURCE} \
|
---|
155 | ${LEGACYSOURCE} \
|
---|
156 | ${EXCEPTIONSOURCE} \
|
---|
157 | bond.cpp \
|
---|
158 | bondgraph.cpp \
|
---|
159 | boundary.cpp \
|
---|
160 | CommandLineParser.cpp \
|
---|
161 | config.cpp \
|
---|
162 | ConfigFileBuffer.cpp \
|
---|
163 | element.cpp \
|
---|
164 | elements_db.cpp \
|
---|
165 | ellipsoid.cpp \
|
---|
166 | errorlogger.cpp \
|
---|
167 | graph.cpp \
|
---|
168 | helpers.cpp \
|
---|
169 | info.cpp \
|
---|
170 | leastsquaremin.cpp \
|
---|
171 | Line.cpp \
|
---|
172 | linkedcell.cpp \
|
---|
173 | log.cpp \
|
---|
174 | logger.cpp \
|
---|
175 | moleculelist.cpp \
|
---|
176 | molecule.cpp \
|
---|
177 | molecule_dynamics.cpp \
|
---|
178 | molecule_fragmentation.cpp \
|
---|
179 | molecule_geometry.cpp \
|
---|
180 | molecule_graph.cpp \
|
---|
181 | molecule_pointcloud.cpp \
|
---|
182 | parser.cpp \
|
---|
183 | periodentafel.cpp \
|
---|
184 | Plane.cpp \
|
---|
185 | Space.cpp \
|
---|
186 | tesselation.cpp \
|
---|
187 | tesselationhelpers.cpp \
|
---|
188 | ThermoStatContainer.cpp \
|
---|
189 | triangleintersectionlist.cpp \
|
---|
190 | vector.cpp \
|
---|
191 | vector_ops.cpp \
|
---|
192 | verbose.cpp \
|
---|
193 | World.cpp
|
---|
194 |
|
---|
195 | HEADER = \
|
---|
196 | ${ANALYSISHEADER} \
|
---|
197 | ${ACTIONSHEADER} \
|
---|
198 | ${ATOMHEADER} \
|
---|
199 | ${PARSERHEADER} \
|
---|
200 | ${PATTERNHEADER} \
|
---|
201 | ${DESCRIPTORHEADER} \
|
---|
202 | ${EXCEPTIONHEADER} \
|
---|
203 | ${LEGACYHEADER} \
|
---|
204 | bond.hpp \
|
---|
205 | bondgraph.hpp \
|
---|
206 | boundary.hpp \
|
---|
207 | CommandLineParser.hpp \
|
---|
208 | config.hpp \
|
---|
209 | ConfigFileBuffer.hpp \
|
---|
210 | defs.hpp \
|
---|
211 | element.hpp \
|
---|
212 | elements_db.hpp \
|
---|
213 | ellipsoid.hpp \
|
---|
214 | errorlogger.hpp \
|
---|
215 | graph.hpp \
|
---|
216 | helpers.hpp \
|
---|
217 | info.hpp \
|
---|
218 | leastsquaremin.hpp \
|
---|
219 | Line.hpp \
|
---|
220 | linkedcell.hpp \
|
---|
221 | lists.hpp \
|
---|
222 | log.hpp \
|
---|
223 | logger.hpp \
|
---|
224 | molecule.hpp \
|
---|
225 | molecule_template.hpp \
|
---|
226 | parser.hpp \
|
---|
227 | periodentafel.hpp \
|
---|
228 | Plane.hpp \
|
---|
229 | stackclass.hpp \
|
---|
230 | tesselation.hpp \
|
---|
231 | tesselationhelpers.hpp \
|
---|
232 | ThermoStatContainer.hpp \
|
---|
233 | triangleintersectionlist.hpp \
|
---|
234 | verbose.hpp \
|
---|
235 | vector_ops.hpp \
|
---|
236 | World.hpp
|
---|
237 |
|
---|
238 | # the following files are no longer used:
|
---|
239 | # memoryallocator.hpp \
|
---|
240 | # memoryallocator.cpp \
|
---|
241 | # memoryusageobserver.hpp \
|
---|
242 | # memoryusageobserver.cpp
|
---|
243 |
|
---|
244 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
|
---|
245 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
---|
246 |
|
---|
247 | noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a libparser.a
|
---|
248 | bin_PROGRAMS = molecuilder joiner analyzer
|
---|
249 | molecuilderdir = ${bindir}
|
---|
250 | libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
|
---|
251 | libparser_a_SOURCES = ${PARSERSOURCE} ${PARSERHEADER}
|
---|
252 | libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
|
---|
253 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
254 | molecuilder_LDFLAGS = $(BOOST_LDFLAGS)
|
---|
255 | molecuilder_SOURCES = builder.cpp
|
---|
256 | molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
|
---|
257 | joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
|
---|
258 | joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
259 | analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
|
---|
260 | analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
261 |
|
---|
262 | FORCE:
|
---|
263 | $(srcdir)/.git-version: FORCE
|
---|
264 | @if (test -d $(top_srcdir)/../.git && cd $(srcdir) && git describe HEAD) > .git-version-t 2>/dev/null \
|
---|
265 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
266 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
267 | else \
|
---|
268 | rm -f .git-version-t; \
|
---|
269 | fi
|
---|
270 |
|
---|
271 | EXTRA_DIST = $(srcdir)/.git-version
|
---|
272 |
|
---|
273 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
274 | echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
275 |
|
---|
276 | molecuilder_SOURCES += $(srcdir)/version.c
|
---|