source: src/Makefile.am@ fae462

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 fae462 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
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/AtomOfMoleculeDescriptor.cpp \
46 Descriptors/AtomOfMoleculeSelectionDescriptor.cpp \
47 Descriptors/AtomOrderDescriptor.cpp \
48 Descriptors/AtomSelectionDescriptor.cpp \
49 Descriptors/AtomShapeDescriptor.cpp \
50 Descriptors/AtomTypeDescriptor.cpp \
51 Descriptors/AtomsWithinDistanceOfDescriptor.cpp \
52 Descriptors/MoleculeDescriptor.cpp \
53 Descriptors/MoleculeFormulaDescriptor.cpp \
54 Descriptors/MoleculeIdDescriptor.cpp \
55 Descriptors/MoleculeNameDescriptor.cpp \
56 Descriptors/MoleculeOfAtomSelectionDescriptor.cpp \
57 Descriptors/MoleculeOrderDescriptor.cpp \
58 Descriptors/MoleculePtrDescriptor.cpp \
59 Descriptors/MoleculeSelectionDescriptor.cpp
60
61
62DESCRIPTORHEADER = \
63 Descriptors/AtomDescriptor.hpp \
64 Descriptors/AtomIdDescriptor.hpp \
65 Descriptors/AtomOfMoleculeDescriptor.hpp \
66 Descriptors/AtomOfMoleculeSelectionDescriptor.hpp \
67 Descriptors/AtomOrderDescriptor.hpp \
68 Descriptors/AtomSelectionDescriptor.hpp \
69 Descriptors/AtomShapeDescriptor.hpp \
70 Descriptors/AtomTypeDescriptor.hpp \
71 Descriptors/AtomsWithinDistanceOfDescriptor.hpp \
72 Descriptors/DescriptorBase.hpp \
73 Descriptors/MoleculeDescriptor.hpp \
74 Descriptors/MoleculeFormulaDescriptor.hpp \
75 Descriptors/MoleculeIdDescriptor.hpp \
76 Descriptors/MoleculeNameDescriptor.hpp \
77 Descriptors/MoleculeOfAtomSelectionDescriptor.hpp \
78 Descriptors/MoleculeOrderDescriptor.hpp \
79 Descriptors/MoleculePtrDescriptor.hpp \
80 Descriptors/MoleculeSelectionDescriptor.hpp \
81 Descriptors/SelectiveConstIterator.hpp \
82 Descriptors/SelectiveIterator.hpp
83
84DESCRIPTORIMPLHEADER = \
85 Descriptors/AtomDescriptor_impl.hpp \
86 Descriptors/AtomIdDescriptor_impl.hpp \
87 Descriptors/AtomOfMoleculeDescriptor_impl.hpp \
88 Descriptors/AtomOfMoleculeSelectionDescriptor_impl.hpp \
89 Descriptors/AtomOrderDescriptor_impl.hpp \
90 Descriptors/AtomSelectionDescriptor_impl.hpp \
91 Descriptors/AtomShapeDescriptor_impl.hpp \
92 Descriptors/AtomTypeDescriptor_impl.hpp \
93 Descriptors/AtomsWithinDistanceOfDescriptor_impl.hpp \
94 Descriptors/DescriptorBase_impl.hpp \
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 \
102 Descriptors/MoleculeSelectionDescriptor_impl.hpp \
103 Descriptors/SelectiveConstIterator_impl.hpp \
104 Descriptors/SelectiveIterator_impl.hpp
105
106DYNAMICSSOURCE = \
107 Dynamics/MinimiseConstrainedPotential.cpp
108
109DYNAMICSHEADER = \
110 Dynamics/AtomicForceManipulator.hpp \
111 Dynamics/ForceAnnealing.hpp \
112 Dynamics/LinearInterpolationBetweenSteps.hpp \
113 Dynamics/MinimiseConstrainedPotential.hpp \
114 Dynamics/OutputTemperature.hpp \
115 Dynamics/VerletForceIntegration.hpp
116
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 \
124 Thermostats/ThermoStatContainer.cpp \
125 Thermostats/Woodcock.cpp
126
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 \
134 Thermostats/ThermoStatContainer.hpp \
135 Thermostats/Woodcock.hpp
136
137MOLECUILDERSOURCE = \
138 ${BONDSOURCE} \
139 ${DESCRIPTORSOURCE} \
140 ${DYNAMICSSOURCE} \
141 ${THERMOSTATSOURCE} \
142 Shapes/ShapeFactory.cpp \
143 AtomIdSet.cpp \
144 Box.cpp \
145 Box_BoundaryConditions.cpp \
146 config.cpp \
147 Formula.cpp \
148 MoleculeLeafClass.cpp \
149 moleculelist.cpp \
150 molecule.cpp \
151 molecule_geometry.cpp \
152 molecule_graph.cpp \
153 UIElements/UIFactory.cpp \
154 version.c \
155 World.cpp \
156 WorldTime.cpp
157
158MOLECUILDERHEADER = \
159 ${BONDHEADER} \
160 ${DESCRIPTORHEADER} \
161 ${DESCRIPTORIMPLHEADER} \
162 ${DYNAMICSHEADER} \
163 ${THERMOSTATHEADER} \
164 Shapes/ShapeFactory.hpp \
165 AtomIdSet.hpp \
166 Box.hpp \
167 Box_BoundaryConditions.hpp \
168 config.hpp \
169 Formula.hpp \
170 IdPool.hpp \
171 IdPool_impl.hpp \
172 IdPool_policy.hpp \
173 MoleculeLeafClass.hpp \
174 MoleculeListClass.hpp \
175 molecule.hpp \
176 types.hpp \
177 UIElements/UIFactory.hpp \
178 version.h \
179 World.hpp \
180 World_calculations.hpp \
181 WorldTime.hpp
182
183lib_LTLIBRARIES += libMolecuilder.la
184libMolecuilder_la_includedir = $(includedir)/MoleCuilder/
185libMolecuilder_la_LDFLAGS = \
186 $(AM_LDFLAGS) \
187 $(CodePatterns_LDFLAGS) \
188 $(BOOST_SYSTEM_LDFLAGS) \
189 $(BOOST_THREAD_LDFLAGS)
190libMolecuilder_la_LIBADD = \
191 libMolecuilderTesselation.la \
192 libMolecuilderShapes.la \
193 libMolecuilderHelpers.la \
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)
201
202nobase_libMolecuilder_la_include_HEADERS = ${MOLECUILDERHEADER}
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.
212libMolecuilder_la_SOURCES = ${MOLECUILDERSOURCE}
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.
217libMolecuilder_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
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.
230libMolecuilder_la_libincludedir = $(libdir)/MoleCuilder/include
231nodist_libMolecuilder_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
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
238pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
239
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
268
269bin_PROGRAMS += molecuilder
270EXTRA_PROGRAMS = unity
271
272
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
281
282moleculedir = $(extrastuffdir)/molecules
283molecule_DATA = \
284 ${top_srcdir}/data/molecules/*.pdb
285
286if CONDPYTHON
287pyexec_LTLIBRARIES += pyMoleCuilder.la
288pyMoleCuilder_la_SOURCES = \
289 cleanUp.cpp \
290 cleanUp.hpp \
291 Actions/Action_impl_python.hpp \
292 Actions/GlobalListOfActions.hpp \
293 Actions/ActionHistory.hpp
294pyMoleCuilder_la_CPPFLAGS = $(AM_CPPFLAGS) ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} $(JobMarket_CFLAGS) -I$(PYTHON_INCLUDE_DIR)
295pyMoleCuilder_la_LDFLAGS = -module -avoid-version -shared $(BOOST_PYTHON_LDFLAGS)
296pyMoleCuilder_la_LIBADD = \
297 libMolecuilderUI.la
298pyMoleCuilder_la_LIBADD += \
299 $(BOOST_PYTHON_LIBS) \
300 ${CodePatterns_LIBS} \
301 -l$(PYTHON_LIB)
302endif
303
304
305
306molecuilder_CPPFLAGS = $(AM_CPPFLAGS)
307#molecuilder_CPPFLAGS += -DNO_CACHING
308molecuilder_LDFLAGS = \
309 $(AM_LDFLAGS) \
310 $(CodePatterns_LDFLAGS) \
311 $(BOOST_FILESYSTEM_LDFLAGS) \
312 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
313 $(BOOST_RANDOM_LDFLAGS) \
314 $(BOOST_SYSTEM_LDFLAGS) \
315 $(BOOST_THREAD_LDFLAGS)
316molecuilder_SOURCES = \
317 builder.cpp \
318 builder_init.cpp \
319 builder_init.hpp \
320 Python/PythonScripting.hpp
321molecuilder_LDADD = \
322 libMolecuilder.la \
323 libMolecuilderUI.la
324molecuilder_LDADD += \
325 ${CodePatterns_LIBS} \
326 $(BOOST_THREAD_LIBS) \
327 $(BOOST_PROGRAM_OPTIONS_LIBS) \
328 $(BOOST_RANDOM_LIBS) \
329 $(BOOST_FILESYSTEM_LIBS) \
330 $(BOOST_SYSTEM_LIBS)
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
343
344#Stuff for building the GUI using Qt
345if CONDQTGUI
346bin_PROGRAMS += molecuildergui
347molecuildergui_SOURCES = \
348 builder.cpp \
349 builder_init.cpp \
350 builder_init.hpp \
351 Python/PythonScripting.hpp
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)
359molecuildergui_LDADD = \
360 libMolecuilder.la \
361 libMolecuilderQtUI.la \
362 libMolecuilderUI.la
363molecuildergui_LDADD += \
364 ${CodePatterns_LIBS} \
365 $(BOOST_THREAD_LIBS) \
366 $(BOOST_PROGRAM_OPTIONS_LIBS) \
367 $(BOOST_RANDOM_LIBS) \
368 $(BOOST_FILESYSTEM_LIBS) \
369 $(BOOST_SYSTEM_LIBS) \
370 $(GUI_LIBS)
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
384endif
385
386if CONDJOBMARKET
387CONTROLLERSOURCE = \
388 controller_MPQCCommandJob.cpp \
389 ControllerOptions_MPQCCommandJob.cpp
390
391CONTROLLERHEADER = \
392 controller_MPQCCommandJob.hpp \
393 ControllerOptions_MPQCCommandJob.hpp
394
395
396noinst_LTLIBRARIES += libFragmentationAutomationController.la
397libFragmentationAutomationController_la_includedir = $(includedir)/MoleCuilder/JobMarket
398nobase_libFragmentationAutomationController_la_include_HEADERS = $(CONTROLLERHEADER)
399libFragmentationAutomationController_la_SOURCES = $(CONTROLLERSOURCE)
400 libFragmentationAutomationController_la_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
401libFragmentationAutomationController_la_LIBADD = \
402 ${JobMarket_Controller_LIBS} \
403 $(JobMarket_LIBS)
404
405bin_PROGRAMS += Controller PoolWorker Server
406
407Controller_SOURCES = controller.cpp controller_AddOn_MPQCCommandJob.cpp
408Controller_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
409Controller_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
410Controller_LDADD = \
411 libFragmentationAutomationController.la \
412 libMolecuilderFragmentation_getFromKeysetStub.la \
413 libMolecuilderFragmentation.la \
414 libMolecuilderJobs.la \
415 libMolecuilderFragmentationSummation.la \
416 libMolecuilderFragmentation_KeysetsContainer.la \
417 libMolecuilderHelpers.la \
418 $(JobMarket_Controller_LIBS) \
419 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
420 $(BOOST_SERIALIZATION_LIBS) \
421 $(BOOST_PROGRAM_OPTIONS_LIBS) \
422 ${CodePatterns_LIBS}
423
424PoolWorker_SOURCES = poolworker.cpp
425PoolWorker_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
426PoolWorker_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
427PoolWorker_LDADD = \
428 libMolecuilderJobs.la \
429 libMolecuilderFragmentationSummation.la \
430 ${JobMarket_PoolWorker_LIBS} \
431 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
432 $(BOOST_SERIALIZATION_LIBS) \
433 $(BOOST_PROGRAM_OPTIONS_LIBS) \
434 ${CodePatterns_LIBS}
435
436Server_SOURCES = Server.cpp
437Server_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
438Server_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
439Server_LDADD = \
440 libMolecuilderJobs.la \
441 libMolecuilderFragmentationSummation.la \
442 ${JobMarket_Server_LIBS} \
443 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
444 $(BOOST_SERIALIZATION_LIBS) \
445 $(BOOST_PROGRAM_OPTIONS_LIBS) \
446 ${CodePatterns_LIBS}
447endif
448
449unity_SOURCES = unity.cpp
450unity_CPPFLAGS = $(AM_CPPFLAGS)
451unity_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
452unity_LDADD = \
453 ${CodePatterns_LIBS} \
454 $(BOOST_THREAD_LIBS) \
455 $(BOOST_PROGRAM_OPTIONS_LIBS) \
456 $(BOOST_RANDOM_LIBS) \
457 $(BOOST_FILESYSTEM_LIBS) \
458 $(BOOST_SYSTEM_LIBS)
459
460
461FORCE:
462$(srcdir)/.git-version: FORCE
463 @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
464 && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
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
471EXTRA_DIST += \
472 $(srcdir)/.git-version \
473 $(bondtable_DATA) \
474 $(database_DATA) \
475 $(molecule_DATA)
476
477$(srcdir)/version.c: $(srcdir)/.git-version
478 echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
479
480
481unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
482 list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
483 echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
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
494MOSTLYCLEANFILES += unity.cpp
495
Note: See TracBrowser for help on using the repository browser.