source: src/Makefile.am@ 1ee3b8d

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

Made RandomNumbers sources into its own library libMolecuilderRandomNumbers.

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