source: src/Makefile.am@ d193a2

Action_Thermostats Add_AtomRandomPerturbation Add_FitFragmentPartialChargesAction Add_RotateAroundBondAction Add_SelectAtomByNameAction Added_ParseSaveFragmentResults AddingActions_SaveParseParticleParameters Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_ParticleName_to_Atom Adding_StructOpt_integration_tests AtomFragments Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.5.4 Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator CombiningParticlePotentialParsing Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_BoundInBox_CenterInBox_MoleculeActions Fix_ChargeSampling_PBC Fix_ChronosMutex Fix_FitPartialCharges Fix_FitPotential_needs_atomicnumbers Fix_ForceAnnealing Fix_IndependentFragmentGrids Fix_ParseParticles Fix_ParseParticles_split_forward_backward_Actions Fix_PopActions Fix_QtFragmentList_sorted_selection Fix_Restrictedkeyset_FragmentMolecule Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns Fix_fitting_potentials Fixes ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion FragmentAction_writes_AtomFragments FragmentMolecule_checks_bonddegrees GeometryObjects Gui_Fixes Gui_displays_atomic_force_velocity ImplicitCharges IndependentFragmentGrids IndependentFragmentGrids_IndividualZeroInstances IndependentFragmentGrids_IntegrationTest IndependentFragmentGrids_Sole_NN_Calculation JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix MoreRobust_FragmentAutomation ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PdbParser_setsAtomName PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks Rewrite_FitPartialCharges RotateToPrincipalAxisSystem_UndoRedo SaturateAtoms_findBestMatching SaturateAtoms_singleDegree StoppableMakroAction Subpackage_CodePatterns Subpackage_JobMarket Subpackage_LinearAlgebra Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg Switchable_LogView ThirdParty_MPQC_rebuilt_buildsystem TrajectoryDependenant_MaxOrder TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps TremoloParser_setsAtomName Ubuntu_1604_changes stable
Last change on this file since d193a2 was d193a2, checked in by Tillmann Crueger <crueger@…>, 14 years ago

Simplyfied building of QT4 mocfiles needed for GUI

  • Property mode set to 100644
