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