[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 |
|
---|
[325390] | 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
|
---|
[efc3cb] | 47 | LINALGSOURCE = \
|
---|
[325390] | 48 | ${EXCEPTIONSOURCE} \
|
---|
[efc3cb] | 49 | ${HELPERSOURCE} \
|
---|
| 50 | gslmatrix.cpp \
|
---|
| 51 | gslvector.cpp \
|
---|
| 52 | linearsystemofequations.cpp \
|
---|
[325390] | 53 | Matrix.cpp \
|
---|
[efc3cb] | 54 | Space.cpp \
|
---|
| 55 | vector.cpp
|
---|
[325390] | 56 |
|
---|
[0a4f7f] | 57 |
|
---|
[325390] | 58 | LINALGHEADER = \
|
---|
| 59 | ${EXCEPTIONHEADER} \
|
---|
| 60 | gslmatrix.hpp \
|
---|
[efc3cb] | 61 | gslvector.hpp \
|
---|
| 62 | linearsystemofequations.hpp \
|
---|
[325390] | 63 | Matrix.hpp \
|
---|
[efc3cb] | 64 | Space.hpp \
|
---|
| 65 | vector.hpp
|
---|
[0a4f7f] | 66 |
|
---|
[efc3cb] | 67 | ANALYSISSOURCE = \
|
---|
| 68 | analysis_bonds.cpp \
|
---|
| 69 | analysis_correlation.cpp
|
---|
| 70 | ANALYSISHEADER = \
|
---|
| 71 | analysis_bonds.hpp \
|
---|
| 72 | analysis_correlation.hpp
|
---|
[96c961] | 73 |
|
---|
[5079a0] | 74 | ACTIONSSOURCE = \
|
---|
| 75 | Actions/Action.cpp \
|
---|
[efc3cb] | 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 |
|
---|
[5079a0] | 85 | ACTIONSHEADER = \
|
---|
| 86 | Actions/Action.hpp \
|
---|
[efc3cb] | 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 \
|
---|
[97ebf8] | 95 | Actions/MapOfActions.hpp \
|
---|
[efc3cb] | 96 | Actions/MethodAction.hpp \
|
---|
| 97 | Actions/Process.hpp
|
---|
| 98 |
|
---|
[03bb99] | 99 |
|
---|
[efc3cb] | 100 | PARSERSOURCE = \
|
---|
| 101 | Parser/ChangeTracker.cpp \
|
---|
| 102 | Parser/FormatParser.cpp \
|
---|
[52baf9] | 103 | Parser/FormatParserStorage.cpp \
|
---|
[43dad6] | 104 | Parser/MpqcParser.cpp \
|
---|
| 105 | Parser/PcpParser.cpp \
|
---|
[efc3cb] | 106 | Parser/TremoloParser.cpp \
|
---|
| 107 | Parser/XyzParser.cpp
|
---|
[88104f] | 108 |
|
---|
[efc3cb] | 109 | PARSERHEADER = \
|
---|
| 110 | Parser/ChangeTracker.hpp \
|
---|
| 111 | Parser/FormatParser.hpp \
|
---|
[52baf9] | 112 | Parser/FormatParserStorage.hpp \
|
---|
[43dad6] | 113 | Parser/MpqcParser.hpp \
|
---|
| 114 | Parser/PcpParser.hpp \
|
---|
[efc3cb] | 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 |
|
---|
[442218] | 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
|
---|
[d346b6] | 129 | LEGACYHEADER = Legacy/oldmenu.hpp
|
---|
[442218] | 130 |
|
---|
[57adc7] | 131 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
---|
[efc3cb] | 132 | Descriptors/AtomIdDescriptor.cpp \
|
---|
| 133 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
| 134 | Descriptors/MoleculeDescriptor.cpp \
|
---|
[e05826] | 135 | Descriptors/MoleculeIdDescriptor.cpp \
|
---|
[88104f] | 136 | Descriptors/MoleculeNameDescriptor.cpp \
|
---|
[e30ce8] | 137 | Descriptors/MoleculePtrDescriptor.cpp
|
---|
[57adc7] | 138 |
|
---|
[75ac0c] | 139 |
|
---|
[57adc7] | 140 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
---|
[efc3cb] | 141 | Descriptors/AtomIdDescriptor.hpp \
|
---|
| 142 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
| 143 | Descriptors/MoleculeDescriptor.hpp \
|
---|
[e30ce8] | 144 | Descriptors/MoleculeIdDescriptor.hpp \
|
---|
[31b09e] | 145 | Descriptors/MoleculeNameDescriptor.hpp \
|
---|
[e30ce8] | 146 | Descriptors/MoleculePtrDescriptor.hpp
|
---|
[efc3cb] | 147 |
|
---|
[325390] | 148 | #TODO: Exceptionsource should go here, when the transisition makes this possible
|
---|
[efc3cb] | 149 | SOURCE = \
|
---|
| 150 | ${ANALYSISSOURCE} \
|
---|
[5079a0] | 151 | ${ACTIONSSOURCE} \
|
---|
[efc3cb] | 152 | ${ATOMSOURCE} \
|
---|
| 153 | ${PATTERNSOURCE} \
|
---|
| 154 | ${PARSERSOURCE} \
|
---|
| 155 | ${DESCRIPTORSOURCE} \
|
---|
| 156 | ${HELPERSOURCE} \
|
---|
| 157 | ${LEGACYSOURCE} \
|
---|
| 158 | bond.cpp \
|
---|
| 159 | bondgraph.cpp \
|
---|
| 160 | boundary.cpp \
|
---|
[c6efc1] | 161 | CommandLineParser.cpp \
|
---|
[efc3cb] | 162 | config.cpp \
|
---|
[88104f] | 163 | ConfigFileBuffer.cpp \
|
---|
[efc3cb] | 164 | element.cpp \
|
---|
[5079a0] | 165 | elements_db.cpp \
|
---|
[efc3cb] | 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 \
|
---|
[1024cb] | 186 | Space.cpp \
|
---|
[efc3cb] | 187 | tesselation.cpp \
|
---|
| 188 | tesselationhelpers.cpp \
|
---|
[a3fded] | 189 | ThermoStatContainer.cpp \
|
---|
[efc3cb] | 190 | triangleintersectionlist.cpp \
|
---|
[1024cb] | 191 | vector.cpp \
|
---|
[efc3cb] | 192 | vector_ops.cpp \
|
---|
[1024cb] | 193 | verbose.cpp \
|
---|
[efc3cb] | 194 | World.cpp
|
---|
[5f612ee] | 195 |
|
---|
| 196 | HEADER = \
|
---|
[efc3cb] | 197 | ${ANALYSISHEADER} \
|
---|
[5079a0] | 198 | ${ACTIONSHEADER} \
|
---|
[efc3cb] | 199 | ${ATOMHEADER} \
|
---|
| 200 | ${PARSERHEADER} \
|
---|
| 201 | ${PATTERNHEADER} \
|
---|
| 202 | ${DESCRIPTORHEADER} \
|
---|
| 203 | ${LEGACYHEADER} \
|
---|
| 204 | bond.hpp \
|
---|
| 205 | bondgraph.hpp \
|
---|
| 206 | boundary.hpp \
|
---|
[c6efc1] | 207 | CommandLineParser.hpp \
|
---|
[efc3cb] | 208 | config.hpp \
|
---|
[88104f] | 209 | ConfigFileBuffer.hpp \
|
---|
[efc3cb] | 210 | defs.hpp \
|
---|
| 211 | element.hpp \
|
---|
[5079a0] | 212 | elements_db.hpp \
|
---|
[efc3cb] | 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 \
|
---|
[a3fded] | 232 | ThermoStatContainer.hpp \
|
---|
[efc3cb] | 233 | triangleintersectionlist.hpp \
|
---|
| 234 | verbose.hpp \
|
---|
| 235 | vector_ops.hpp \
|
---|
| 236 | World.hpp
|
---|
[ef9df36] | 237 |
|
---|
[920c70] | 238 | # the following files are no longer used:
|
---|
| 239 | # memoryallocator.hpp \
|
---|
[1024cb] | 240 | # memoryallocator.cpp \
|
---|
[920c70] | 241 | # memoryusageobserver.hpp \
|
---|
| 242 | # memoryusageobserver.cpp
|
---|
| 243 |
|
---|
[fa861b] | 244 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
|
---|
[5079a0] | 245 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
---|
[ef9df36] | 246 |
|
---|
[35b698] | 247 | noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a libparser.a
|
---|
[ef9df36] | 248 | bin_PROGRAMS = molecuilder joiner analyzer
|
---|
[14de469] | 249 | molecuilderdir = ${bindir}
|
---|
[b9907c] | 250 | libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
|
---|
[35b698] | 251 | libparser_a_SOURCES = ${PARSERSOURCE} ${PARSERHEADER}
|
---|
[9fb860] | 252 | libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
|
---|
[e58856b] | 253 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
[4d9c01] | 254 | molecuilder_LDFLAGS = $(BOOST_LDFLAGS)
|
---|
[b9907c] | 255 | molecuilder_SOURCES = builder.cpp
|
---|
[35b698] | 256 | molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
|
---|
[b9907c] | 257 | joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
|
---|
[4d9c01] | 258 | joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
[b9907c] | 259 | analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
|
---|
[4d9c01] | 260 | analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
[14de469] | 261 |
|
---|
[a8eb4a] | 262 | FORCE:
|
---|
| 263 | $(srcdir)/.git-version: FORCE
|
---|
[c135eb7] | 264 | @if (test -d $(top_srcdir)/../.git && cd $(srcdir) && git describe HEAD) > .git-version-t 2>/dev/null \
|
---|
[a8eb4a] | 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
|
---|