source: src/Makefile.am@ 79de12

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 79de12 was 79de12, checked in by Frederik Heber <heber@…>, 13 years ago

Replaced *_boost_*.m4 by boost.m4 from tsuna.

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