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