source: src/Makefile.am@ 95c4e2

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 95c4e2 was 7e3f11a, checked in by Frederik Heber <heber@…>, 12 years ago

Moved PythonScripting into own folder and created convenience library.

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