source: src/Makefile.am@ e920061

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

libMolecuilderFagmentationSummation is now just a normal convenience library.

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