source: src/Makefile.am@ 34e7fdb

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 34e7fdb was 748fc7, checked in by Frederik Heber <heber@…>, 10 years ago

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).
  • Property mode set to 100644
File size: 15.6 KB
RevLine 
[efc3cb]1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
[455573]4MOSTLYCLEANFILES =
5lib_LTLIBRARIES =
6noinst_LTLIBRARIES =
[2d31e1]7pyexec_LTLIBRARIES =
[aee2da]8BUILT_SOURCES =
[bd8788]9bin_PROGRAMS =
[fd4d5e]10EXTRA_DIST =
[455573]11
[748fc7]12# libMolecuilder.la requires the libraries listed below
[004d5c]13
[748fc7]14include Helpers/Makefile.am
[455573]15include Shapes/Makefile.am
[fec597]16include Tesselation/Makefile.am
[748fc7]17
18# then comes the library itself
[5079a0]19
[a10cc0]20AM_LDFLAGS = -ldl ${BOOST_LDFLAGS} ${CodePatterns_LDFLAGS}
[3b35e7]21AM_CPPFLAGS = \
22 -I$(top_srcdir)/src/unittests \
23 -I$(top_srcdir)/src/Actions \
24 -I$(top_srcdir)/src/UIElements \
25 -I$(top_srcdir)/LinearAlgebra/src \
26 ${BOOST_CPPFLAGS} \
27 ${CodePatterns_CFLAGS}
28
[d5240d]29
[129204]30BONDSOURCE = \
31 Bond/bond.cpp \
[3f7587]32 Bond/bond_observable.cpp \
[af9be32]33 Bond/BondInfo.cpp \
[129204]34 Bond/GraphEdge.cpp
35
36BONDHEADER = \
37 Bond/bond.hpp \
[3f7587]38 Bond/bond_observable.hpp \
[af9be32]39 Bond/BondInfo.hpp \
[129204]40 Bond/GraphEdge.hpp
[efc3cb]41
[c42e60]42DESCRIPTORSOURCE = \
[786d28]43 Descriptors/AtomDescriptor.cpp \
[efc3cb]44 Descriptors/AtomIdDescriptor.cpp \
[b49568]45 Descriptors/AtomOfMoleculeDescriptor.cpp \
[c42e60]46 Descriptors/AtomOfMoleculeSelectionDescriptor.cpp \
[61c364]47 Descriptors/AtomOrderDescriptor.cpp \
[48dcbd]48 Descriptors/AtomSelectionDescriptor.cpp \
[6d858c]49 Descriptors/AtomShapeDescriptor.cpp \
[efc3cb]50 Descriptors/AtomTypeDescriptor.cpp \
[7afb77]51 Descriptors/AtomsWithinDistanceOfDescriptor.cpp \
[efc3cb]52 Descriptors/MoleculeDescriptor.cpp \
[6e7147]53 Descriptors/MoleculeFormulaDescriptor.cpp \
[e05826]54 Descriptors/MoleculeIdDescriptor.cpp \
[e6317b]55 Descriptors/MoleculeNameDescriptor.cpp \
[c42e60]56 Descriptors/MoleculeOfAtomSelectionDescriptor.cpp \
[92d756]57 Descriptors/MoleculeOrderDescriptor.cpp \
[cf0ca1]58 Descriptors/MoleculePtrDescriptor.cpp \
59 Descriptors/MoleculeSelectionDescriptor.cpp
[57adc7]60
[75ac0c]61
[c42e60]62DESCRIPTORHEADER = \
63 Descriptors/AtomDescriptor.hpp \
[efc3cb]64 Descriptors/AtomIdDescriptor.hpp \
[b49568]65 Descriptors/AtomOfMoleculeDescriptor.hpp \
[c42e60]66 Descriptors/AtomOfMoleculeSelectionDescriptor.hpp \
[61c364]67 Descriptors/AtomOrderDescriptor.hpp \
[48dcbd]68 Descriptors/AtomSelectionDescriptor.hpp \
[6d858c]69 Descriptors/AtomShapeDescriptor.hpp \
[efc3cb]70 Descriptors/AtomTypeDescriptor.hpp \
[7afb77]71 Descriptors/AtomsWithinDistanceOfDescriptor.hpp \
[36f507]72 Descriptors/DescriptorBase.hpp \
[efc3cb]73 Descriptors/MoleculeDescriptor.hpp \
[6e7147]74 Descriptors/MoleculeFormulaDescriptor.hpp \
[e30ce8]75 Descriptors/MoleculeIdDescriptor.hpp \
[31b09e]76 Descriptors/MoleculeNameDescriptor.hpp \
[c42e60]77 Descriptors/MoleculeOfAtomSelectionDescriptor.hpp \
[92d756]78 Descriptors/MoleculeOrderDescriptor.hpp \
[cf0ca1]79 Descriptors/MoleculePtrDescriptor.hpp \
[36f507]80 Descriptors/MoleculeSelectionDescriptor.hpp \
[feb5d0]81 Descriptors/SelectiveConstIterator.hpp \
[36f507]82 Descriptors/SelectiveIterator.hpp
[c42e60]83
84DESCRIPTORIMPLHEADER = \
85 Descriptors/AtomDescriptor_impl.hpp \
86 Descriptors/AtomIdDescriptor_impl.hpp \
[b49568]87 Descriptors/AtomOfMoleculeDescriptor_impl.hpp \
[c42e60]88 Descriptors/AtomOfMoleculeSelectionDescriptor_impl.hpp \
[61c364]89 Descriptors/AtomOrderDescriptor_impl.hpp \
[c42e60]90 Descriptors/AtomSelectionDescriptor_impl.hpp \
91 Descriptors/AtomShapeDescriptor_impl.hpp \
92 Descriptors/AtomTypeDescriptor_impl.hpp \
[7afb77]93 Descriptors/AtomsWithinDistanceOfDescriptor_impl.hpp \
[36f507]94 Descriptors/DescriptorBase_impl.hpp \
[c42e60]95 Descriptors/MoleculeDescriptor_impl.hpp \
96 Descriptors/MoleculeFormulaDescriptor_impl.hpp \
97 Descriptors/MoleculeIdDescriptor_impl.hpp \
98 Descriptors/MoleculeNameDescriptor_impl.hpp \
99 Descriptors/MoleculeOfAtomSelectionDescriptor_impl.hpp \
100 Descriptors/MoleculeOrderDescriptor_impl.hpp \
101 Descriptors/MoleculePtrDescriptor_impl.hpp \
[36f507]102 Descriptors/MoleculeSelectionDescriptor_impl.hpp \
[feb5d0]103 Descriptors/SelectiveConstIterator_impl.hpp \
[36f507]104 Descriptors/SelectiveIterator_impl.hpp
[3f9eba]105
[9e23a3]106DYNAMICSSOURCE = \
107 Dynamics/MinimiseConstrainedPotential.cpp
108
109DYNAMICSHEADER = \
[51cdfd]110 Dynamics/AtomicForceManipulator.hpp \
[1a48d2]111 Dynamics/ForceAnnealing.hpp \
[20943b]112 Dynamics/LinearInterpolationBetweenSteps.hpp \
[8009ce]113 Dynamics/MinimiseConstrainedPotential.hpp \
[435065]114 Dynamics/OutputTemperature.hpp \
115 Dynamics/VerletForceIntegration.hpp
[9e23a3]116
[194649]117THERMOSTATSOURCE = \
118 Thermostats/Berendsen.cpp \
119 Thermostats/GaussianThermostat.cpp \
120 Thermostats/Langevin.cpp \
121 Thermostats/NoseHoover.cpp \
122 Thermostats/NoThermostat.cpp \
123 Thermostats/Thermostat.cpp \
[ab26c3]124 Thermostats/ThermoStatContainer.cpp \
[194649]125 Thermostats/Woodcock.cpp
[d193a2]126
[194649]127THERMOSTATHEADER = \
128 Thermostats/Berendsen.hpp \
129 Thermostats/GaussianThermostat.hpp \
130 Thermostats/Langevin.hpp \
131 Thermostats/NoseHoover.hpp \
132 Thermostats/NoThermostat.hpp \
133 Thermostats/Thermostat.hpp \
[262ecc]134 Thermostats/ThermoStatContainer.hpp \
[194649]135 Thermostats/Woodcock.hpp
[d193a2]136
[255971]137MOLECUILDERSOURCE = \
[129204]138 ${BONDSOURCE} \
[efc3cb]139 ${DESCRIPTORSOURCE} \
[9e23a3]140 ${DYNAMICSSOURCE} \
[194649]141 ${THERMOSTATSOURCE} \
[87ec81]142 Shapes/ShapeFactory.cpp \
[5e6534]143 AtomIdSet.cpp \
[83c09a]144 Box.cpp \
[dd067a]145 Box_BoundaryConditions.cpp \
[efc3cb]146 config.cpp \
[6f43ab]147 Formula.cpp \
[d3abb1]148 MoleculeLeafClass.cpp \
[efc3cb]149 moleculelist.cpp \
150 molecule.cpp \
151 molecule_geometry.cpp \
152 molecule_graph.cpp \
[112f90]153 UIElements/UIFactory.cpp \
[9cd9ab]154 version.c \
[f649de]155 World.cpp \
156 WorldTime.cpp
[5f612ee]157
[255971]158MOLECUILDERHEADER = \
[129204]159 ${BONDHEADER} \
[efc3cb]160 ${DESCRIPTORHEADER} \
[c42e60]161 ${DESCRIPTORIMPLHEADER} \
[9e23a3]162 ${DYNAMICSHEADER} \
[194649]163 ${THERMOSTATHEADER} \
[87ec81]164 Shapes/ShapeFactory.hpp \
[5e6534]165 AtomIdSet.hpp \
[83c09a]166 Box.hpp \
[dd067a]167 Box_BoundaryConditions.hpp \
[efc3cb]168 config.hpp \
[6f43ab]169 Formula.hpp \
[3e4fb6]170 IdPool.hpp \
171 IdPool_impl.hpp \
[a292f6]172 IdPool_policy.hpp \
[d3abb1]173 MoleculeLeafClass.hpp \
[262ecc]174 MoleculeListClass.hpp \
[efc3cb]175 molecule.hpp \
[36f507]176 types.hpp \
[112f90]177 UIElements/UIFactory.hpp \
[9cd9ab]178 version.h \
[6bb605]179 World.hpp \
[8544a33]180 World_calculations.hpp \
[f649de]181 WorldTime.hpp
[3027f8]182
[748fc7]183lib_LTLIBRARIES += libMolecuilder.la
[e5bf2b]184libMolecuilder_la_includedir = $(includedir)/MoleCuilder/
[353326]185libMolecuilder_la_LDFLAGS = \
186 $(AM_LDFLAGS) \
187 $(CodePatterns_LDFLAGS) \
188 $(BOOST_SYSTEM_LDFLAGS) \
189 $(BOOST_THREAD_LDFLAGS)
190libMolecuilder_la_LIBADD = \
[fec597]191 libMolecuilderTesselation.la \
[353326]192 libMolecuilderShapes.la \
[748fc7]193 libMolecuilderHelpers.la \
[353326]194 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
195 ${CodePatterns_LIBS} \
196 $(BOOST_SERIALIZATION_LIBS) \
197 $(BOOST_PROGRAM_OPTIONS_LIBS) \
198 $(BOOST_FILESYSTEM_LIBS) \
199 $(BOOST_SYSTEM_LIBS) \
200 $(BOOST_THREAD_LIBS)
[255971]201
[e5bf2b]202nobase_libMolecuilder_la_include_HEADERS = ${MOLECUILDERHEADER}
[255971]203
204## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
205## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
206## will therefore be treated as if it were literally part of the target name,
207## and the variable name derived from that.
208## The file extension .cc is recognized by Automake, and makes it produce
209## rules which invoke the C++ compiler to produce a libtool object file (.lo)
210## from each source file. Note that it is not necessary to list header files
211## which are already listed elsewhere in a _HEADERS variable assignment.
[9cd9ab]212libMolecuilder_la_SOURCES = ${MOLECUILDERSOURCE}
[255971]213
214## Instruct libtool to include ABI version information in the generated shared
215## library file (.so). The library ABI version is defined in configure.ac, so
216## that all version information is kept in one place.
[748fc7]217libMolecuilder_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
[255971]218
219## The generated configuration header is installed in its own subdirectory of
220## $(libdir). The reason for this is that the configuration information put
221## into this header file describes the target platform the installed library
222## has been built for. Thus the file must not be installed into a location
223## intended for architecture-independent files, as defined by the Filesystem
224## Hierarchy Standard (FHS).
225## The nodist_ prefix instructs Automake to not generate rules for including
226## the listed files in the distribution on 'make dist'. Files that are listed
227## in _HEADERS variables are normally included in the distribution, but the
228## configuration header file is generated at configure time and should not be
229## shipped with the source tarball.
[e5bf2b]230libMolecuilder_la_libincludedir = $(libdir)/MoleCuilder/include
231nodist_libMolecuilder_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
[255971]232
233## Install the generated pkg-config file (.pc) into the expected location for
234## architecture-dependent package configuration information. Occasionally,
235## pkg-config files are also used for architecture-independent data packages,
236## in which case the correct install location would be $(datadir)/pkgconfig.
237pkgconfigdir = $(libdir)/pkgconfig
[acbe1b]238pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
[255971]239
[748fc7]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
[ef9df36]268
[2e584e]269bin_PROGRAMS += molecuilder
[796aa6]270EXTRA_PROGRAMS = unity
[04488a]271
[b1d8092]272
[936a02]273extrastuffdir = $(datadir)/@PACKAGE@/data
274databasedir = $(extrastuffdir)/databases
275database_DATA = \
276 ${top_srcdir}/data/databases/*.db
277
278bondtabledir = $(extrastuffdir)/bondtables
279bondtable_DATA = \
280 ${top_srcdir}/data/bondtables/*.dat
[b1d8092]281
[936a02]282moleculedir = $(extrastuffdir)/molecules
283molecule_DATA = \
284 ${top_srcdir}/data/molecules/*.pdb
[b1d8092]285
[c015b3]286if CONDPYTHON
[693a80]287pyexec_LTLIBRARIES += pyMoleCuilder.la
[949953]288pyMoleCuilder_la_SOURCES = \
289 cleanUp.cpp \
290 cleanUp.hpp \
[48d3c0]291 Actions/Action_impl_python.hpp \
292 Actions/GlobalListOfActions.hpp \
[cc6e5c]293 Actions/ActionHistory.hpp
[3b35e7]294pyMoleCuilder_la_CPPFLAGS = $(AM_CPPFLAGS) ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} $(JobMarket_CFLAGS) -I$(PYTHON_INCLUDE_DIR)
[785218]295pyMoleCuilder_la_LDFLAGS = -module -avoid-version -shared $(BOOST_PYTHON_LDFLAGS)
[693a80]296pyMoleCuilder_la_LIBADD = \
[eb0d77]297 libMolecuilderUI.la
298pyMoleCuilder_la_LIBADD += \
[785218]299 $(BOOST_PYTHON_LIBS) \
[693a80]300 ${CodePatterns_LIBS} \
301 -l$(PYTHON_LIB)
[c015b3]302endif
[693a80]303
[715085]304
[7e3f11a]305
[14de8e1]306molecuilder_CPPFLAGS = $(AM_CPPFLAGS)
307#molecuilder_CPPFLAGS += -DNO_CACHING
308molecuilder_LDFLAGS = \
309 $(AM_LDFLAGS) \
[748fc7]310 $(CodePatterns_LDFLAGS) \
[14de8e1]311 $(BOOST_FILESYSTEM_LDFLAGS) \
312 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
313 $(BOOST_RANDOM_LDFLAGS) \
314 $(BOOST_SYSTEM_LDFLAGS) \
315 $(BOOST_THREAD_LDFLAGS)
[949953]316molecuilder_SOURCES = \
317 builder.cpp \
318 builder_init.cpp \
[748fc7]319 builder_init.hpp \
320 Python/PythonScripting.hpp
[952f38]321molecuilder_LDADD = \
[748fc7]322 libMolecuilder.la \
[eb0d77]323 libMolecuilderUI.la
324molecuilder_LDADD += \
[a0064e]325 ${CodePatterns_LIBS} \
[79de12]326 $(BOOST_THREAD_LIBS) \
327 $(BOOST_PROGRAM_OPTIONS_LIBS) \
328 $(BOOST_RANDOM_LIBS) \
[37ce5d]329 $(BOOST_FILESYSTEM_LIBS) \
330 $(BOOST_SYSTEM_LIBS)
[14de8e1]331
332if CONDPYTHON
333molecuilder_SOURCES += \
334 Actions/Action_impl_python.hpp \
335 Actions/GlobalListOfActions.hpp
336molecuilder_CPPFLAGS += -I$(PYTHON_INCLUDE_DIR)
337molecuilder_LDFLAGS += $(BOOST_PYTHON_LDFLAGS)
338molecuilder_LDADD += \
339 $(BOOST_PYTHON_LIBS) \
340 ${CodePatterns_LIBS} \
341 -l$(PYTHON_LIB)
342endif
[b1d8092]343
[4cf323d]344#Stuff for building the GUI using Qt
[c015b3]345if CONDQTGUI
346bin_PROGRAMS += molecuildergui
[949953]347molecuildergui_SOURCES = \
348 builder.cpp \
349 builder_init.cpp \
350 builder_init.hpp \
[7e3f11a]351 Python/PythonScripting.hpp
[14de8e1]352molecuildergui_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_GUI_QT
353molecuildergui_LDFLAGS = \
354 $(AM_LDFLAGS) \
355 $(BOOST_FILESYSTEM_LDFLAGS) \
356 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
357 $(BOOST_SYSTEM_LDFLAGS) \
358 $(BOOST_THREAD_LDFLAGS)
[952f38]359molecuildergui_LDADD = \
[748fc7]360 libMolecuilder.la \
[455573]361 libMolecuilderQtUI.la \
[eb0d77]362 libMolecuilderUI.la
363molecuildergui_LDADD += \
[a0064e]364 ${CodePatterns_LIBS} \
[79de12]365 $(BOOST_THREAD_LIBS) \
366 $(BOOST_PROGRAM_OPTIONS_LIBS) \
367 $(BOOST_RANDOM_LIBS) \
368 $(BOOST_FILESYSTEM_LIBS) \
[37ce5d]369 $(BOOST_SYSTEM_LIBS) \
[455573]370 $(GUI_LIBS)
[14de8e1]371
372if CONDPYTHON
373molecuildergui_SOURCES += \
374 Actions/Action_impl_python.hpp \
375 Actions/GlobalListOfActions.hpp
376molecuildergui_CPPFLAGS += -I$(PYTHON_INCLUDE_DIR)
377molecuildergui_LDFLAGS += $(BOOST_PYTHON_LDFLAGS)
378molecuildergui_LDADD += \
379 $(BOOST_PYTHON_LIBS) \
380 ${CodePatterns_LIBS} \
381 -l$(PYTHON_LIB)
382endif
383
[c015b3]384endif
[b1d8092]385
[004d5c]386if CONDJOBMARKET
[cc5db5]387CONTROLLERSOURCE = \
[fd4d5e]388 controller_MPQCCommandJob.cpp \
[7da5cd]389 ControllerOptions_MPQCCommandJob.cpp
[cc5db5]390
391CONTROLLERHEADER = \
[fd4d5e]392 controller_MPQCCommandJob.hpp \
[7da5cd]393 ControllerOptions_MPQCCommandJob.hpp
394
[fd4d5e]395
396noinst_LTLIBRARIES += libFragmentationAutomationController.la
397libFragmentationAutomationController_la_includedir = $(includedir)/MoleCuilder/JobMarket
398nobase_libFragmentationAutomationController_la_include_HEADERS = $(CONTROLLERHEADER)
399libFragmentationAutomationController_la_SOURCES = $(CONTROLLERSOURCE)
[004d5c]400 libFragmentationAutomationController_la_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
[fd4d5e]401libFragmentationAutomationController_la_LIBADD = \
[004d5c]402 ${JobMarket_Controller_LIBS} \
403 $(JobMarket_LIBS)
[cc5db5]404
[fd4d5e]405bin_PROGRAMS += Controller PoolWorker Server
406
[7da5cd]407Controller_SOURCES = controller.cpp controller_AddOn_MPQCCommandJob.cpp
[4d4ef8]408Controller_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
[14de8e1]409Controller_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
[cc5db5]410Controller_LDADD = \
[7da5cd]411 libFragmentationAutomationController.la \
[fe0355]412 libMolecuilderFragmentation_getFromKeysetStub.la \
[a10cc0]413 libMolecuilderFragmentation.la \
[049d4a]414 libMolecuilderJobs.la \
415 libMolecuilderFragmentationSummation.la \
[353326]416 libMolecuilderFragmentation_KeysetsContainer.la \
[a10cc0]417 libMolecuilderHelpers.la \
[004d5c]418 $(JobMarket_Controller_LIBS) \
419 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
[4d4ef8]420 $(BOOST_SERIALIZATION_LIBS) \
[7da5cd]421 $(BOOST_PROGRAM_OPTIONS_LIBS) \
422 ${CodePatterns_LIBS}
[fd4d5e]423
[7da5cd]424PoolWorker_SOURCES = poolworker.cpp
[4d4ef8]425PoolWorker_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
[14de8e1]426PoolWorker_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
[cc5db5]427PoolWorker_LDADD = \
[004d5c]428 libMolecuilderJobs.la \
[fbf143]429 libMolecuilderFragmentationSummation.la \
[004d5c]430 ${JobMarket_PoolWorker_LIBS} \
431 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
[4d4ef8]432 $(BOOST_SERIALIZATION_LIBS) \
433 $(BOOST_PROGRAM_OPTIONS_LIBS) \
[7da5cd]434 ${CodePatterns_LIBS}
[fd4d5e]435
[7da5cd]436Server_SOURCES = Server.cpp
[4d4ef8]437Server_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
[14de8e1]438Server_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
[cc5db5]439Server_LDADD = \
[004d5c]440 libMolecuilderJobs.la \
[fbf143]441 libMolecuilderFragmentationSummation.la \
[004d5c]442 ${JobMarket_Server_LIBS} \
443 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
[4d4ef8]444 $(BOOST_SERIALIZATION_LIBS) \
445 $(BOOST_PROGRAM_OPTIONS_LIBS) \
[7da5cd]446 ${CodePatterns_LIBS}
[004d5c]447endif
[cc5db5]448
[455573]449unity_SOURCES = unity.cpp
[14de8e1]450unity_CPPFLAGS = $(AM_CPPFLAGS)
[3b5fca]451unity_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
[79de12]452unity_LDADD = \
453 ${CodePatterns_LIBS} \
454 $(BOOST_THREAD_LIBS) \
455 $(BOOST_PROGRAM_OPTIONS_LIBS) \
456 $(BOOST_RANDOM_LIBS) \
[37ce5d]457 $(BOOST_FILESYSTEM_LIBS) \
458 $(BOOST_SYSTEM_LIBS)
[455573]459
[65b6e0]460
[a8eb4a]461FORCE:
462$(srcdir)/.git-version: FORCE
[f8be39]463 @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
464 && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
[a8eb4a]465 && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
466 mv -f .git-version-t $(srcdir)/.git-version; \
467 else \
468 rm -f .git-version-t; \
469 fi
470
[fd4d5e]471EXTRA_DIST += \
[936a02]472 $(srcdir)/.git-version \
473 $(bondtable_DATA) \
474 $(database_DATA) \
475 $(molecule_DATA)
[a8eb4a]476
477$(srcdir)/version.c: $(srcdir)/.git-version
[5f8660a]478 echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
[a8eb4a]479
[b8d1aeb]480
[d223d5]481unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
482 list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
[b0b086]483 echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
[d223d5]484 done; \
485 subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
486 olddir=$$PWD;\
487 cd $$directory && make unity.cpp;\
488 cd $$olddir;\
489 echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
490 done;\
491 echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
492 echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
493
[455573]494MOSTLYCLEANFILES += unity.cpp
[1ee3b8d]495
Note: See TracBrowser for help on using the repository browser.