source: src/Makefile.am@ 6bb72a

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

Added general interface EmpiricalPotential and a first potential, the harmonic pair potential.

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