source: src/Makefile.am@ 1d5a871

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

Factored out Factory pattern (no pun intended).

  • Property mode set to 100644
File size: 12.9 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4SUBDIRS = \
5 Exceptions \
6 Parser \
7 LinearAlgebra \
8 Shapes \
9 Actions \
10 UIElements
11
12AM_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
13
14ATOMSOURCE = \
15 atom.cpp \
16 AtomicInfo.cpp \
17 atom_atominfo.cpp \
18 atom_bondedparticle.cpp \
19 atom_bondedparticleinfo.cpp \
20 atom_graphnode.cpp \
21 atom_graphnodeinfo.cpp \
22 atom_particleinfo.cpp \
23 atom_trajectoryparticle.cpp \
24 atom_trajectoryparticleinfo.cpp
25ATOMHEADER = \
26 atom.hpp \
27 AtomicInfo.hpp \
28 atom_atominfo.hpp \
29 atom_bondedparticle.hpp \
30 atom_bondedparticleinfo.hpp \
31 atom_graphnode.hpp \
32 atom_graphnodeinfo.hpp \
33 atom_particleinfo.hpp \
34 atom_trajectoryparticle.hpp \
35 atom_trajectoryparticleinfo.hpp
36
37ANALYSISSOURCE = \
38 analysis_bonds.cpp \
39 analysis_correlation.cpp
40ANALYSISHEADER = \
41 analysis_bonds.hpp \
42 analysis_correlation.hpp
43
44ACTIONSSOURCE = \
45 Actions/Action.cpp \
46 Actions/ActionHistory.cpp \
47 Actions/ActionRegistry.cpp \
48 Actions/ActionSequence.cpp \
49 Actions/ActionTraits.cpp \
50 Actions/ErrorAction.cpp \
51 Actions/MakroAction.cpp \
52 Actions/ManipulateAtomsProcess.cpp \
53 Actions/MethodAction.cpp \
54 Actions/OptionRegistry.cpp \
55 Actions/OptionTrait.cpp \
56 Actions/Process.cpp
57
58ACTIONSHEADER = \
59 Actions/Action.hpp \
60 Actions/ActionHistory.hpp \
61 Actions/ActionRegistry.hpp \
62 Actions/ActionSequence.hpp \
63 Actions/ActionTraits.hpp \
64 Actions/Calculation.hpp \
65 Actions/Calculation_impl.hpp \
66 Actions/ErrorAction.hpp \
67 Actions/MakroAction.hpp \
68 Actions/ManipulateAtomsProcess.hpp \
69 Actions/MethodAction.hpp \
70 Actions/OptionRegistry.hpp \
71 Actions/OptionTrait.hpp \
72 Actions/Process.hpp
73
74
75DESCRIPTORSOURCE = \
76 Descriptors/AtomDescriptor.cpp \
77 Descriptors/AtomIdDescriptor.cpp \
78 Descriptors/AtomOfMoleculeSelectionDescriptor.cpp \
79 Descriptors/AtomSelectionDescriptor.cpp \
80 Descriptors/AtomShapeDescriptor.cpp \
81 Descriptors/AtomTypeDescriptor.cpp \
82 Descriptors/MoleculeDescriptor.cpp \
83 Descriptors/MoleculeFormulaDescriptor.cpp \
84 Descriptors/MoleculeIdDescriptor.cpp \
85 Descriptors/MoleculeNameDescriptor.cpp \
86 Descriptors/MoleculeOfAtomSelectionDescriptor.cpp \
87 Descriptors/MoleculeOrderDescriptor.cpp \
88 Descriptors/MoleculePtrDescriptor.cpp \
89 Descriptors/MoleculeSelectionDescriptor.cpp
90
91
92DESCRIPTORHEADER = \
93 Descriptors/AtomDescriptor.hpp \
94 Descriptors/AtomIdDescriptor.hpp \
95 Descriptors/AtomOfMoleculeSelectionDescriptor.hpp \
96 Descriptors/AtomSelectionDescriptor.hpp \
97 Descriptors/AtomShapeDescriptor.hpp \
98 Descriptors/AtomTypeDescriptor.hpp \
99 Descriptors/MoleculeDescriptor.hpp \
100 Descriptors/MoleculeFormulaDescriptor.hpp \
101 Descriptors/MoleculeIdDescriptor.hpp \
102 Descriptors/MoleculeNameDescriptor.hpp \
103 Descriptors/MoleculeOfAtomSelectionDescriptor.hpp \
104 Descriptors/MoleculeOrderDescriptor.hpp \
105 Descriptors/MoleculePtrDescriptor.hpp \
106 Descriptors/MoleculeSelectionDescriptor.hpp
107
108DESCRIPTORIMPLHEADER = \
109 Descriptors/AtomDescriptor_impl.hpp \
110 Descriptors/AtomIdDescriptor_impl.hpp \
111 Descriptors/AtomOfMoleculeSelectionDescriptor_impl.hpp \
112 Descriptors/AtomSelectionDescriptor_impl.hpp \
113 Descriptors/AtomShapeDescriptor_impl.hpp \
114 Descriptors/AtomTypeDescriptor_impl.hpp \
115 Descriptors/MoleculeDescriptor_impl.hpp \
116 Descriptors/MoleculeFormulaDescriptor_impl.hpp \
117 Descriptors/MoleculeIdDescriptor_impl.hpp \
118 Descriptors/MoleculeNameDescriptor_impl.hpp \
119 Descriptors/MoleculeOfAtomSelectionDescriptor_impl.hpp \
120 Descriptors/MoleculeOrderDescriptor_impl.hpp \
121 Descriptors/MoleculePtrDescriptor_impl.hpp \
122 Descriptors/MoleculeSelectionDescriptor_impl.hpp
123
124RANDOMSOURCE = \
125 RandomNumbers/RandomNumberDistributionFactory.cpp \
126 RandomNumbers/RandomNumberEngineFactory.cpp \
127 RandomNumbers/RandomNumberGeneratorFactory.cpp
128
129RANDOMHEADER = \
130 RandomNumbers/RandomNumberDistribution.hpp \
131 RandomNumbers/RandomNumberDistribution_Encapsulation.hpp \
132 RandomNumbers/RandomNumberDistributionFactory.hpp \
133 RandomNumbers/RandomNumberEngine.hpp \
134 RandomNumbers/RandomNumberEngine_Encapsulation.hpp \
135 RandomNumbers/RandomNumberEngineFactory.hpp \
136 RandomNumbers/RandomNumberGenerator.hpp \
137 RandomNumbers/RandomNumberGenerator_Encapsulation.hpp \
138 RandomNumbers/RandomNumberGeneratorFactory.hpp \
139 RandomNumbers/TemplatePowerSetGenerator.hpp \
140 RandomNumbers/EmptyPrototypeTable.hpp
141
142THERMOSTATSOURCE = \
143 Thermostats/Berendsen.cpp \
144 Thermostats/GaussianThermostat.cpp \
145 Thermostats/Langevin.cpp \
146 Thermostats/NoseHoover.cpp \
147 Thermostats/NoThermostat.cpp \
148 Thermostats/Thermostat.cpp \
149 Thermostats/Woodcock.cpp
150
151THERMOSTATHEADER = \
152 Thermostats/Berendsen.hpp \
153 Thermostats/GaussianThermostat.hpp \
154 Thermostats/Langevin.hpp \
155 Thermostats/NoseHoover.hpp \
156 Thermostats/NoThermostat.hpp \
157 Thermostats/Thermostat.hpp \
158 Thermostats/Woodcock.hpp
159
160TESSELATIONSOURCE = \
161 BoundaryLineSet.cpp \
162 BoundaryPointSet.cpp \
163 BoundaryPolygonSet.cpp \
164 BoundaryTriangleSet.cpp \
165 CandidateForTesselation.cpp \
166 PointCloud.cpp \
167 tesselation.cpp \
168 tesselationhelpers.cpp \
169 TesselPoint.cpp
170
171TESSELATIONHEADER = \
172 BoundaryLineSet.hpp \
173 BoundaryPointSet.hpp \
174 BoundaryPolygonSet.hpp \
175 BoundaryTriangleSet.hpp \
176 CandidateForTesselation.hpp \
177 PointCloud.hpp \
178 tesselation.hpp \
179 tesselationhelpers.hpp \
180 TesselPoint.hpp
181
182MOLECUILDERSOURCE = \
183 ${ANALYSISSOURCE} \
184 ${ACTIONSSOURCE} \
185 ${ATOMSOURCE} \
186 ${DESCRIPTORSOURCE} \
187 ${RANDOMSOURCE} \
188 ${THERMOSTATSOURCE} \
189 ${TESSELATIONSOURCE} \
190 Helpers/defs.cpp \
191 Helpers/helpers.cpp \
192 bond.cpp \
193 bondgraph.cpp \
194 boundary.cpp \
195 Box.cpp \
196 config.cpp \
197 ConfigFileBuffer.cpp \
198 element.cpp \
199 elements_db.cpp \
200 ellipsoid.cpp \
201 Formula.cpp \
202 graph.cpp \
203 linkedcell.cpp \
204 moleculelist.cpp \
205 molecule.cpp \
206 molecule_dynamics.cpp \
207 molecule_fragmentation.cpp \
208 molecule_geometry.cpp \
209 molecule_graph.cpp \
210 molecule_pointcloud.cpp \
211 parser.cpp \
212 periodentafel.cpp \
213 ThermoStatContainer.cpp \
214 triangleintersectionlist.cpp \
215 UIElements/UIFactory.cpp \
216 World.cpp
217
218MOLECUILDERHEADER = \
219 ${ANALYSISHEADER} \
220 ${ACTIONSHEADER} \
221 ${ATOMHEADER} \
222 ${DESCRIPTORHEADER} \
223 ${DESCRIPTORIMPLHEADER} \
224 ${RANDOMSOURCE} \
225 ${THERMOSTATHEADER} \
226 ${TESSELATIONHEADER} \
227 Helpers/defs.hpp \
228 Helpers/fast_functions.hpp \
229 Helpers/helpers.hpp \
230 bond.hpp \
231 bondgraph.hpp \
232 boundary.hpp \
233 Box.hpp \
234 config.hpp \
235 ConfigFileBuffer.hpp \
236 element.hpp \
237 elements_db.hpp \
238 ellipsoid.hpp \
239 Formula.hpp \
240 graph.hpp \
241 linkedcell.hpp \
242 lists.hpp \
243 molecule.hpp \
244 parser.hpp \
245 periodentafel.hpp \
246 ThermoStatContainer.hpp \
247 triangleintersectionlist.hpp \
248 UIElements/UIFactory.hpp \
249 World.hpp
250
251lib_LTLIBRARIES = libMolecuilder.la
252libMolecuilder_la_includedir = $(includedir)/MoleCuilder/
253libMolecuilder_la_LIBADD = \
254 LinearAlgebra/libMolecuilderLinearAlgebra.la \
255 ${CodePatterns_LIBS} \
256 ${BOOST_PROGRAM_OPTIONS_LIB}
257
258nobase_libMolecuilder_la_include_HEADERS = ${MOLECUILDERHEADER}
259
260## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
261## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
262## will therefore be treated as if it were literally part of the target name,
263## and the variable name derived from that.
264## The file extension .cc is recognized by Automake, and makes it produce
265## rules which invoke the C++ compiler to produce a libtool object file (.lo)
266## from each source file. Note that it is not necessary to list header files
267## which are already listed elsewhere in a _HEADERS variable assignment.
268libMolecuilder_la_SOURCES = ${MOLECUILDERSOURCE} $(srcdir)/version.c
269
270## Instruct libtool to include ABI version information in the generated shared
271## library file (.so). The library ABI version is defined in configure.ac, so
272## that all version information is kept in one place.
273libMolecuilder_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
274
275## The generated configuration header is installed in its own subdirectory of
276## $(libdir). The reason for this is that the configuration information put
277## into this header file describes the target platform the installed library
278## has been built for. Thus the file must not be installed into a location
279## intended for architecture-independent files, as defined by the Filesystem
280## Hierarchy Standard (FHS).
281## The nodist_ prefix instructs Automake to not generate rules for including
282## the listed files in the distribution on 'make dist'. Files that are listed
283## in _HEADERS variables are normally included in the distribution, but the
284## configuration header file is generated at configure time and should not be
285## shipped with the source tarball.
286libMolecuilder_la_libincludedir = $(libdir)/MoleCuilder/include
287nodist_libMolecuilder_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
288
289## Install the generated pkg-config file (.pc) into the expected location for
290## architecture-dependent package configuration information. Occasionally,
291## pkg-config files are also used for architecture-independent data packages,
292## in which case the correct install location would be $(datadir)/pkgconfig.
293pkgconfigdir = $(libdir)/pkgconfig
294pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
295
296
297BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
298INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
299
300noinst_LIBRARIES = libmenu.a
301bin_PROGRAMS = molecuilder molecuildergui joiner analyzer SubspaceFactorizer
302EXTRA_PROGRAMS = unity
303
304molecuilderdir = ${bindir}
305
306libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
307
308molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
309
310SubspaceFactorizer_CXXFLAGS = $(BOOST_CPPFLAGS)
311SubspaceFactorizer_SOURCES = SubspaceFactorizer.cpp Helpers/defs.cpp Helpers/defs.hpp Helpers/helpers.cpp Helpers/helpers.hpp
312SubspaceFactorizer_LDADD = \
313 LinearAlgebra/libMolecuilderLinearAlgebra.la \
314 Exceptions/libMolecuilderExceptions.la \
315 ${CodePatterns_LIBS} \
316 $(GSLLIB) \
317 $(BOOST_LIB)
318
319molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
320#molecuilder_CXXFLAGS += -DNO_CACHING
321molecuilder_LDFLAGS = $(BOOST_LIB)
322molecuilder_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
323molecuilder_LDADD = \
324 UIElements/libMolecuilderUI.la \
325 Actions/libMolecuilderActions.la \
326 libMolecuilder.la \
327 Parser/libMolecuilderParser.la \
328 Shapes/libMolecuilderShapes.la \
329 LinearAlgebra/libMolecuilderLinearAlgebra.la \
330 Exceptions/libMolecuilderExceptions.la \
331 ${CodePatterns_LIBS} \
332 $(BOOST_LIB)
333
334#Stuff for building the GUI using Qt
335molecuildergui_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
336molecuildergui_CXXFLAGS = $(BOOST_CPPFLAGS) -DUSE_GUI_QT
337molecuildergui_LDFLAGS = $(BOOST_LIB)
338
339unity_SOURCES = unity.cpp
340unity_LDADD = $(BOOST_LIB)
341
342molecuildergui_LDADD = \
343 UIElements/libMolecuilderUI.la \
344 UIElements/libMolecuilderQtUI.la \
345 Actions/libMolecuilderActions.la \
346 libMolecuilder.la \
347 Parser/libMolecuilderParser.la \
348 Shapes/libMolecuilderShapes.la \
349 LinearAlgebra/libMolecuilderLinearAlgebra.la \
350 Exceptions/libMolecuilderExceptions.la \
351 ${CodePatterns_LIBS} \
352 $(BOOST_LIB) \
353 ${GUI_LIBS}
354
355joiner_SOURCES = joiner.cpp datacreator.cpp datacreator.hpp periodentafel.hpp
356joiner_LDADD = \
357 UIElements/libMolecuilderUI.la \
358 Actions/libMolecuilderActions.la \
359 libMolecuilder.la \
360 Parser/libMolecuilderParser.la \
361 Shapes/libMolecuilderShapes.la \
362 LinearAlgebra/libMolecuilderLinearAlgebra.la \
363 Exceptions/libMolecuilderExceptions.la \
364 ${CodePatterns_LIBS} \
365 $(BOOST_LIB)
366
367analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
368analyzer_LDADD = \
369 UIElements/libMolecuilderUI.la \
370 Actions/libMolecuilderActions.la \
371 libMolecuilder.la \
372 Parser/libMolecuilderParser.la \
373 Shapes/libMolecuilderShapes.la \
374 LinearAlgebra/libMolecuilderLinearAlgebra.la \
375 Exceptions/libMolecuilderExceptions.la \
376 ${CodePatterns_LIBS} \
377 $(BOOST_LIB)
378
379#EXTRA_DIST = ${molecuilder_DATA}
380
381FORCE:
382$(srcdir)/.git-version: FORCE
383 @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
384 && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
385 && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
386 mv -f .git-version-t $(srcdir)/.git-version; \
387 else \
388 rm -f .git-version-t; \
389 fi
390
391EXTRA_DIST = $(srcdir)/.git-version
392
393$(srcdir)/version.c: $(srcdir)/.git-version
394 echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
395
396
397unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
398 echo "#include \"$(srcdir)/Helpers/MemDebug.cpp\"" > unity.cpp; \
399 list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
400 echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
401 done; \
402 subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
403 olddir=$$PWD;\
404 cd $$directory && make unity.cpp;\
405 cd $$olddir;\
406 echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
407 done;\
408 echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
409 echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
410
411MOSTLYCLEANFILES = unity.cpp
412
Note: See TracBrowser for help on using the repository browser.