source: molecuilder/src/Makefile.am@ 07d2cd

Last change on this file since 07d2cd was ae8b90, checked in by Frederik Heber <heber@…>, 15 years ago

New HelpAction that will print the help from boost::program_options.

  • new class CommandLineHelpAction that will print the boost::program_options help
  • therefore CommandLineParser::visible had to be made public
  • CommandLineHelpAction is instantiated in CommandLineWindow::populateParserActions()
  • Property mode set to 100644
File size: 9.1 KB
Line 
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
5HELPERSOURCE = \
6 Helpers/Assert.cpp \
7 Helpers/MemDebug.cpp
8
9ATOMSOURCE = \
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
19ATOMHEADER = \
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
30LINALGSOURCE = \
31 ${HELPERSOURCE} \
32 gslmatrix.cpp \
33 gslvector.cpp \
34 linearsystemofequations.cpp \
35 Space.cpp \
36 vector.cpp
37
38LINALGHEADER = gslmatrix.hpp \
39 gslvector.hpp \
40 linearsystemofequations.hpp \
41 Space.hpp \
42 vector.hpp
43
44ANALYSISSOURCE = \
45 analysis_bonds.cpp \
46 analysis_correlation.cpp
47ANALYSISHEADER = \
48 analysis_bonds.hpp \
49 analysis_correlation.hpp
50
51ACTIONSSOURCE = Actions/Action.cpp \
52 ${ATOMACTIONSOURCE} \
53 ${CMDACTIONSOURCE} \
54 ${FRAGMENTATIONACTIONSOURCE} \
55 ${MOLECULEACTIONSOURCE} \
56 ${PARSERACTIONSOURCE} \
57 ${TESSELATIONACTIONSOURCE} \
58 Actions/ActionHistory.cpp \
59 Actions/ActionRegistry.cpp \
60 Actions/ActionSequence.cpp \
61 Actions/ErrorAction.cpp \
62 Actions/MakroAction.cpp \
63 Actions/ManipulateAtomsProcess.cpp \
64 Actions/MethodAction.cpp \
65 Actions/Process.cpp
66
67ACTIONSHEADER = Actions/Action.hpp \
68 ${ATOMACTIONHEADER} \
69 ${CMDACTIONHEADER} \
70 ${FRAGMENTATIONACTIONHEADER} \
71 ${MOLECULEACTIONHEADER} \
72 ${PARSERACTIONHEADER} \
73 ${TESSELATIONACTIONHEADER} \
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/MethodAction.hpp \
83 Actions/Process.hpp
84
85ATOMACTIONSOURCE =
86# Actions/AtomAction/SomeAction.cpp
87ATOMACTIONHEADER =
88# Actions/AtomAction/SomeAction.hpp
89
90CMDACTIONSOURCE = \
91 Actions/CmdAction/HelpAction.cpp
92CMDACTIONHEADER = \
93 Actions/CmdAction/HelpAction.hpp
94
95FRAGMENTATIONACTIONSOURCE =
96# Actions/FragmentationAction/SomeAction.cpp
97FRAGMENTATIONACTIONHEADER =
98# Actions/FragmentationAction/SomeAction.hpp
99
100MOLECULEACTIONSOURCE = \
101 Actions/MoleculeAction/ChangeNameAction.cpp
102MOLECULEACTIONHEADER = \
103 Actions/MoleculeAction/ChangeNameAction.hpp
104
105PARSERACTIONSOURCE = \
106 Actions/ParserAction/LoadXyzAction.cpp \
107 Actions/ParserAction/SaveXyzAction.cpp
108PARSERACTIONHEADER = \
109 Actions/ParserAction/LoadXyzAction.hpp \
110 Actions/ParserAction/SaveXyzAction.hpp
111
112TESSELATIONACTIONSOURCE =
113# Actions/TesselationAction/SomeAction.cpp
114TESSELATIONACTIONHEADER =
115# Actions/TesselationAction/SomeAction.hpp
116
117PARSERSOURCE = \
118 Parser/ChangeTracker.cpp \
119 Parser/FormatParser.cpp \
120 Parser/TremoloParser.cpp \
121 Parser/XyzParser.cpp
122PARSERHEADER = \
123 Parser/ChangeTracker.hpp \
124 Parser/FormatParser.hpp \
125 Parser/TremoloParser.hpp \
126 Parser/XyzParser.hpp
127
128PATTERNSOURCE = \
129 Patterns/Observer.cpp
130PATTERNHEADER = \
131 Patterns/Cacheable.hpp \
132 Patterns/Observer.hpp \
133 Patterns/Singleton.hpp
134
135# Below is all for the User Interface
136
137VIEWSOURCE = \
138 Views/View.cpp \
139 Views/StringView.cpp \
140 Views/MethodStringView.cpp \
141 Views/StreamStringView.cpp
142VIEWHEADER = \
143 Views/View.hpp \
144 Views/StringView.hpp \
145 Views/MethodStringView.hpp \
146 Views/StreamStringView.hpp
147
148MENUSOURCE = \
149 Menu/Menu.cpp \
150 Menu/TextMenu.cpp \
151 Menu/MenuItem.cpp \
152 Menu/SubMenuItem.cpp \
153 Menu/ActionMenuItem.cpp \
154 Menu/SeperatorItem.cpp \
155 Menu/DisplayMenuItem.cpp
156
157MENUHEADER = \
158 Menu/Menu.hpp \
159 Menu/TextMenu.hpp \
160 Menu/MenuItem.hpp \
161 Menu/SubMenuItem.hpp \
162 Menu/ActionMenuItem.hpp \
163 Menu/SeperatorItem.hpp \
164 Menu/DisplayMenuItem.hpp
165
166UISOURCE = \
167 ${ACTIONSSOURCE} \
168 ${COMMANDLINEUISOURCE} \
169 ${MENUSOURCE} \
170 ${TEXTUISOURCE} \
171 ${VIEWSOURCE} \
172 UIElements/Dialog.cpp \
173 UIElements/MainWindow.cpp \
174 UIElements/UIFactory.cpp
175
176UIHEADER = \
177 ${ACTIONSHEADER} \
178 ${COMMANDLINEUIHEADER} \
179 ${MENUHEADER} \
180 ${TEXTUIHEADER} \
181 ${VIEWHEADER} \
182 UIElements/Dialog.hpp \
183 UIElements/MainWindow.hpp \
184 UIElements/UIFactory.hpp
185
186TEXTUISOURCE = \
187 UIElements/TextDialog.cpp \
188 UIElements/TextStatusIndicator.cpp \
189 UIElements/TextUIFactory.cpp \
190 UIElements/TextWindow.cpp
191TEXTUIHEADER = \
192 UIElements/TextDialog.hpp \
193 UIElements/TextStatusIndicator.hpp \
194 UIElements/TextUIFactory.hpp \
195 UIElements/TextWindow.hpp
196
197COMMANDLINEUISOURCE = \
198 UIElements/CommandLineDialog.cpp \
199 UIElements/CommandLineStatusIndicator.cpp \
200 UIElements/CommandLineUIFactory.cpp \
201 UIElements/CommandLineWindow.cpp
202COMMANDLINEUIHEADER = \
203 UIElements/CommandLineDialog.hpp \
204 UIElements/CommandLineStatusIndicator.hpp \
205 UIElements/CommandLineUIFactory.hpp \
206 UIElements/CommandLineWindow.hpp
207
208# all these files are only used for legacy reasons while the transition is in progress
209# they are only needed to keep the program usable at any point of the transition and will be
210# deleted once everything is fully refactored
211LEGACYSOURCE = Legacy/oldmenu.cpp
212LEGACYHEADER = Legacy/oldmenu.hpp
213
214DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
215 Descriptors/AtomIdDescriptor.cpp \
216 Descriptors/AtomTypeDescriptor.cpp \
217 Descriptors/MoleculeDescriptor.cpp \
218 Descriptors/MoleculeIdDescriptor.cpp
219
220
221DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
222 Descriptors/AtomIdDescriptor.hpp \
223 Descriptors/AtomTypeDescriptor.hpp \
224 Descriptors/MoleculeDescriptor.hpp \
225 Descriptors/MoleculeIdDescriptor.hpp
226
227EXCEPTIONSOURCE = Exceptions/CustomException.cpp \
228 Exceptions/LinearDependenceException.cpp \
229 Exceptions/MathException.cpp \
230 Exceptions/ZeroVectorException.cpp
231
232EXCEPTIONHEADER = Exceptions/CustomException.hpp \
233 Exceptions/LinearDependenceException.hpp \
234 Exceptions/MathException.hpp \
235 Exceptions/ZeroVectorException.hpp
236
237SOURCE = \
238 ${ANALYSISSOURCE} \
239 ${ATOMSOURCE} \
240 ${PATTERNSOURCE} \
241 ${PARSERSOURCE} \
242 ${UISOURCE} \
243 ${DESCRIPTORSOURCE} \
244 ${HELPERSOURCE} \
245 ${LEGACYSOURCE} \
246 ${EXCEPTIONSOURCE} \
247 bond.cpp \
248 bondgraph.cpp \
249 boundary.cpp \
250 CommandLineParser.cpp \
251 config.cpp \
252 element.cpp \
253 ellipsoid.cpp \
254 errorlogger.cpp \
255 graph.cpp \
256 helpers.cpp \
257 info.cpp \
258 leastsquaremin.cpp \
259 Line.cpp \
260 linkedcell.cpp \
261 lists.cpp \
262 log.cpp \
263 logger.cpp \
264 memoryusageobserver.cpp \
265 moleculelist.cpp \
266 molecule.cpp \
267 molecule_dynamics.cpp \
268 molecule_fragmentation.cpp \
269 molecule_geometry.cpp \
270 molecule_graph.cpp \
271 molecule_pointcloud.cpp \
272 parser.cpp \
273 periodentafel.cpp \
274 Plane.cpp \
275 tesselation.cpp \
276 tesselationhelpers.cpp \
277 triangleintersectionlist.cpp \
278 verbose.cpp \
279 vector_ops.cpp \
280 World.cpp
281
282HEADER = \
283 ${ANALYSISHEADER} \
284 ${ATOMHEADER} \
285 ${PARSERHEADER} \
286 ${PATTERNHEADER} \
287 ${UIHEADER} \
288 ${DESCRIPTORHEADER} \
289 ${EXCEPTIONHEADER} \
290 ${LEGACYHEADER} \
291 bond.hpp \
292 bondgraph.hpp \
293 boundary.hpp \
294 CommandLineParser.hpp \
295 config.hpp \
296 defs.hpp \
297 element.hpp \
298 ellipsoid.hpp \
299 errorlogger.hpp \
300 graph.hpp \
301 helpers.hpp \
302 info.hpp \
303 leastsquaremin.hpp \
304 Line.hpp \
305 linkedcell.hpp \
306 lists.hpp \
307 log.hpp \
308 logger.hpp \
309 memoryallocator.hpp \
310 memoryusageobserver.hpp \
311 molecule.hpp \
312 molecule_template.hpp \
313 parser.hpp \
314 periodentafel.hpp \
315 Plane.hpp \
316 stackclass.hpp \
317 tesselation.hpp \
318 tesselationhelpers.hpp \
319 triangleintersectionlist.hpp \
320 verbose.hpp \
321 vector_ops.hpp \
322 World.hpp
323
324BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
325INCLUDES = -I$(top_srcdir)/src/unittests
326
327noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a
328bin_PROGRAMS = molecuilder joiner analyzer
329molecuilderdir = ${bindir}
330libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
331libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
332molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
333molecuilder_LDFLAGS = $(BOOST_LDFLAGS)
334molecuilder_SOURCES = builder.cpp
335molecuilder_LDADD = libmolecuilder.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
336joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
337joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
338analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
339analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
340
341FORCE:
342$(srcdir)/.git-version: FORCE
343 @if (test -d $(top_srcdir)/../.git && cd $(srcdir) && git describe HEAD) > .git-version-t 2>/dev/null \
344 && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
345 mv -f .git-version-t $(srcdir)/.git-version; \
346 else \
347 rm -f .git-version-t; \
348 fi
349
350EXTRA_DIST = $(srcdir)/.git-version
351
352$(srcdir)/version.c: $(srcdir)/.git-version
353 echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
354
355molecuilder_SOURCES += $(srcdir)/version.c
Note: See TracBrowser for help on using the repository browser.