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