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