File size: 9.9 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4SUBDIRS = Actions UIElements
5
6# this includes source files that need to be present at multiple points
7HELPERSOURCE = \
8 Helpers/Assert.cpp \
9 Helpers/MemDebug.cpp
10
11BASESOURCE = \
12 ${HELPERSOURCE} \
13 Space.cpp \
14 vector.cpp
15
16BASEHEADER = \
17 ${HELPERHEADER} \
18 Space.hpp \
19 vector.hpp
20
21ATOMSOURCE = \
22 atom.cpp \
23 atom_atominfo.cpp \
24 atom_bondedparticle.cpp \
25 atom_bondedparticleinfo.cpp \
26 atom_graphnode.cpp \
27 atom_graphnodeinfo.cpp \
28 atom_particleinfo.cpp \
29 atom_trajectoryparticle.cpp \
30 atom_trajectoryparticleinfo.cpp
31ATOMHEADER = \
32 atom.hpp \
33 atom_atominfo.hpp \
34 atom_bondedparticle.hpp \
35 atom_bondedparticleinfo.hpp \
36 atom_graphnode.hpp \
37 atom_graphnodeinfo.hpp \
38 atom_particleinfo.hpp \
39 atom_trajectoryparticle.hpp \
40 atom_trajectoryparticleinfo.hpp
41
42LINALGSOURCE = \
43 gslmatrix.cpp \
44 gslvector.cpp \
45 linearsystemofequations.cpp
46
47LINALGHEADER = \
48 gslmatrix.hpp \
49 gslvector.hpp \
50 linearsystemofequations.hpp
51
52ANALYSISSOURCE = \
53 analysis_bonds.cpp \
54 analysis_correlation.cpp
55ANALYSISHEADER = \
56 analysis_bonds.hpp \
57 analysis_correlation.hpp
58
59ACTIONSSOURCE = \
60 Actions/Action.cpp \
61 Actions/ActionHistory.cpp \
62 Actions/ActionRegistry.cpp \
63 Actions/ActionSequence.cpp \
64 Actions/ErrorAction.cpp \
65 Actions/MakroAction.cpp \
66 Actions/ManipulateAtomsProcess.cpp \
67 Actions/MethodAction.cpp \
68 Actions/Process.cpp
69
70ACTIONSHEADER = \
71 Actions/Action.hpp \
72 Actions/ActionHistory.hpp \
73 Actions/ActionRegistry.hpp \
74 Actions/ActionSequence.hpp \
75 Actions/Calculation.hpp \
76 Actions/Calculation_impl.hpp \
77 Actions/ErrorAction.hpp \
78 Actions/MakroAction.hpp \
79 Actions/ManipulateAtomsProcess.hpp \
80 Actions/MapOfActions.hpp \
81 Actions/MethodAction.hpp \
82 Actions/Process.hpp
83
84EXCEPTIONSOURCE = \
85 Exceptions/CustomException.cpp \
86 Exceptions/IllegalTypeException.cpp \
87 Exceptions/LinearDependenceException.cpp \
88 Exceptions/MathException.cpp \
89 Exceptions/MissingValueException.cpp \
90 Exceptions/NotInvertibleException.cpp \
91 Exceptions/ParseError.cpp \
92 Exceptions/SkewException.cpp \
93 Exceptions/ZeroVectorException.cpp
94
95EXCEPTIONHEADER = \
96 Exceptions/CustomException.hpp \
97 Exceptions/IllegalTypeException.hpp \
98 Exceptions/LinearDependenceException.hpp \
99 Exceptions/MathException.hpp \
100 Exceptions/MissingValueException.hpp \
101 Exceptions/NotInvertibleException.hpp \
102 Exceptions/ParseError.hpp \
103 Exceptions/SkewException.hpp \
104 Exceptions/ZeroVectorException.hpp
105
106PARSERSOURCE = \
107 Parser/ChangeTracker.cpp \
108 Parser/FormatParser.cpp \
109 Parser/FormatParserStorage.cpp \
110 Parser/MpqcParser.cpp \
111 Parser/PcpParser.cpp \
112 Parser/TremoloParser.cpp \
113 Parser/XyzParser.cpp
114
115PARSERHEADER = \
116 Parser/ChangeTracker.hpp \
117 Parser/FormatParser.hpp \
118 Parser/FormatParserStorage.hpp \
119 Parser/MpqcParser.hpp \
120 Parser/PcpParser.hpp \
121 Parser/TremoloParser.hpp \
122 Parser/XyzParser.hpp
123
124PATTERNSOURCE = \
125 Patterns/Observer.cpp
126PATTERNHEADER = \
127 Patterns/Cacheable.hpp \
128 Patterns/Observer.hpp \
129 Patterns/Singleton.hpp
130
131SHAPESOURCE = \
132 Shapes/BaseShapes.cpp \
133 Shapes/Shape.cpp \
134 Shapes/ShapeOps.cpp
135SHAPEHEADER = \
136 Shapes/BaseShapes.hpp \
137 Shapes/Shape.hpp \
138 Shapes/ShapeOps.hpp
139
140
141DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
142 Descriptors/AtomIdDescriptor.cpp \
143 Descriptors/AtomSelectionDescriptor.cpp \
144 Descriptors/AtomTypeDescriptor.cpp \
145 Descriptors/MoleculeDescriptor.cpp \
146 Descriptors/MoleculeFormulaDescriptor.cpp \
147 Descriptors/MoleculeIdDescriptor.cpp \
148 Descriptors/MoleculeNameDescriptor.cpp \
149 Descriptors/MoleculePtrDescriptor.cpp \
150 Descriptors/MoleculeSelectionDescriptor.cpp
151
152
153DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
154 Descriptors/AtomIdDescriptor.hpp \
155 Descriptors/AtomSelectionDescriptor.hpp \
156 Descriptors/AtomTypeDescriptor.hpp \
157 Descriptors/MoleculeDescriptor.hpp \
158 Descriptors/MoleculeFormulaDescriptor.hpp \
159 Descriptors/MoleculeIdDescriptor.hpp \
160 Descriptors/MoleculeNameDescriptor.hpp \
161 Descriptors/MoleculePtrDescriptor.hpp \
162 Descriptors/MoleculeSelectionDescriptor.cpp
163
164
165QTUIMOC_HEADER = UIElements/QT4/QTDialog.hpp \
166 UIElements/QT4/QTMainWindow.hpp \
167 UIElements/Menu/QT4/QTMenu.hpp \
168 UIElements/Views/QT4/QTWorldView.hpp \
169 UIElements/Views/QT4/GLMoleculeView.hpp \
170 UIElements/Views/QT4/QTMoleculeView.hpp \
171 UIElements/Views/QT4/QTStatusBar.hpp
172
173QTUISOURCE = allmocs.moc.cpp \
174 UIElements/QT4/QTMainWindow.cpp \
175 UIElements/QT4/QTDialog.cpp \
176 UIElements/QT4/QTUIFactory.cpp \
177 UIElements/Menu/QT4/QTMenu.cpp \
178 UIElements/Views/QT4/QTWorldView.cpp \
179 UIElements/Views/QT4/GLMoleculeView.cpp \
180 UIElements/Views/QT4/QTMoleculeView.cpp \
181 UIElements/Views/QT4/QTStatusBar.cpp
182
183QTUIHEADER = ${QTUIMOC_HEADER} UIElements/QT4/QTUIFactory.hpp
184
185QTUI_DEFS =
186
187SOURCE = \
188 ${ANALYSISSOURCE} \
189 ${ACTIONSSOURCE} \
190 ${ATOMSOURCE} \
191 ${EXCEPTIONSOURCE} \
192 ${PATTERNSOURCE} \
193 ${PARSERSOURCE} \
194 ${SHAPESOURCE} \
195 ${DESCRIPTORSOURCE} \
196 ${HELPERSOURCE} \
197 bond.cpp \
198 bondgraph.cpp \
199 boundary.cpp \
200 Box.cpp \
201 CommandLineParser.cpp \
202 config.cpp \
203 ConfigFileBuffer.cpp \
204 element.cpp \
205 elements_db.cpp \
206 ellipsoid.cpp \
207 errorlogger.cpp \
208 Formula.cpp \
209 graph.cpp \
210 helpers.cpp \
211 info.cpp \
212 leastsquaremin.cpp \
213 Line.cpp \
214 linkedcell.cpp \
215 log.cpp \
216 logger.cpp \
217 Matrix.cpp \
218 moleculelist.cpp \
219 molecule.cpp \
220 molecule_dynamics.cpp \
221 molecule_fragmentation.cpp \
222 molecule_geometry.cpp \
223 molecule_graph.cpp \
224 molecule_pointcloud.cpp \
225 parser.cpp \
226 periodentafel.cpp \
227 Plane.cpp \
228 Space.cpp \
229 tesselation.cpp \
230 tesselationhelpers.cpp \
231 ThermoStatContainer.cpp \
232 triangleintersectionlist.cpp \
233 UIElements/UIFactory.cpp \
234 vector_ops.cpp \
235 verbose.cpp \
236 World.cpp
237
238HEADER = \
239 ${ANALYSISHEADER} \
240 ${ACTIONSHEADER} \
241 ${ATOMHEADER} \
242 ${EXCEPTIONHEADER} \
243 ${PARSERHEADER} \
244 ${PATTERNHEADER} \
245 ${SHAPEHEADER} \
246 ${DESCRIPTORHEADER} \
247 bond.hpp \
248 bondgraph.hpp \
249 boundary.hpp \
250 Box.hpp \
251 CommandLineParser.hpp \
252 config.hpp \
253 ConfigFileBuffer.hpp \
254 defs.hpp \
255 element.hpp \
256 elements_db.hpp \
257 ellipsoid.hpp \
258 errorlogger.hpp \
259 Formula.hpp \
260 graph.hpp \
261 helpers.hpp \
262 info.hpp \
263 leastsquaremin.hpp \
264 Line.hpp \
265 linkedcell.hpp \
266 lists.hpp \
267 log.hpp \
268 logger.hpp \
269 Matrix.hpp \
270 molecule.hpp \
271 molecule_template.hpp \
272 parser.hpp \
273 periodentafel.hpp \
274 Plane.hpp \
275 stackclass.hpp \
276 tesselation.hpp \
277 tesselationhelpers.hpp \
278 ThermoStatContainer.hpp \
279 triangleintersectionlist.hpp \
280 UIElements/UIFactory.hpp \
281 verbose.hpp \
282 vector_ops.hpp \
283 World.hpp
284
285# the following files are no longer used:
286# memoryallocator.hpp \
287# memoryallocator.cpp \
288# memoryusageobserver.hpp \
289# memoryusageobserver.cpp
290
291BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
292GUI_LIBS = ${QT_LDADD} ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS}
293INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
294
295noinst_LIBRARIES = libmolecuilderbase.a libmolecuilder.a libgslwrapper.a libmenu.a libparser.a
296bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
297
298molecuilderdir = ${bindir}
299
300libmolecuilderbase_a_SOURCES = ${BASESOURCE} ${BASEHEADER}
301libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
302libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
303libparser_a_SOURCES = ${PARSERSOURCE} ${PARSERHEADER}
304libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
305
306molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
307
308molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
309#molecuilder_CXXFLAGS += -DNO_CACHING
310molecuilder_LDFLAGS = $(BOOST_LIB)
311molecuilder_SOURCES = ${LEGACYSOURCE} builder.cpp
312molecuilder_SOURCES += $(srcdir)/version.c
313molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilderbase.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
314
315#Stuff for building the GUI using QT
316molecuildergui_SOURCES = ${QTUISOURCE} ${LEGACYSOURCE} builder.cpp
317molecuildergui_SOURCES += $(srcdir)/version.c
318molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT
319molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS}
320molecuildergui_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilderbase.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB} ${GUI_LIBS}
321
322joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
323joiner_LDADD = libmolecuilder.a libmolecuilderbase.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
324
325analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
326analyzer_LDADD = libmolecuilder.a libmolecuilderbase.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
327
328#Rules needed for QT4
329# UI-Files are scattered throughout several subdirectories
330# Therfore `%'-rules do not seem to work
331#Quick fix to get it done otherwise
332allmocs.moc.cpp: ${QTUIMOC_HEADER}
333 echo "" > allmocs.moc.cpp;\
334 list='$(QTUIMOC_HEADER)'; for header in $$list; do \
335 echo "Making mocfile for $$header"; \
336 target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
337 $(MOC) $(srcdir)/$$header -o $$target \
338 || eval $$failcom; \
339 echo "#include \"$$target\"" >> allmocs.moc.cpp; \
340 done;
341
342
343
344MOSTLYCLEANFILES = allmocs.moc.cpp
345
346#EXTRA_DIST = ${molecuilder_DATA}
347
348FORCE:
349$(srcdir)/.git-version: FORCE
350 @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
351 && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
352 && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
353 mv -f .git-version-t $(srcdir)/.git-version; \
354 else \
355 rm -f .git-version-t; \
356 fi
357
358EXTRA_DIST = $(srcdir)/.git-version
359
360$(srcdir)/version.c: $(srcdir)/.git-version
361 echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
362
363
Note: See TracBrowser for help on using the repository browser.