source: src/Makefile.am@ 343401

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

Moved ConvertDataTo and ..SumUpPerLevel into distinct header files.

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