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