Changeset 79de12 for src/Makefile.am


Ignore:
Timestamp:
Sep 30, 2011, 8:19:37 AM (13 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:
fec381
Parents:
5a8f38
git-author:
Frederik Heber <heber@…> (05/10/11 12:35:11)
git-committer:
Frederik Heber <heber@…> (09/30/11 08:19:37)
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    r5a8f38 r79de12  
    268268
    269269
    270 BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
    271270INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements -I$(top_srcdir)/LinearAlgebra/src
    272271
     
    283282molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
    284283#molecuilder_CXXFLAGS += -DNO_CACHING
    285 molecuilder_LDFLAGS = $(BOOST_LIB)
     284molecuilder_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
    286285molecuilder_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
    287286molecuilder_LDADD = \
     
    289288        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    290289        ${CodePatterns_LIBS} \
    291         $(BOOST_LIB)
     290        $(BOOST_THREAD_LIBS) \
     291        $(BOOST_PROGRAM_OPTIONS_LIBS) \
     292        $(BOOST_RANDOM_LIBS) \
     293        $(BOOST_SYSTEM_LIBS) \
     294        $(BOOST_FILESYSTEM_LIBS)
    292295
    293296#Stuff for building the GUI using Qt
    294297molecuildergui_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
    295 molecuildergui_CXXFLAGS = $(BOOST_CPPFLAGS) -DUSE_GUI_QT
    296 molecuildergui_LDFLAGS = $(BOOST_LIB)
     298molecuildergui_CXXFLAGS = $(AM_CPPFLAGS) -DUSE_GUI_QT
     299molecuildergui_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
    297300molecuildergui_LDADD = \
    298301        libMolecuilderQtUI.la \
     
    300303        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    301304        ${CodePatterns_LIBS} \
    302         $(BOOST_LIB) \
     305        $(BOOST_THREAD_LIBS) \
     306        $(BOOST_PROGRAM_OPTIONS_LIBS) \
     307        $(BOOST_RANDOM_LIBS) \
     308        $(BOOST_SYSTEM_LIBS) \
     309        $(BOOST_FILESYSTEM_LIBS) \
    303310        $(GUI_LIBS)
    304311
     
    311318        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    312319        ${CodePatterns_LIBS} \
    313         $(BOOST_LIB)
     320        $(BOOST_THREAD_LIBS)
    314321
    315322analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
     
    321328        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    322329        ${CodePatterns_LIBS} \
    323         $(BOOST_LIB)
     330        $(BOOST_THREAD_LIBS)
    324331
    325332unity_SOURCES = unity.cpp
    326 unity_LDADD = $(BOOST_LIB)
     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)
    327340
    328341
Note: See TracChangeset for help on using the changeset viewer.