source: src/Makefile.am@ c8f12e

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 v1.3.7
Last change on this file since c8f12e was ffe057, checked in by Frederik Heber <heber@…>, 12 years ago

Added SpecificFragmentController and subclasses that contain functions to add type-specific jobs.

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