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