source: src/Makefile.am@ 3aa204

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes
Last change on this file since 3aa204 was 7672284, checked in by Frederik Heber <heber@…>, 8 years ago

FIX: install target now works with multiple threads.

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