source: src/Makefile.am@ acbe1b

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

All libraries don't have version in name anymore.

  • we used gained knowledge from CodePatterns library for .pc file and and the generated libs to finalize their use (for SubspaceFactorizer soon the factored out into independent project).
  • .pc now contains all libs and named correctly.

Makefile.am's

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