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