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