source: src/Makefile.am@ e5f61ba

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 e5f61ba was 1a48d2, checked in by Frederik Heber <heber@…>, 11 years ago

Added ForceAnnealingAction.

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