source: src/Makefile.am@ 51cdfd

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 51cdfd was 51cdfd, checked in by Frederik Heber <heber@…>, 10 years ago

Extracted common functions from VerletForceIntegration into AtomicForceManipulator.

  • 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 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/LinearInterpolationBetweenSteps.hpp \
126 Dynamics/MinimiseConstrainedPotential.hpp \
127 Dynamics/OutputTemperature.hpp \
128 Dynamics/VerletForceIntegration.hpp
129
130THERMOSTATSOURCE = \
131 Thermostats/Berendsen.cpp \
132 Thermostats/GaussianThermostat.cpp \
133 Thermostats/Langevin.cpp \
134 Thermostats/NoseHoover.cpp \
135 Thermostats/NoThermostat.cpp \
136 Thermostats/Thermostat.cpp \
137 Thermostats/ThermoStatContainer.cpp \
138 Thermostats/Woodcock.cpp
139
140THERMOSTATHEADER = \
141 Thermostats/Berendsen.hpp \
142 Thermostats/GaussianThermostat.hpp \
143 Thermostats/Langevin.hpp \
144 Thermostats/NoseHoover.hpp \
145 Thermostats/NoThermostat.hpp \
146 Thermostats/Thermostat.hpp \
147 Thermostats/ThermoStatContainer.hpp \
148 Thermostats/Woodcock.hpp
149
150MOLECUILDERSOURCE = \
151 ${BONDSOURCE} \
152 ${DESCRIPTORSOURCE} \
153 ${DYNAMICSSOURCE} \
154 ${THERMOSTATSOURCE} \
155 Shapes/ShapeFactory.cpp \
156 AtomIdSet.cpp \
157 Box.cpp \
158 Box_BoundaryConditions.cpp \
159 config.cpp \
160 Formula.cpp \
161 MoleculeLeafClass.cpp \
162 moleculelist.cpp \
163 molecule.cpp \
164 molecule_geometry.cpp \
165 molecule_graph.cpp \
166 UIElements/UIFactory.cpp \
167 version.c \
168 World.cpp \
169 WorldTime.cpp
170
171MOLECUILDERHEADER = \
172 ${BONDHEADER} \
173 ${DESCRIPTORHEADER} \
174 ${DESCRIPTORIMPLHEADER} \
175 ${DYNAMICSHEADER} \
176 ${THERMOSTATHEADER} \
177 Shapes/ShapeFactory.hpp \
178 AtomIdSet.hpp \
179 Box.hpp \
180 Box_BoundaryConditions.hpp \
181 config.hpp \
182 Formula.hpp \
183 IdPool.hpp \
184 IdPool_impl.hpp \
185 IdPool_policy.hpp \
186 MoleculeLeafClass.hpp \
187 MoleculeListClass.hpp \
188 molecule.hpp \
189 types.hpp \
190 UIElements/UIFactory.hpp \
191 version.h \
192 World.hpp \
193 World_calculations.hpp \
194 WorldTime.hpp
195
196noinst_LTLIBRARIES += libMolecuilder.la
197libMolecuilder_la_includedir = $(includedir)/MoleCuilder/
198libMolecuilder_la_LDFLAGS = \
199 $(AM_LDFLAGS) \
200 $(CodePatterns_LDFLAGS) \
201 $(BOOST_SYSTEM_LDFLAGS) \
202 $(BOOST_THREAD_LDFLAGS)
203libMolecuilder_la_LIBADD = \
204 libMolecuilderTesselation.la \
205 libMolecuilderShapes.la \
206 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
207 ${CodePatterns_LIBS} \
208 $(BOOST_SERIALIZATION_LIBS) \
209 $(BOOST_PROGRAM_OPTIONS_LIBS) \
210 $(BOOST_FILESYSTEM_LIBS) \
211 $(BOOST_SYSTEM_LIBS) \
212 $(BOOST_THREAD_LIBS)
213
214nobase_libMolecuilder_la_include_HEADERS = ${MOLECUILDERHEADER}
215
216## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
217## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
218## will therefore be treated as if it were literally part of the target name,
219## and the variable name derived from that.
220## The file extension .cc is recognized by Automake, and makes it produce
221## rules which invoke the C++ compiler to produce a libtool object file (.lo)
222## from each source file. Note that it is not necessary to list header files
223## which are already listed elsewhere in a _HEADERS variable assignment.
224libMolecuilder_la_SOURCES = ${MOLECUILDERSOURCE}
225
226## Instruct libtool to include ABI version information in the generated shared
227## library file (.so). The library ABI version is defined in configure.ac, so
228## that all version information is kept in one place.
229#libMolecuilder_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
230
231## The generated configuration header is installed in its own subdirectory of
232## $(libdir). The reason for this is that the configuration information put
233## into this header file describes the target platform the installed library
234## has been built for. Thus the file must not be installed into a location
235## intended for architecture-independent files, as defined by the Filesystem
236## Hierarchy Standard (FHS).
237## The nodist_ prefix instructs Automake to not generate rules for including
238## the listed files in the distribution on 'make dist'. Files that are listed
239## in _HEADERS variables are normally included in the distribution, but the
240## configuration header file is generated at configure time and should not be
241## shipped with the source tarball.
242libMolecuilder_la_libincludedir = $(libdir)/MoleCuilder/include
243nodist_libMolecuilder_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
244
245## Install the generated pkg-config file (.pc) into the expected location for
246## architecture-dependent package configuration information. Occasionally,
247## pkg-config files are also used for architecture-independent data packages,
248## in which case the correct install location would be $(datadir)/pkgconfig.
249pkgconfigdir = $(libdir)/pkgconfig
250pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
251
252
253INCLUDES = \
254 -I$(top_srcdir)/src/unittests \
255 -I$(top_srcdir)/src/Actions \
256 -I$(top_srcdir)/src/UIElements \
257 -I$(top_srcdir)/LinearAlgebra/src
258
259bin_PROGRAMS += molecuilder
260EXTRA_PROGRAMS = unity
261
262
263extrastuffdir = $(datadir)/@PACKAGE@/data
264databasedir = $(extrastuffdir)/databases
265database_DATA = \
266 ${top_srcdir}/data/databases/*.db
267
268bondtabledir = $(extrastuffdir)/bondtables
269bondtable_DATA = \
270 ${top_srcdir}/data/bondtables/*.dat
271
272moleculedir = $(extrastuffdir)/molecules
273molecule_DATA = \
274 ${top_srcdir}/data/molecules/*.pdb
275
276if CONDPYTHON
277pyexec_LTLIBRARIES += pyMoleCuilder.la
278pyMoleCuilder_la_SOURCES = \
279 cleanUp.cpp \
280 cleanUp.hpp \
281 Actions/Action_impl_python.hpp \
282 Actions/GlobalListOfActions.hpp \
283 Actions/ActionHistory.hpp
284pyMoleCuilder_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} $(JobMarket_CFLAGS) -I$(PYTHON_INCLUDE_DIR)
285pyMoleCuilder_la_LDFLAGS = -module -avoid-version -shared $(BOOST_PYTHON_LDFLAGS)
286pyMoleCuilder_la_LIBADD = \
287 libMolecuilderUI.la
288pyMoleCuilder_la_LIBADD += \
289 $(BOOST_PYTHON_LIBS) \
290 ${CodePatterns_LIBS} \
291 -l$(PYTHON_LIB)
292endif
293
294
295
296molecuilder_CPPFLAGS = $(AM_CPPFLAGS)
297#molecuilder_CPPFLAGS += -DNO_CACHING
298molecuilder_LDFLAGS = \
299 $(AM_LDFLAGS) \
300 $(BOOST_FILESYSTEM_LDFLAGS) \
301 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
302 $(BOOST_RANDOM_LDFLAGS) \
303 $(BOOST_SYSTEM_LDFLAGS) \
304 $(BOOST_THREAD_LDFLAGS)
305molecuilder_SOURCES = \
306 builder.cpp \
307 builder_init.cpp \
308 builder_init.hpp
309molecuilder_LDADD = \
310 libMolecuilderUI.la
311molecuilder_LDADD += \
312 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
313 ${CodePatterns_LIBS} \
314 $(BOOST_THREAD_LIBS) \
315 $(BOOST_PROGRAM_OPTIONS_LIBS) \
316 $(BOOST_RANDOM_LIBS) \
317 $(BOOST_FILESYSTEM_LIBS) \
318 $(BOOST_SYSTEM_LIBS)
319
320if CONDPYTHON
321molecuilder_SOURCES += \
322 Actions/Action_impl_python.hpp \
323 Actions/GlobalListOfActions.hpp
324molecuilder_CPPFLAGS += -I$(PYTHON_INCLUDE_DIR)
325molecuilder_LDFLAGS += $(BOOST_PYTHON_LDFLAGS)
326molecuilder_LDADD += \
327 $(BOOST_PYTHON_LIBS) \
328 ${CodePatterns_LIBS} \
329 -l$(PYTHON_LIB)
330endif
331
332#Stuff for building the GUI using Qt
333if CONDQTGUI
334bin_PROGRAMS += molecuildergui
335molecuildergui_SOURCES = \
336 builder.cpp \
337 builder_init.cpp \
338 builder_init.hpp \
339 Python/PythonScripting.hpp
340molecuildergui_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_GUI_QT
341molecuildergui_LDFLAGS = \
342 $(AM_LDFLAGS) \
343 $(BOOST_FILESYSTEM_LDFLAGS) \
344 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
345 $(BOOST_SYSTEM_LDFLAGS) \
346 $(BOOST_THREAD_LDFLAGS)
347molecuildergui_LDADD = \
348 libMolecuilderQtUI.la \
349 libMolecuilderUI.la
350molecuildergui_LDADD += \
351 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
352 ${CodePatterns_LIBS} \
353 $(BOOST_THREAD_LIBS) \
354 $(BOOST_PROGRAM_OPTIONS_LIBS) \
355 $(BOOST_RANDOM_LIBS) \
356 $(BOOST_FILESYSTEM_LIBS) \
357 $(BOOST_SYSTEM_LIBS) \
358 $(GUI_LIBS)
359
360if CONDPYTHON
361molecuildergui_SOURCES += \
362 Actions/Action_impl_python.hpp \
363 Actions/GlobalListOfActions.hpp
364molecuildergui_CPPFLAGS += -I$(PYTHON_INCLUDE_DIR)
365molecuildergui_LDFLAGS += $(BOOST_PYTHON_LDFLAGS)
366molecuildergui_LDADD += \
367 $(BOOST_PYTHON_LIBS) \
368 ${CodePatterns_LIBS} \
369 -l$(PYTHON_LIB)
370endif
371
372endif
373
374if CONDJOBMARKET
375CONTROLLERSOURCE = \
376 controller_MPQCCommandJob.cpp \
377 ControllerOptions_MPQCCommandJob.cpp
378
379CONTROLLERHEADER = \
380 controller_MPQCCommandJob.hpp \
381 ControllerOptions_MPQCCommandJob.hpp
382
383
384noinst_LTLIBRARIES += libFragmentationAutomationController.la
385libFragmentationAutomationController_la_includedir = $(includedir)/MoleCuilder/JobMarket
386nobase_libFragmentationAutomationController_la_include_HEADERS = $(CONTROLLERHEADER)
387libFragmentationAutomationController_la_SOURCES = $(CONTROLLERSOURCE)
388 libFragmentationAutomationController_la_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
389libFragmentationAutomationController_la_LIBADD = \
390 ${JobMarket_Controller_LIBS} \
391 $(JobMarket_LIBS)
392
393bin_PROGRAMS += Controller PoolWorker Server
394
395Controller_SOURCES = controller.cpp controller_AddOn_MPQCCommandJob.cpp
396Controller_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
397Controller_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
398Controller_LDADD = \
399 libFragmentationAutomationController.la \
400 libMolecuilderFragmentation_getFromKeysetStub.la \
401 libMolecuilderFragmentation.la \
402 libMolecuilderJobs.la \
403 libMolecuilderFragmentationSummation.la \
404 libMolecuilderFragmentation_KeysetsContainer.la \
405 libMolecuilderHelpers.la \
406 $(JobMarket_Controller_LIBS) \
407 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
408 $(BOOST_SERIALIZATION_LIBS) \
409 $(BOOST_PROGRAM_OPTIONS_LIBS) \
410 ${CodePatterns_LIBS}
411
412PoolWorker_SOURCES = poolworker.cpp
413PoolWorker_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
414PoolWorker_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
415PoolWorker_LDADD = \
416 libMolecuilderJobs.la \
417 libMolecuilderFragmentationSummation.la \
418 ${JobMarket_PoolWorker_LIBS} \
419 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
420 $(BOOST_SERIALIZATION_LIBS) \
421 $(BOOST_PROGRAM_OPTIONS_LIBS) \
422 ${CodePatterns_LIBS}
423
424Server_SOURCES = Server.cpp
425Server_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) ${CodePatterns_LDFLAGS}
426Server_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
427Server_LDADD = \
428 libMolecuilderJobs.la \
429 libMolecuilderFragmentationSummation.la \
430 ${JobMarket_Server_LIBS} \
431 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
432 $(BOOST_SERIALIZATION_LIBS) \
433 $(BOOST_PROGRAM_OPTIONS_LIBS) \
434 ${CodePatterns_LIBS}
435endif
436
437unity_SOURCES = unity.cpp
438unity_CPPFLAGS = $(AM_CPPFLAGS)
439unity_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
440unity_LDADD = \
441 ${CodePatterns_LIBS} \
442 $(BOOST_THREAD_LIBS) \
443 $(BOOST_PROGRAM_OPTIONS_LIBS) \
444 $(BOOST_RANDOM_LIBS) \
445 $(BOOST_FILESYSTEM_LIBS) \
446 $(BOOST_SYSTEM_LIBS)
447
448
449FORCE:
450$(srcdir)/.git-version: FORCE
451 @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
452 && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
453 && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
454 mv -f .git-version-t $(srcdir)/.git-version; \
455 else \
456 rm -f .git-version-t; \
457 fi
458
459EXTRA_DIST += \
460 $(srcdir)/.git-version \
461 $(bondtable_DATA) \
462 $(database_DATA) \
463 $(molecule_DATA)
464
465$(srcdir)/version.c: $(srcdir)/.git-version
466 echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
467
468
469unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
470 list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
471 echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
472 done; \
473 subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
474 olddir=$$PWD;\
475 cd $$directory && make unity.cpp;\
476 cd $$olddir;\
477 echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
478 done;\
479 echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
480 echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
481
482MOSTLYCLEANFILES += unity.cpp
483
Note: See TracBrowser for help on using the repository browser.