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