| 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 | EXCEPTIONSOURCE = Exceptions/CustomException.cpp \
|
|---|
| 33 | Exceptions/LinearDependenceException.cpp \
|
|---|
| 34 | Exceptions/MathException.cpp \
|
|---|
| 35 | Exceptions/NotInvertibleException.cpp \
|
|---|
| 36 | Exceptions/SkewException.cpp \
|
|---|
| 37 | Exceptions/ZeroVectorException.cpp
|
|---|
| 38 |
|
|---|
| 39 | EXCEPTIONHEADER = Exceptions/CustomException.hpp \
|
|---|
| 40 | Exceptions/LinearDependenceException.hpp \
|
|---|
| 41 | Exceptions/MathException.hpp \
|
|---|
| 42 | Exceptions/NotInvertibleException.hpp \
|
|---|
| 43 | Exceptions/SkewException.hpp \
|
|---|
| 44 | Exceptions/ZeroVectorException.hpp
|
|---|
| 45 |
|
|---|
| 46 | # TODO: Move Exceptionsource back down, when transition is done
|
|---|
| 47 | LINALGSOURCE = \
|
|---|
| 48 | ${EXCEPTIONSOURCE} \
|
|---|
| 49 | ${HELPERSOURCE} \
|
|---|
| 50 | gslmatrix.cpp \
|
|---|
| 51 | gslvector.cpp \
|
|---|
| 52 | linearsystemofequations.cpp \
|
|---|
| 53 | Matrix.cpp \
|
|---|
| 54 | Space.cpp \
|
|---|
| 55 | vector.cpp
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | LINALGHEADER = \
|
|---|
| 59 | ${EXCEPTIONHEADER} \
|
|---|
| 60 | gslmatrix.hpp \
|
|---|
| 61 | gslvector.hpp \
|
|---|
| 62 | linearsystemofequations.hpp \
|
|---|
| 63 | Matrix.hpp \
|
|---|
| 64 | Space.hpp \
|
|---|
| 65 | vector.hpp
|
|---|
| 66 |
|
|---|
| 67 | ANALYSISSOURCE = \
|
|---|
| 68 | analysis_bonds.cpp \
|
|---|
| 69 | analysis_correlation.cpp
|
|---|
| 70 | ANALYSISHEADER = \
|
|---|
| 71 | analysis_bonds.hpp \
|
|---|
| 72 | analysis_correlation.hpp
|
|---|
| 73 |
|
|---|
| 74 | ACTIONSSOURCE = \
|
|---|
| 75 | Actions/Action.cpp \
|
|---|
| 76 | Actions/ActionHistory.cpp \
|
|---|
| 77 | Actions/ActionRegistry.cpp \
|
|---|
| 78 | Actions/ActionSequence.cpp \
|
|---|
| 79 | Actions/ErrorAction.cpp \
|
|---|
| 80 | Actions/MakroAction.cpp \
|
|---|
| 81 | Actions/ManipulateAtomsProcess.cpp \
|
|---|
| 82 | Actions/MethodAction.cpp \
|
|---|
| 83 | Actions/Process.cpp
|
|---|
| 84 |
|
|---|
| 85 | ACTIONSHEADER = \
|
|---|
| 86 | Actions/Action.hpp \
|
|---|
| 87 | Actions/ActionHistory.hpp \
|
|---|
| 88 | Actions/ActionRegistry.hpp \
|
|---|
| 89 | Actions/ActionSequence.hpp \
|
|---|
| 90 | Actions/Calculation.hpp \
|
|---|
| 91 | Actions/Calculation_impl.hpp \
|
|---|
| 92 | Actions/ErrorAction.hpp \
|
|---|
| 93 | Actions/MakroAction.hpp \
|
|---|
| 94 | Actions/ManipulateAtomsProcess.hpp \
|
|---|
| 95 | Actions/MapOfActions.hpp \
|
|---|
| 96 | Actions/MethodAction.hpp \
|
|---|
| 97 | Actions/Process.hpp
|
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 | PARSERSOURCE = \
|
|---|
| 101 | Parser/ChangeTracker.cpp \
|
|---|
| 102 | Parser/FormatParser.cpp \
|
|---|
| 103 | Parser/FormatParserStorage.cpp \
|
|---|
| 104 | Parser/MpqcParser.cpp \
|
|---|
| 105 | Parser/PcpParser.cpp \
|
|---|
| 106 | Parser/TremoloParser.cpp \
|
|---|
| 107 | Parser/XyzParser.cpp
|
|---|
| 108 |
|
|---|
| 109 | PARSERHEADER = \
|
|---|
| 110 | Parser/ChangeTracker.hpp \
|
|---|
| 111 | Parser/FormatParser.hpp \
|
|---|
| 112 | Parser/FormatParserStorage.hpp \
|
|---|
| 113 | Parser/MpqcParser.hpp \
|
|---|
| 114 | Parser/PcpParser.hpp \
|
|---|
| 115 | Parser/TremoloParser.hpp \
|
|---|
| 116 | Parser/XyzParser.hpp
|
|---|
| 117 |
|
|---|
| 118 | PATTERNSOURCE = \
|
|---|
| 119 | Patterns/Observer.cpp
|
|---|
| 120 | PATTERNHEADER = \
|
|---|
| 121 | Patterns/Cacheable.hpp \
|
|---|
| 122 | Patterns/Observer.hpp \
|
|---|
| 123 | Patterns/Singleton.hpp
|
|---|
| 124 |
|
|---|
| 125 | # all these files are only used for legacy reasons while the transition is in progress
|
|---|
| 126 | # they are only needed to keep the program usable at any point of the transition and will be
|
|---|
| 127 | # deleted once everything is fully refactored
|
|---|
| 128 | LEGACYSOURCE = Legacy/oldmenu.cpp
|
|---|
| 129 | LEGACYHEADER = Legacy/oldmenu.hpp
|
|---|
| 130 |
|
|---|
| 131 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
|---|
| 132 | Descriptors/AtomIdDescriptor.cpp \
|
|---|
| 133 | Descriptors/AtomTypeDescriptor.cpp \
|
|---|
| 134 | Descriptors/MoleculeDescriptor.cpp \
|
|---|
| 135 | Descriptors/MoleculeIdDescriptor.cpp \
|
|---|
| 136 | Descriptors/MoleculeNameDescriptor.cpp \
|
|---|
| 137 | Descriptors/MoleculePtrDescriptor.cpp
|
|---|
| 138 |
|
|---|
| 139 |
|
|---|
| 140 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
|---|
| 141 | Descriptors/AtomIdDescriptor.hpp \
|
|---|
| 142 | Descriptors/AtomTypeDescriptor.hpp \
|
|---|
| 143 | Descriptors/MoleculeDescriptor.hpp \
|
|---|
| 144 | Descriptors/MoleculeIdDescriptor.hpp \
|
|---|
| 145 | Descriptors/MoleculeNameDescriptor.hpp \
|
|---|
| 146 | Descriptors/MoleculePtrDescriptor.hpp
|
|---|
| 147 |
|
|---|
| 148 | #TODO: Exceptionsource should go here, when the transisition makes this possible
|
|---|
| 149 | SOURCE = \
|
|---|
| 150 | ${ANALYSISSOURCE} \
|
|---|
| 151 | ${ACTIONSSOURCE} \
|
|---|
| 152 | ${ATOMSOURCE} \
|
|---|
| 153 | ${PATTERNSOURCE} \
|
|---|
| 154 | ${PARSERSOURCE} \
|
|---|
| 155 | ${DESCRIPTORSOURCE} \
|
|---|
| 156 | ${HELPERSOURCE} \
|
|---|
| 157 | ${LEGACYSOURCE} \
|
|---|
| 158 | bond.cpp \
|
|---|
| 159 | bondgraph.cpp \
|
|---|
| 160 | boundary.cpp \
|
|---|
| 161 | CommandLineParser.cpp \
|
|---|
| 162 | config.cpp \
|
|---|
| 163 | ConfigFileBuffer.cpp \
|
|---|
| 164 | element.cpp \
|
|---|
| 165 | elements_db.cpp \
|
|---|
| 166 | ellipsoid.cpp \
|
|---|
| 167 | errorlogger.cpp \
|
|---|
| 168 | graph.cpp \
|
|---|
| 169 | helpers.cpp \
|
|---|
| 170 | info.cpp \
|
|---|
| 171 | leastsquaremin.cpp \
|
|---|
| 172 | Line.cpp \
|
|---|
| 173 | linkedcell.cpp \
|
|---|
| 174 | log.cpp \
|
|---|
| 175 | logger.cpp \
|
|---|
| 176 | moleculelist.cpp \
|
|---|
| 177 | molecule.cpp \
|
|---|
| 178 | molecule_dynamics.cpp \
|
|---|
| 179 | molecule_fragmentation.cpp \
|
|---|
| 180 | molecule_geometry.cpp \
|
|---|
| 181 | molecule_graph.cpp \
|
|---|
| 182 | molecule_pointcloud.cpp \
|
|---|
| 183 | parser.cpp \
|
|---|
| 184 | periodentafel.cpp \
|
|---|
| 185 | Plane.cpp \
|
|---|
| 186 | Space.cpp \
|
|---|
| 187 | tesselation.cpp \
|
|---|
| 188 | tesselationhelpers.cpp \
|
|---|
| 189 | ThermoStatContainer.cpp \
|
|---|
| 190 | triangleintersectionlist.cpp \
|
|---|
| 191 | vector.cpp \
|
|---|
| 192 | vector_ops.cpp \
|
|---|
| 193 | verbose.cpp \
|
|---|
| 194 | World.cpp
|
|---|
| 195 |
|
|---|
| 196 | HEADER = \
|
|---|
| 197 | ${ANALYSISHEADER} \
|
|---|
| 198 | ${ACTIONSHEADER} \
|
|---|
| 199 | ${ATOMHEADER} \
|
|---|
| 200 | ${PARSERHEADER} \
|
|---|
| 201 | ${PATTERNHEADER} \
|
|---|
| 202 | ${DESCRIPTORHEADER} \
|
|---|
| 203 | ${LEGACYHEADER} \
|
|---|
| 204 | bond.hpp \
|
|---|
| 205 | bondgraph.hpp \
|
|---|
| 206 | boundary.hpp \
|
|---|
| 207 | CommandLineParser.hpp \
|
|---|
| 208 | config.hpp \
|
|---|
| 209 | ConfigFileBuffer.hpp \
|
|---|
| 210 | defs.hpp \
|
|---|
| 211 | element.hpp \
|
|---|
| 212 | elements_db.hpp \
|
|---|
| 213 | ellipsoid.hpp \
|
|---|
| 214 | errorlogger.hpp \
|
|---|
| 215 | graph.hpp \
|
|---|
| 216 | helpers.hpp \
|
|---|
| 217 | info.hpp \
|
|---|
| 218 | leastsquaremin.hpp \
|
|---|
| 219 | Line.hpp \
|
|---|
| 220 | linkedcell.hpp \
|
|---|
| 221 | lists.hpp \
|
|---|
| 222 | log.hpp \
|
|---|
| 223 | logger.hpp \
|
|---|
| 224 | molecule.hpp \
|
|---|
| 225 | molecule_template.hpp \
|
|---|
| 226 | parser.hpp \
|
|---|
| 227 | periodentafel.hpp \
|
|---|
| 228 | Plane.hpp \
|
|---|
| 229 | stackclass.hpp \
|
|---|
| 230 | tesselation.hpp \
|
|---|
| 231 | tesselationhelpers.hpp \
|
|---|
| 232 | ThermoStatContainer.hpp \
|
|---|
| 233 | triangleintersectionlist.hpp \
|
|---|
| 234 | verbose.hpp \
|
|---|
| 235 | vector_ops.hpp \
|
|---|
| 236 | World.hpp
|
|---|
| 237 |
|
|---|
| 238 | # the following files are no longer used:
|
|---|
| 239 | # memoryallocator.hpp \
|
|---|
| 240 | # memoryallocator.cpp \
|
|---|
| 241 | # memoryusageobserver.hpp \
|
|---|
| 242 | # memoryusageobserver.cpp
|
|---|
| 243 |
|
|---|
| 244 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
|
|---|
| 245 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
|---|
| 246 |
|
|---|
| 247 | noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a libparser.a
|
|---|
| 248 | bin_PROGRAMS = molecuilder joiner analyzer
|
|---|
| 249 | molecuilderdir = ${bindir}
|
|---|
| 250 | libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
|
|---|
| 251 | libparser_a_SOURCES = ${PARSERSOURCE} ${PARSERHEADER}
|
|---|
| 252 | libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
|
|---|
| 253 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
|---|
| 254 | molecuilder_LDFLAGS = $(BOOST_LDFLAGS)
|
|---|
| 255 | molecuilder_SOURCES = builder.cpp
|
|---|
| 256 | molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
|
|---|
| 257 | joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
|
|---|
| 258 | joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
|---|
| 259 | analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
|
|---|
| 260 | analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
|---|
| 261 |
|
|---|
| 262 | FORCE:
|
|---|
| 263 | $(srcdir)/.git-version: FORCE
|
|---|
| 264 | @if (test -d $(top_srcdir)/../.git && cd $(srcdir) && git describe HEAD) > .git-version-t 2>/dev/null \
|
|---|
| 265 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
|---|
| 266 | mv -f .git-version-t $(srcdir)/.git-version; \
|
|---|
| 267 | else \
|
|---|
| 268 | rm -f .git-version-t; \
|
|---|
| 269 | fi
|
|---|
| 270 |
|
|---|
| 271 | EXTRA_DIST = $(srcdir)/.git-version
|
|---|
| 272 |
|
|---|
| 273 | $(srcdir)/version.c: $(srcdir)/.git-version
|
|---|
| 274 | echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
|
|---|
| 275 |
|
|---|
| 276 | molecuilder_SOURCES += $(srcdir)/version.c
|
|---|