source: src/Makefile.am@ c38826

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 c38826 was e4afb4, checked in by Frederik Heber <heber@…>, 14 years ago

Huge refactoring: Introduction of Traits to Actions.

This change is really big but the introduction of the Trait concept (at least
in its current light form) is so fundamental that lots of pieces had to be
changed in order to get everything working.

The main point why it was necessary to add these traits in the first place was
to comfortably allow for adding extension of Actions information-wise, i.e.
with stuff that is only important for the QtUI, such as icons, or tooltips, ...
This extra information should not be stored with Action itself, as it has
nothing to do with the workings of the Action. And neither should it get
stored with some blown-out-of-proportions MapOfActions class ...

The gist of the change is as follows:

  • OptionTrait contains the token, description, shortform and type of an option, such as ("position", "position in space, none, typeid(Vector)).
  • ActionTrait is the derived form for actions where additionally MenuPosition and MenuName are stored (and probably more to come for the GUI), also we have a set of OptionTrait instances, one for each option of the Action.
  • Action then contains this ActionTrait, specialized for each Action.
  • the preprocessor macros have been enhanced to gather all this information from the .def files.
  • MapOfActions is gone. Completely. Most of its use was to store this extra information and the ValueStorage part now is just in class ValueStorage.
  • ValueStorage is no more an interface to MapOfActions but as the name says a (type-safe) ValueStorage.

Listing the (remaining) changes in alphabetical order of the class:

  • Action
    • member value ::name dropped, ::getName() uses ActionTraits::getName()
    • new define NODEFAULT which is used in paramdefaults in .def files
    • all derived actions classes such as Process, Calculations, MakroAction,... have been adapated to use the ActionTrait concept as well.
  • ActionHistory
    • extraced RedoAction and UndoAction, shifted implementation into their own object files and they use .def files as well (i.e. streamlined with method used for other actions)
  • MenuDescription
    • contain information on Menus such as name, ...
    • new unit test checks for consistency
  • molecule
    • const member functions: Copy(), Output() and OutputBonds()
  • OptionRegistry
    • new registry class for options only
    • we want the same type throughout the code for each token, e.g. "position"
    • the registry containts checks for consistency
  • OptionTrait
    • default values are specified in paramdefaults, none are given by NODEFAULT
    • introduced default for translate-atoms, point-correlation, pair-correlation
  • Registry pattern
    • new unit test, but only sceleton code so far
  • ...Query, also ...Pipe
    • atoms, molecule and elements are now all const
    • also ValueStorage's signatures all have const therein
  • ValueStorage
    • set/queryCurrentValue from MapOfActions
    • at times VectorValue has been in .def files where Vector was in the signature. This is cleared. Such stuff is only present for e.g. BoxVector being queried as a Vector. But this is a feature and intended.
  • World
    • most of the (un)selection functions now work on const atoms and molecules
    • in one case we need a const_cast to remove this, but this is intentional, as the vector of selected atoms stores non-const pointers and this is ok.

There is only one test which had to be changed slightly because a specific
option token as "position" must now have the same type everywhere, e.g. always
Vector.

  • TESTFIX: Simple_configuration/2: --position -> --domain-position (and associated to BoxVector)
  • Property mode set to 100644
File size: 14.8 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4SUBDIRS = Actions Exceptions Helpers LinearAlgebra Parser UIElements
5
6ATOMSOURCE = \
7 atom.cpp \
8 AtomicInfo.cpp \
9 atom_atominfo.cpp \
10 atom_bondedparticle.cpp \
11 atom_bondedparticleinfo.cpp \
12 atom_graphnode.cpp \
13 atom_graphnodeinfo.cpp \
14 atom_particleinfo.cpp \
15 atom_trajectoryparticle.cpp \
16 atom_trajectoryparticleinfo.cpp
17ATOMHEADER = \
18 atom.hpp \
19 AtomicInfo.hpp \
20 atom_atominfo.hpp \
21 atom_bondedparticle.hpp \
22 atom_bondedparticleinfo.hpp \
23 atom_graphnode.hpp \
24 atom_graphnodeinfo.hpp \
25 atom_particleinfo.hpp \
26 atom_trajectoryparticle.hpp \
27 atom_trajectoryparticleinfo.hpp
28
29ANALYSISSOURCE = \
30 analysis_bonds.cpp \
31 analysis_correlation.cpp
32ANALYSISHEADER = \
33 analysis_bonds.hpp \
34 analysis_correlation.hpp
35
36ACTIONSSOURCE = \
37 Actions/Action.cpp \
38 Actions/ActionHistory.cpp \
39 Actions/ActionRegistry.cpp \
40 Actions/ActionSequence.cpp \
41 Actions/ActionTraits.cpp \
42 Actions/ErrorAction.cpp \
43 Actions/MakroAction.cpp \
44 Actions/ManipulateAtomsProcess.cpp \
45 Actions/MethodAction.cpp \
46 Actions/OptionRegistry.cpp \
47 Actions/OptionTrait.cpp \
48 Actions/Process.cpp
49
50ACTIONSHEADER = \
51 Actions/Action.hpp \
52 Actions/ActionHistory.hpp \
53 Actions/ActionRegistry.hpp \
54 Actions/ActionSequence.hpp \
55 Actions/ActionTraits.hpp \
56 Actions/Calculation.hpp \
57 Actions/Calculation_impl.hpp \
58 Actions/ErrorAction.hpp \
59 Actions/MakroAction.hpp \
60 Actions/ManipulateAtomsProcess.hpp \
61 Actions/MethodAction.hpp \
62 Actions/OptionRegistry.hpp \
63 Actions/OptionTrait.hpp \
64 Actions/Process.hpp
65
66
67PATTERNSOURCE = \
68 Patterns/Observer.cpp
69PATTERNHEADER = \
70 Patterns/Cacheable.hpp \
71 Patterns/Observer.hpp \
72 Patterns/Singleton.hpp
73
74SHAPESOURCE = \
75 Shapes/BaseShapes.cpp \
76 Shapes/Shape.cpp \
77 Shapes/ShapeOps.cpp
78SHAPEHEADER = \
79 Shapes/BaseShapes.hpp \
80 Shapes/Shape.hpp \
81 Shapes/ShapeOps.hpp
82
83
84DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
85 Descriptors/AtomIdDescriptor.cpp \
86 Descriptors/AtomSelectionDescriptor.cpp \
87 Descriptors/AtomShapeDescriptor.cpp \
88 Descriptors/AtomTypeDescriptor.cpp \
89 Descriptors/MoleculeDescriptor.cpp \
90 Descriptors/MoleculeFormulaDescriptor.cpp \
91 Descriptors/MoleculeIdDescriptor.cpp \
92 Descriptors/MoleculeNameDescriptor.cpp \
93 Descriptors/MoleculePtrDescriptor.cpp \
94 Descriptors/MoleculeSelectionDescriptor.cpp
95
96
97DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
98 Descriptors/AtomIdDescriptor.hpp \
99 Descriptors/AtomSelectionDescriptor.hpp \
100 Descriptors/AtomShapeDescriptor.hpp \
101 Descriptors/AtomTypeDescriptor.hpp \
102 Descriptors/MoleculeDescriptor.hpp \
103 Descriptors/MoleculeFormulaDescriptor.hpp \
104 Descriptors/MoleculeIdDescriptor.hpp \
105 Descriptors/MoleculeNameDescriptor.hpp \
106 Descriptors/MoleculePtrDescriptor.hpp \
107 Descriptors/MoleculeSelectionDescriptor.cpp
108
109THERMOSTATSOURCE = \
110 Thermostats/Berendsen.cpp \
111 Thermostats/GaussianThermostat.cpp \
112 Thermostats/Langevin.cpp \
113 Thermostats/NoseHoover.cpp \
114 Thermostats/NoThermostat.cpp \
115 Thermostats/Thermostat.cpp \
116 Thermostats/Woodcock.cpp
117
118THERMOSTATHEADER = \
119 Thermostats/Berendsen.hpp \
120 Thermostats/GaussianThermostat.hpp \
121 Thermostats/Langevin.hpp \
122 Thermostats/NoseHoover.hpp \
123 Thermostats/NoThermostat.hpp \
124 Thermostats/Thermostat.hpp \
125 Thermostats/Woodcock.hpp
126
127QTUIMOC_HEADER = UIElements/Qt4/QtDialog.hpp \
128 UIElements/Qt4/QtMainWindow.hpp \
129 UIElements/Menu/Qt4/QtMenu.hpp \
130 UIElements/Views/Qt4/QtWorldView.hpp \
131 UIElements/Views/Qt4/GLMoleculeView.hpp \
132 UIElements/Views/Qt4/QtMoleculeView.hpp \
133 UIElements/Views/Qt4/QtStatusBar.hpp
134
135QTUISOURCE = allmocs.moc.cpp \
136 UIElements/Qt4/Pipe/AtomQtQueryPipe.cpp \
137 UIElements/Qt4/Pipe/AtomsQtQueryPipe.cpp \
138 UIElements/Qt4/Pipe/BooleanQtQueryPipe.cpp \
139 UIElements/Qt4/Pipe/BoxQtQueryPipe.cpp \
140 UIElements/Qt4/Pipe/DoubleQtQueryPipe.cpp \
141 UIElements/Qt4/Pipe/ElementsQtQueryPipe.cpp \
142 UIElements/Qt4/Pipe/EmptyQtQueryPipe.cpp \
143 UIElements/Qt4/Pipe/ElementQtQueryPipe.cpp \
144 UIElements/Qt4/Pipe/FileQtQueryPipe.cpp \
145 UIElements/Qt4/Pipe/IntQtQueryPipe.cpp \
146 UIElements/Qt4/Pipe/MoleculeQtQueryPipe.cpp \
147 UIElements/Qt4/Pipe/MoleculesQtQueryPipe.cpp \
148 UIElements/Qt4/Pipe/StringQtQueryPipe.cpp \
149 UIElements/Qt4/Pipe/VectorQtQueryPipe.cpp \
150 UIElements/Qt4/Pipe/VectorsQtQueryPipe.cpp \
151 UIElements/Qt4/Query/AtomQtQuery.cpp \
152 UIElements/Qt4/Query/AtomsQtQuery.cpp \
153 UIElements/Qt4/Query/BooleanQtQuery.cpp \
154 UIElements/Qt4/Query/BoxQtQuery.cpp \
155 UIElements/Qt4/Query/DoubleQtQuery.cpp \
156 UIElements/Qt4/Query/DoublesQtQuery.cpp \
157 UIElements/Qt4/Query/ElementQtQuery.cpp \
158 UIElements/Qt4/Query/ElementsQtQuery.cpp \
159 UIElements/Qt4/Query/EmptyQtQuery.cpp \
160 UIElements/Qt4/Query/FileQtQuery.cpp \
161 UIElements/Qt4/Query/IntQtQuery.cpp \
162 UIElements/Qt4/Query/IntsQtQuery.cpp \
163 UIElements/Qt4/Query/MoleculeQtQuery.cpp \
164 UIElements/Qt4/Query/MoleculesQtQuery.cpp \
165 UIElements/Qt4/Query/StringQtQuery.cpp \
166 UIElements/Qt4/Query/StringsQtQuery.cpp \
167 UIElements/Qt4/Query/VectorQtQuery.cpp \
168 UIElements/Qt4/Query/VectorsQtQuery.cpp \
169 UIElements/Qt4/QtMainWindow.cpp \
170 UIElements/Qt4/QtDialog.cpp \
171 UIElements/Qt4/QtUIFactory.cpp \
172 UIElements/Menu/Qt4/QtMenu.cpp \
173 UIElements/Views/Qt4/QtWorldView.cpp \
174 UIElements/Views/Qt4/GLMoleculeView.cpp \
175 UIElements/Views/Qt4/QtMoleculeView.cpp \
176 UIElements/Views/Qt4/QtStatusBar.cpp
177
178QTUIHEADER = \
179 ${QTUIMOC_HEADER} \
180 UIElements/Qt4/Pipe/QtQueryListPipe.hpp \
181 UIElements/Qt4/QtUIFactory.hpp
182
183QTUI_DEFS =
184
185TESSELATIONSOURCE = \
186 BoundaryLineSet.cpp \
187 BoundaryPointSet.cpp \
188 BoundaryPolygonSet.cpp \
189 BoundaryTriangleSet.cpp \
190 CandidateForTesselation.cpp \
191 PointCloud.cpp \
192 tesselation.cpp \
193 tesselationhelpers.cpp \
194 TesselPoint.cpp
195
196TESSELATIONHEADER = \
197 BoundaryLineSet.hpp \
198 BoundaryPointSet.hpp \
199 BoundaryPolygonSet.hpp \
200 BoundaryTriangleSet.hpp \
201 CandidateForTesselation.hpp \
202 PointCloud.hpp \
203 tesselation.hpp \
204 tesselationhelpers.hpp \
205 TesselPoint.hpp
206
207MOLECUILDERSOURCE = \
208 ${ANALYSISSOURCE} \
209 ${ACTIONSSOURCE} \
210 ${ATOMSOURCE} \
211 ${PATTERNSOURCE} \
212 ${SHAPESOURCE} \
213 ${DESCRIPTORSOURCE} \
214 ${THERMOSTATSOURCE} \
215 ${TESSELATIONSOURCE} \
216 bond.cpp \
217 bondgraph.cpp \
218 boundary.cpp \
219 Box.cpp \
220 config.cpp \
221 ConfigFileBuffer.cpp \
222 defs.cpp \
223 element.cpp \
224 elements_db.cpp \
225 ellipsoid.cpp \
226 Formula.cpp \
227 graph.cpp \
228 leastsquaremin.cpp \
229 linkedcell.cpp \
230 moleculelist.cpp \
231 molecule.cpp \
232 molecule_dynamics.cpp \
233 molecule_fragmentation.cpp \
234 molecule_geometry.cpp \
235 molecule_graph.cpp \
236 molecule_pointcloud.cpp \
237 parser.cpp \
238 periodentafel.cpp \
239 ThermoStatContainer.cpp \
240 triangleintersectionlist.cpp \
241 UIElements/UIFactory.cpp \
242 World.cpp
243
244MOLECUILDERHEADER = \
245 ${ANALYSISHEADER} \
246 ${ACTIONSHEADER} \
247 ${ATOMHEADER} \
248 ${PATTERNHEADER} \
249 ${SHAPEHEADER} \
250 ${DESCRIPTORHEADER} \
251 ${THERMOSTATHEADER} \
252 ${TESSELATIONHEADER} \
253 bond.hpp \
254 bondgraph.hpp \
255 boundary.hpp \
256 Box.hpp \
257 config.hpp \
258 ConfigFileBuffer.hpp \
259 defs.hpp \
260 element.hpp \
261 elements_db.hpp \
262 ellipsoid.hpp \
263 Formula.hpp \
264 graph.hpp \
265 leastsquaremin.hpp \
266 linkedcell.hpp \
267 lists.hpp \
268 molecule.hpp \
269 parser.hpp \
270 periodentafel.hpp \
271 stackclass.hpp \
272 ThermoStatContainer.hpp \
273 triangleintersectionlist.hpp \
274 UIElements/UIFactory.hpp \
275 World.hpp
276
277lib_LTLIBRARIES = libMolecuilder-@MOLECUILDER_API_VERSION@.la
278libMolecuilder_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
279libMolecuilder_LIBS = \
280 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
281 ${BOOST_PROGRAM_OPTIONS_LIB}
282
283# UIElements/libMolecuilderUI.a \
284 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
285 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
286 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
287 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
288 $(BOOST_LIB) \
289 ${BOOST_THREAD_LIB}
290
291nobase_libMolecuilder_include_HEADERS = ${MOLECUILDERHEADER}
292
293## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
294## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
295## will therefore be treated as if it were literally part of the target name,
296## and the variable name derived from that.
297## The file extension .cc is recognized by Automake, and makes it produce
298## rules which invoke the C++ compiler to produce a libtool object file (.lo)
299## from each source file. Note that it is not necessary to list header files
300## which are already listed elsewhere in a _HEADERS variable assignment.
301libMolecuilder_@MOLECUILDER_API_VERSION@_la_SOURCES = ${MOLECUILDERSOURCE} $(srcdir)/version.c
302
303## Instruct libtool to include ABI version information in the generated shared
304## library file (.so). The library ABI version is defined in configure.ac, so
305## that all version information is kept in one place.
306libMolecuilder_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
307
308## The generated configuration header is installed in its own subdirectory of
309## $(libdir). The reason for this is that the configuration information put
310## into this header file describes the target platform the installed library
311## has been built for. Thus the file must not be installed into a location
312## intended for architecture-independent files, as defined by the Filesystem
313## Hierarchy Standard (FHS).
314## The nodist_ prefix instructs Automake to not generate rules for including
315## the listed files in the distribution on 'make dist'. Files that are listed
316## in _HEADERS variables are normally included in the distribution, but the
317## configuration header file is generated at configure time and should not be
318## shipped with the source tarball.
319libMolecuilder_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
320nodist_libMolecuilder_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
321
322## Install the generated pkg-config file (.pc) into the expected location for
323## architecture-dependent package configuration information. Occasionally,
324## pkg-config files are also used for architecture-independent data packages,
325## in which case the correct install location would be $(datadir)/pkgconfig.
326pkgconfigdir = $(libdir)/pkgconfig
327pkgconfig_DATA = $(top_builddir)/molecuilder-$(MOLECUILDER_API_VERSION).pc
328
329
330BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_THREAD_LIB)
331GUI_LIBS = ${QT_LDADD} ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS}
332INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
333
334noinst_LIBRARIES = libmenu.a
335bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
336EXTRA_PROGRAMS = unity
337
338molecuilderdir = ${bindir}
339
340libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
341
342molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
343
344molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
345#molecuilder_CXXFLAGS += -DNO_CACHING
346molecuilder_LDFLAGS = $(BOOST_LIB)
347molecuilder_SOURCES = builder.cpp
348molecuilder_LDADD = \
349 UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
350 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
351 libMolecuilder-@MOLECUILDER_API_VERSION@.la \
352 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
353 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
354 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
355 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
356 $(BOOST_LIB)
357
358#Stuff for building the GUI using Qt
359molecuildergui_SOURCES = ${QTUISOURCE} builder.cpp
360molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT
361molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS}
362
363unity_SOURCES = unity.cpp
364unity_LDADD = $(BOOST_LIB)
365
366molecuildergui_LDADD = \
367 UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
368 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
369 libMolecuilder-@MOLECUILDER_API_VERSION@.la \
370 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
371 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
372 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
373 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
374 $(BOOST_LIB) \
375 ${GUI_LIBS}
376
377joiner_SOURCES = joiner.cpp datacreator.cpp datacreator.hpp periodentafel.hpp
378joiner_LDADD = \
379 UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
380 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
381 libMolecuilder-@MOLECUILDER_API_VERSION@.la \
382 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
383 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
384 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
385 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
386 $(BOOST_LIB)
387
388analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
389analyzer_LDADD = \
390 UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
391 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
392 libMolecuilder-@MOLECUILDER_API_VERSION@.la \
393 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
394 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
395 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
396 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
397 $(BOOST_LIB)
398
399#Rules needed for Qt4
400# UI-Files are scattered throughout several subdirectories
401# Therfore `%'-rules do not seem to work
402#Quick fix to get it done otherwise
403allmocs.moc.cpp: ${QTUIMOC_HEADER}
404 echo "" > allmocs.moc.cpp;\
405 list='$(QTUIMOC_HEADER)'; for header in $$list; do \
406 echo "Making mocfile for $$header"; \
407 target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
408 $(MOC) $(srcdir)/$$header -o $$target \
409 || eval $$failcom; \
410 echo "#include \"$$target\"" >> allmocs.moc.cpp; \
411 done;
412
413#EXTRA_DIST = ${molecuilder_DATA}
414
415FORCE:
416$(srcdir)/.git-version: FORCE
417 @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
418 && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
419 && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
420 mv -f .git-version-t $(srcdir)/.git-version; \
421 else \
422 rm -f .git-version-t; \
423 fi
424
425EXTRA_DIST = $(srcdir)/.git-version
426
427$(srcdir)/version.c: $(srcdir)/.git-version
428 echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
429
430
431unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
432 echo "#include \"$(srcdir)/Helpers/MemDebug.cpp\"" > unity.cpp; \
433 list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
434 echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
435 done; \
436 subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
437 olddir=$$PWD;\
438 cd $$directory && make unity.cpp;\
439 cd $$olddir;\
440 echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
441 done;\
442 echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
443 echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
444
445MOSTLYCLEANFILES = allmocs.moc.cpp unity.cpp
446
Note: See TracBrowser for help on using the repository browser.