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