source: src/Makefile.am@ d4ba3f

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

Extracted common code out of Molecule/AtomObserver into EntityObserver.

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