source: src/Makefile.am@ b380ed

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

Refactored transform_iterator out of class molecule as AtomIdSet.

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