Changeset 748fc7 for src/Makefile.am


Ignore:
Timestamp:
Aug 21, 2014, 6:43:46 AM (11 years ago)
Author:
Frederik Heber <heber@…>
Branches:
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
Children:
07ecc5
Parents:
d93b4b3
git-author:
Frederik Heber <heber@…> (08/19/14 11:17:27)
git-committer:
Frederik Heber <heber@…> (08/21/14 06:43:46)
Message:

libMolecuilder is now a shared library.

  • linking error Vector::IsZero(double) with molecuilder(gui), related to libMolecuilderShapes was the root cause for this change. Again, it was not deducible why this error occured:
  • probably (me tired of these obfuscated linker errors ...) faulted because libMolecuilder is convenience lib while libMolecuilderUI and ..QtUI are shared and deps did not get passed along properly (by libtool) (e.g. ldd showed libMolecuilderShapes prior to libLinearAlgebra, containing said function Vector::IsZero(double), but I cannot influence this ordering and it should not even matter (dynamic linking).)
  • some cleanup in builder_init.cpp (no more loading of BondGraph from file named "\n".
  • TESTFIX: libMolecuilder.so added to all unittests, required for e.g. World::purgeInstance() ... and sometimes added libMolecuilderUI.so because libMolecuilder pulled them in due to static entities ... sigh.
  • removed all src object files from unittest .._SOURCES. This caused distclean faults "thanks" to new subdir-objects (automake).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    rd93b4b3 r748fc7  
    1010EXTRA_DIST =
    1111
    12 include Actions/Makefile.am
    13 include Analysis/Makefile.am
    14 include Atom/Makefile.am
    15 include Element/Makefile.am
    16 include Filling/Makefile.am
    17 include Fragmentation/Makefile.am
    18 include Fragmentation/Automation/Makefile.am
    19 include Fragmentation/Summation/Containers/Makefile.am
    20 include Fragmentation/Summation/Converter/Makefile.am
    21 include Fragmentation/Summation/Makefile.am
    22 include Fragmentation/Summation/SetValues/Makefile.am
    23 include FunctionApproximation/Makefile.am
    24 include Graph/Makefile.am
     12# libMolecuilder.la requires the libraries listed below
     13
    2514include Helpers/Makefile.am
    26 include Jobs/Makefile.am
    27 
    28 if CONDPYTHON
    29 include Python/Makefile.am
    30 endif
    31 
    32 include LinkedCell/Makefile.am
    33 include Parameters/Makefile.am
    34 include Parser/Makefile.am
    35 include Potentials/Makefile.am
    36 include RandomNumbers/Makefile.am
    3715include Shapes/Makefile.am
    3816include Tesselation/Makefile.am
    39 include UIElements/Makefile.am
     17
     18# then comes the library itself
    4019
    4120AM_LDFLAGS = -ldl ${BOOST_LDFLAGS} ${CodePatterns_LDFLAGS}
     
    202181  WorldTime.hpp
    203182
    204 noinst_LTLIBRARIES += libMolecuilder.la
     183lib_LTLIBRARIES += libMolecuilder.la
    205184libMolecuilder_la_includedir = $(includedir)/MoleCuilder/
    206185libMolecuilder_la_LDFLAGS = \
     
    212191        libMolecuilderTesselation.la \
    213192        libMolecuilderShapes.la \
     193        libMolecuilderHelpers.la \
    214194        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    215195        ${CodePatterns_LIBS} \
     
    235215## library file (.so).  The library ABI version is defined in configure.ac, so
    236216## that all version information is kept in one place.
    237 #libMolecuilder_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
     217libMolecuilder_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
    238218
    239219## The generated configuration header is installed in its own subdirectory of
     
    258238pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
    259239
     240# then we compile the remainder of all other libraries, especially
     241# libMolecuilderUI.la, which requires libMolecuilder.la on install
     242
     243include Actions/Makefile.am
     244include Analysis/Makefile.am
     245include Atom/Makefile.am
     246include Element/Makefile.am
     247include Filling/Makefile.am
     248include Fragmentation/Makefile.am
     249include Fragmentation/Automation/Makefile.am
     250include Fragmentation/Summation/Containers/Makefile.am
     251include Fragmentation/Summation/Converter/Makefile.am
     252include Fragmentation/Summation/Makefile.am
     253include Fragmentation/Summation/SetValues/Makefile.am
     254include FunctionApproximation/Makefile.am
     255include Graph/Makefile.am
     256include Jobs/Makefile.am
     257
     258if CONDPYTHON
     259include Python/Makefile.am
     260endif
     261
     262include LinkedCell/Makefile.am
     263include Parameters/Makefile.am
     264include Parser/Makefile.am
     265include Potentials/Makefile.am
     266include RandomNumbers/Makefile.am
     267include UIElements/Makefile.am
    260268
    261269bin_PROGRAMS += molecuilder
     
    300308molecuilder_LDFLAGS = \
    301309        $(AM_LDFLAGS) \
     310        $(CodePatterns_LDFLAGS) \
    302311        $(BOOST_FILESYSTEM_LDFLAGS) \
    303312        $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
     
    308317        builder.cpp \
    309318        builder_init.cpp \
    310         builder_init.hpp
     319        builder_init.hpp \
     320        Python/PythonScripting.hpp
    311321molecuilder_LDADD = \
     322        libMolecuilder.la \
    312323        libMolecuilderUI.la
    313324molecuilder_LDADD += \
    314         $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    315325        ${CodePatterns_LIBS} \
    316326        $(BOOST_THREAD_LIBS) \
     
    348358        $(BOOST_THREAD_LDFLAGS)
    349359molecuildergui_LDADD = \
     360        libMolecuilder.la \
    350361        libMolecuilderQtUI.la \
    351362        libMolecuilderUI.la
    352363molecuildergui_LDADD += \
    353         $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    354364        ${CodePatterns_LIBS} \
    355365        $(BOOST_THREAD_LIBS) \
Note: See TracChangeset for help on using the changeset viewer.