[efc3cb] | 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
| 2 | # Also indentation by a single tab
|
---|
| 3 |
|
---|
[5079a0] | 4 | SUBDIRS = Actions UIElements
|
---|
| 5 |
|
---|
[0a4f7f] | 6 | # this includes source files that need to be present at multiple points
|
---|
[efc3cb] | 7 | HELPERSOURCE = \
|
---|
| 8 | Helpers/Assert.cpp \
|
---|
| 9 | Helpers/MemDebug.cpp
|
---|
[0a4f7f] | 10 |
|
---|
[efc3cb] | 11 | ATOMSOURCE = \
|
---|
| 12 | atom.cpp \
|
---|
| 13 | atom_atominfo.cpp \
|
---|
| 14 | atom_bondedparticle.cpp \
|
---|
| 15 | atom_bondedparticleinfo.cpp \
|
---|
| 16 | atom_graphnode.cpp \
|
---|
| 17 | atom_graphnodeinfo.cpp \
|
---|
| 18 | atom_particleinfo.cpp \
|
---|
| 19 | atom_trajectoryparticle.cpp \
|
---|
| 20 | atom_trajectoryparticleinfo.cpp
|
---|
| 21 | ATOMHEADER = \
|
---|
| 22 | atom.hpp \
|
---|
| 23 | atom_atominfo.hpp \
|
---|
| 24 | atom_bondedparticle.hpp \
|
---|
| 25 | atom_bondedparticleinfo.hpp \
|
---|
| 26 | atom_graphnode.hpp \
|
---|
| 27 | atom_graphnodeinfo.hpp \
|
---|
| 28 | atom_particleinfo.hpp \
|
---|
| 29 | atom_trajectoryparticle.hpp \
|
---|
| 30 | atom_trajectoryparticleinfo.hpp
|
---|
| 31 |
|
---|
| 32 | LINALGSOURCE = \
|
---|
| 33 | ${HELPERSOURCE} \
|
---|
| 34 | gslmatrix.cpp \
|
---|
| 35 | gslvector.cpp \
|
---|
| 36 | linearsystemofequations.cpp \
|
---|
| 37 | Space.cpp \
|
---|
| 38 | vector.cpp
|
---|
[0a4f7f] | 39 |
|
---|
[325390] | 40 | LINALGHEADER = \
|
---|
| 41 | gslmatrix.hpp \
|
---|
[efc3cb] | 42 | gslvector.hpp \
|
---|
| 43 | linearsystemofequations.hpp \
|
---|
| 44 | Space.hpp \
|
---|
| 45 | vector.hpp
|
---|
[0a4f7f] | 46 |
|
---|
[efc3cb] | 47 | ANALYSISSOURCE = \
|
---|
| 48 | analysis_bonds.cpp \
|
---|
| 49 | analysis_correlation.cpp
|
---|
| 50 | ANALYSISHEADER = \
|
---|
| 51 | analysis_bonds.hpp \
|
---|
| 52 | analysis_correlation.hpp
|
---|
[96c961] | 53 |
|
---|
[5079a0] | 54 | ACTIONSSOURCE = \
|
---|
| 55 | Actions/Action.cpp \
|
---|
[efc3cb] | 56 | Actions/ActionHistory.cpp \
|
---|
| 57 | Actions/ActionRegistry.cpp \
|
---|
| 58 | Actions/ActionSequence.cpp \
|
---|
| 59 | Actions/ErrorAction.cpp \
|
---|
| 60 | Actions/MakroAction.cpp \
|
---|
| 61 | Actions/ManipulateAtomsProcess.cpp \
|
---|
| 62 | Actions/MethodAction.cpp \
|
---|
| 63 | Actions/Process.cpp
|
---|
| 64 |
|
---|
[5079a0] | 65 | ACTIONSHEADER = \
|
---|
| 66 | Actions/Action.hpp \
|
---|
[efc3cb] | 67 | Actions/ActionHistory.hpp \
|
---|
| 68 | Actions/ActionRegistry.hpp \
|
---|
| 69 | Actions/ActionSequence.hpp \
|
---|
| 70 | Actions/Calculation.hpp \
|
---|
| 71 | Actions/Calculation_impl.hpp \
|
---|
| 72 | Actions/ErrorAction.hpp \
|
---|
| 73 | Actions/MakroAction.hpp \
|
---|
| 74 | Actions/ManipulateAtomsProcess.hpp \
|
---|
[97ebf8] | 75 | Actions/MapOfActions.hpp \
|
---|
[efc3cb] | 76 | Actions/MethodAction.hpp \
|
---|
| 77 | Actions/Process.hpp
|
---|
[456341] | 78 |
|
---|
| 79 | EXCEPTIONSOURCE = Exceptions/CustomException.cpp \
|
---|
[ab9a27] | 80 | Exceptions/IllegalTypeException.cpp \
|
---|
[456341] | 81 | Exceptions/LinearDependenceException.cpp \
|
---|
| 82 | Exceptions/MathException.cpp \
|
---|
| 83 | Exceptions/NotInvertibleException.cpp \
|
---|
| 84 | Exceptions/SkewException.cpp \
|
---|
| 85 | Exceptions/ZeroVectorException.cpp
|
---|
| 86 |
|
---|
| 87 | EXCEPTIONHEADER = Exceptions/CustomException.hpp \
|
---|
[ab9a27] | 88 | Exceptions/IllegalTypeException.hpp \
|
---|
[456341] | 89 | Exceptions/LinearDependenceException.hpp \
|
---|
| 90 | Exceptions/MathException.hpp \
|
---|
| 91 | Exceptions/NotInvertibleException.hpp \
|
---|
| 92 | Exceptions/SkewException.hpp \
|
---|
| 93 | Exceptions/ZeroVectorException.hpp
|
---|
[9fb860] | 94 |
|
---|
[efc3cb] | 95 | PARSERSOURCE = \
|
---|
| 96 | Parser/ChangeTracker.cpp \
|
---|
| 97 | Parser/FormatParser.cpp \
|
---|
[52baf9] | 98 | Parser/FormatParserStorage.cpp \
|
---|
[43dad6] | 99 | Parser/MpqcParser.cpp \
|
---|
| 100 | Parser/PcpParser.cpp \
|
---|
[efc3cb] | 101 | Parser/TremoloParser.cpp \
|
---|
| 102 | Parser/XyzParser.cpp
|
---|
[88104f] | 103 |
|
---|
[efc3cb] | 104 | PARSERHEADER = \
|
---|
| 105 | Parser/ChangeTracker.hpp \
|
---|
| 106 | Parser/FormatParser.hpp \
|
---|
[52baf9] | 107 | Parser/FormatParserStorage.hpp \
|
---|
[43dad6] | 108 | Parser/MpqcParser.hpp \
|
---|
| 109 | Parser/PcpParser.hpp \
|
---|
[efc3cb] | 110 | Parser/TremoloParser.hpp \
|
---|
| 111 | Parser/XyzParser.hpp
|
---|
| 112 |
|
---|
| 113 | PATTERNSOURCE = \
|
---|
| 114 | Patterns/Observer.cpp
|
---|
| 115 | PATTERNHEADER = \
|
---|
| 116 | Patterns/Cacheable.hpp \
|
---|
| 117 | Patterns/Observer.hpp \
|
---|
| 118 | Patterns/Singleton.hpp
|
---|
[997784] | 119 |
|
---|
| 120 | SHAPESOURCE = \
|
---|
[e38447] | 121 | Shapes/BaseShapes.cpp \
|
---|
[e09b70] | 122 | Shapes/Shape.cpp \
|
---|
| 123 | Shapes/ShapeOps.cpp
|
---|
[997784] | 124 | SHAPEHEADER = \
|
---|
[e38447] | 125 | Shapes/BaseShapes.hpp \
|
---|
[e09b70] | 126 | Shapes/Shape.hpp \
|
---|
| 127 | Shapes/ShapeOps.hpp
|
---|
[997784] | 128 |
|
---|
[f5a86a] | 129 |
|
---|
[63b56a7] | 130 | QTUIMOC_HEADER = UIElements/QT4/QTDialog.hpp \
|
---|
| 131 | UIElements/QT4/QTMainWindow.hpp \
|
---|
[257c77] | 132 | UIElements/Menu/QT4/QTMenu.hpp \
|
---|
| 133 | UIElements/Views/QT4/QTWorldView.hpp \
|
---|
| 134 | UIElements/Views/QT4/GLMoleculeView.hpp \
|
---|
| 135 | UIElements/Views/QT4/QTMoleculeView.hpp \
|
---|
| 136 | UIElements/Views/QT4/QTStatusBar.hpp
|
---|
[63b56a7] | 137 |
|
---|
| 138 | QTUIMOC_TARGETS = QTMainWindow.moc.cpp \
|
---|
| 139 | QTMenu.moc.cpp\
|
---|
| 140 | QTDialog.moc.cpp \
|
---|
| 141 | QTWorldView.moc.cpp \
|
---|
| 142 | GLMoleculeView.moc.cpp \
|
---|
[a77c96] | 143 | QTMoleculeView.moc.cpp \
|
---|
[63b56a7] | 144 | QTStatusBar.moc.cpp
|
---|
[3027f8] | 145 |
|
---|
[57adc7] | 146 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
---|
[efc3cb] | 147 | Descriptors/AtomIdDescriptor.cpp \
|
---|
[48dcbd] | 148 | Descriptors/AtomSelectionDescriptor.cpp \
|
---|
[efc3cb] | 149 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
| 150 | Descriptors/MoleculeDescriptor.cpp \
|
---|
[e05826] | 151 | Descriptors/MoleculeIdDescriptor.cpp \
|
---|
[e6317b] | 152 | Descriptors/MoleculeNameDescriptor.cpp \
|
---|
[cf0ca1] | 153 | Descriptors/MoleculePtrDescriptor.cpp \
|
---|
| 154 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
[57adc7] | 155 |
|
---|
[75ac0c] | 156 |
|
---|
[57adc7] | 157 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
---|
[efc3cb] | 158 | Descriptors/AtomIdDescriptor.hpp \
|
---|
[48dcbd] | 159 | Descriptors/AtomSelectionDescriptor.hpp \
|
---|
[efc3cb] | 160 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
| 161 | Descriptors/MoleculeDescriptor.hpp \
|
---|
[e30ce8] | 162 | Descriptors/MoleculeIdDescriptor.hpp \
|
---|
[31b09e] | 163 | Descriptors/MoleculeNameDescriptor.hpp \
|
---|
[cf0ca1] | 164 | Descriptors/MoleculePtrDescriptor.hpp \
|
---|
| 165 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
[67c75b] | 166 |
|
---|
[63b56a7] | 167 | QTUISOURCE = ${QTUIMOC_TARGETS} \
|
---|
[67c75b] | 168 | UIElements/QT4/QTMainWindow.cpp \
|
---|
| 169 | UIElements/QT4/QTDialog.cpp \
|
---|
| 170 | UIElements/QT4/QTUIFactory.cpp \
|
---|
[257c77] | 171 | UIElements/Menu/QT4/QTMenu.cpp \
|
---|
| 172 | UIElements/Views/QT4/QTWorldView.cpp \
|
---|
| 173 | UIElements/Views/QT4/GLMoleculeView.cpp \
|
---|
| 174 | UIElements/Views/QT4/QTMoleculeView.cpp \
|
---|
| 175 | UIElements/Views/QT4/QTStatusBar.cpp
|
---|
[a77c96] | 176 |
|
---|
[ea94a8] | 177 | QTUIHEADER = ${QTUIMOC_HEADER} UIElements/QT4/QTUIFactory.hpp
|
---|
[3027f8] | 178 |
|
---|
[67c75b] | 179 | QTUI_DEFS =
|
---|
| 180 |
|
---|
[efc3cb] | 181 | SOURCE = \
|
---|
| 182 | ${ANALYSISSOURCE} \
|
---|
[5079a0] | 183 | ${ACTIONSSOURCE} \
|
---|
[efc3cb] | 184 | ${ATOMSOURCE} \
|
---|
[456341] | 185 | ${EXCEPTIONSOURCE} \
|
---|
[efc3cb] | 186 | ${PATTERNSOURCE} \
|
---|
| 187 | ${PARSERSOURCE} \
|
---|
[997784] | 188 | ${SHAPESOURCE} \
|
---|
[efc3cb] | 189 | ${DESCRIPTORSOURCE} \
|
---|
| 190 | ${HELPERSOURCE} \
|
---|
| 191 | bond.cpp \
|
---|
| 192 | bondgraph.cpp \
|
---|
| 193 | boundary.cpp \
|
---|
[83c09a] | 194 | Box.cpp \
|
---|
[c6efc1] | 195 | CommandLineParser.cpp \
|
---|
[efc3cb] | 196 | config.cpp \
|
---|
[88104f] | 197 | ConfigFileBuffer.cpp \
|
---|
[efc3cb] | 198 | element.cpp \
|
---|
[5079a0] | 199 | elements_db.cpp \
|
---|
[efc3cb] | 200 | ellipsoid.cpp \
|
---|
| 201 | errorlogger.cpp \
|
---|
| 202 | graph.cpp \
|
---|
| 203 | helpers.cpp \
|
---|
| 204 | info.cpp \
|
---|
| 205 | leastsquaremin.cpp \
|
---|
| 206 | Line.cpp \
|
---|
| 207 | linkedcell.cpp \
|
---|
| 208 | log.cpp \
|
---|
| 209 | logger.cpp \
|
---|
[456341] | 210 | Matrix.cpp \
|
---|
[efc3cb] | 211 | moleculelist.cpp \
|
---|
| 212 | molecule.cpp \
|
---|
| 213 | molecule_dynamics.cpp \
|
---|
| 214 | molecule_fragmentation.cpp \
|
---|
| 215 | molecule_geometry.cpp \
|
---|
| 216 | molecule_graph.cpp \
|
---|
| 217 | molecule_pointcloud.cpp \
|
---|
| 218 | parser.cpp \
|
---|
| 219 | periodentafel.cpp \
|
---|
| 220 | Plane.cpp \
|
---|
[1024cb] | 221 | Space.cpp \
|
---|
[efc3cb] | 222 | tesselation.cpp \
|
---|
| 223 | tesselationhelpers.cpp \
|
---|
[a3fded] | 224 | ThermoStatContainer.cpp \
|
---|
[efc3cb] | 225 | triangleintersectionlist.cpp \
|
---|
[1024cb] | 226 | vector.cpp \
|
---|
[efc3cb] | 227 | vector_ops.cpp \
|
---|
[1024cb] | 228 | verbose.cpp \
|
---|
[efc3cb] | 229 | World.cpp
|
---|
[5f612ee] | 230 |
|
---|
| 231 | HEADER = \
|
---|
[efc3cb] | 232 | ${ANALYSISHEADER} \
|
---|
[5079a0] | 233 | ${ACTIONSHEADER} \
|
---|
[efc3cb] | 234 | ${ATOMHEADER} \
|
---|
[456341] | 235 | ${EXCEPTIONHEADER} \
|
---|
[efc3cb] | 236 | ${PARSERHEADER} \
|
---|
| 237 | ${PATTERNHEADER} \
|
---|
[997784] | 238 | ${SHAPEHEADER} \
|
---|
[efc3cb] | 239 | ${DESCRIPTORHEADER} \
|
---|
| 240 | bond.hpp \
|
---|
| 241 | bondgraph.hpp \
|
---|
| 242 | boundary.hpp \
|
---|
[83c09a] | 243 | Box.hpp \
|
---|
[c6efc1] | 244 | CommandLineParser.hpp \
|
---|
[efc3cb] | 245 | config.hpp \
|
---|
[88104f] | 246 | ConfigFileBuffer.hpp \
|
---|
[efc3cb] | 247 | defs.hpp \
|
---|
| 248 | element.hpp \
|
---|
[5079a0] | 249 | elements_db.hpp \
|
---|
[efc3cb] | 250 | ellipsoid.hpp \
|
---|
| 251 | errorlogger.hpp \
|
---|
| 252 | graph.hpp \
|
---|
| 253 | helpers.hpp \
|
---|
| 254 | info.hpp \
|
---|
| 255 | leastsquaremin.hpp \
|
---|
| 256 | Line.hpp \
|
---|
| 257 | linkedcell.hpp \
|
---|
| 258 | lists.hpp \
|
---|
| 259 | log.hpp \
|
---|
| 260 | logger.hpp \
|
---|
[456341] | 261 | Matrix.hpp \
|
---|
[efc3cb] | 262 | molecule.hpp \
|
---|
| 263 | molecule_template.hpp \
|
---|
| 264 | parser.hpp \
|
---|
| 265 | periodentafel.hpp \
|
---|
| 266 | Plane.hpp \
|
---|
| 267 | stackclass.hpp \
|
---|
| 268 | tesselation.hpp \
|
---|
| 269 | tesselationhelpers.hpp \
|
---|
[a3fded] | 270 | ThermoStatContainer.hpp \
|
---|
[efc3cb] | 271 | triangleintersectionlist.hpp \
|
---|
| 272 | verbose.hpp \
|
---|
| 273 | vector_ops.hpp \
|
---|
| 274 | World.hpp
|
---|
[3027f8] | 275 |
|
---|
[920c70] | 276 | # the following files are no longer used:
|
---|
| 277 | # memoryallocator.hpp \
|
---|
[1024cb] | 278 | # memoryallocator.cpp \
|
---|
[920c70] | 279 | # memoryusageobserver.hpp \
|
---|
| 280 | # memoryusageobserver.cpp
|
---|
[ef9df36] | 281 |
|
---|
[fa861b] | 282 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
|
---|
[b1d8092] | 283 | GUI_LIBS = ${QT_LDADD} ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS}
|
---|
[5079a0] | 284 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
---|
[ef9df36] | 285 |
|
---|
[04488a] | 286 | noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a libmenu.a libparser.a
|
---|
| 287 | bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
|
---|
| 288 |
|
---|
[14de469] | 289 | molecuilderdir = ${bindir}
|
---|
[b1d8092] | 290 |
|
---|
[b9907c] | 291 | libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
|
---|
[b1d8092] | 292 |
|
---|
[9fe36b] | 293 | libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
|
---|
[35b698] | 294 | libparser_a_SOURCES = ${PARSERSOURCE} ${PARSERHEADER}
|
---|
[9fb860] | 295 | libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
|
---|
[b1d8092] | 296 |
|
---|
[6ac7ee] | 297 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
[b1d8092] | 298 |
|
---|
[4d9c01] | 299 | molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
|
---|
| 300 | #molecuilder_CXXFLAGS += -DNO_CACHING
|
---|
[9fe36b] | 301 | molecuilder_LDFLAGS = $(BOOST_LIB)
|
---|
[82b71a] | 302 | molecuilder_SOURCES = ${LEGACYSOURCE} builder.cpp
|
---|
[b8d1aeb] | 303 | molecuilder_SOURCES += $(srcdir)/version.c
|
---|
[04488a] | 304 | molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
|
---|
[b1d8092] | 305 |
|
---|
[3027f8] | 306 | #Stuff for building the GUI using QT
|
---|
[82b71a] | 307 | molecuildergui_SOURCES = ${QTUISOURCE} ${LEGACYSOURCE} builder.cpp
|
---|
[b8d1aeb] | 308 | molecuildergui_SOURCES += $(srcdir)/version.c
|
---|
[cef1d7] | 309 | molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT
|
---|
| 310 | molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS}
|
---|
[04488a] | 311 | molecuildergui_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB} ${GUI_LIBS}
|
---|
[b1d8092] | 312 |
|
---|
[b9907c] | 313 | joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
|
---|
[4d9c01] | 314 | joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
[b1d8092] | 315 |
|
---|
[b9907c] | 316 | analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
|
---|
[4d9c01] | 317 | analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
[14de469] | 318 |
|
---|
[3027f8] | 319 | #Rules needed for QT4
|
---|
| 320 | # UI-Files are scattered throughout several subdirectories
|
---|
| 321 | # Therfore `%'-rules do not seem to work
|
---|
| 322 | #Quick fix to get it done otherwise
|
---|
[d3a5ea] | 323 | ${QTUIMOC_TARGETS}: ${QTUIMOC_HEADER}
|
---|
[fa27ed] | 324 | list='$(QTUIMOC_HEADER)'; for header in $$list; do \
|
---|
[3027f8] | 325 | echo "Making mocfile for $$header"; \
|
---|
| 326 | target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
|
---|
| 327 | $(MOC) $(srcdir)/$$header -o $$target \
|
---|
| 328 | || eval $$failcom; \
|
---|
| 329 | done;
|
---|
[9fe36b] | 330 |
|
---|
| 331 | MOSTLYCLEANFILES = ${QTUIMOC_TARGETS}
|
---|
[3027f8] | 332 |
|
---|
[c111db] | 333 | #EXTRA_DIST = ${molecuilder_DATA}
|
---|
[65b6e0] | 334 |
|
---|
[a8eb4a] | 335 | FORCE:
|
---|
| 336 | $(srcdir)/.git-version: FORCE
|
---|
[f8be39] | 337 | @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
|
---|
| 338 | && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
|
---|
[a8eb4a] | 339 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
| 340 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
| 341 | else \
|
---|
| 342 | rm -f .git-version-t; \
|
---|
| 343 | fi
|
---|
| 344 |
|
---|
| 345 | EXTRA_DIST = $(srcdir)/.git-version
|
---|
| 346 |
|
---|
| 347 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
| 348 | echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
| 349 |
|
---|
[b8d1aeb] | 350 |
|
---|