source: src/Makefile.am@ b4f72c

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

FIX: Shared library libMolecuilderJobs needs to be given explicitly where brought in dependently.

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