[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 = \
|
---|
[97ebf8] | 65 | ${ANALYSISACTIONHEADER} \
|
---|
[03bb99] | 66 | ${ATOMACTIONHEADER} \
|
---|
[e3ecc1a] | 67 | ${CMDACTIONHEADER} \
|
---|
[03bb99] | 68 | ${FRAGMENTATIONACTIONHEADER} \
|
---|
| 69 | ${MOLECULEACTIONHEADER} \
|
---|
| 70 | ${PARSERACTIONHEADER} \
|
---|
| 71 | ${TESSELATIONACTIONHEADER} \
|
---|
[97ebf8] | 72 | ${WORLDACTIONHEADER} \
|
---|
[5079a0] | 73 | Actions/Action.hpp \
|
---|
[efc3cb] | 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 \
|
---|
[97ebf8] | 82 | Actions/MapOfActions.hpp \
|
---|
[efc3cb] | 83 | Actions/MethodAction.hpp \
|
---|
| 84 | Actions/Process.hpp
|
---|
| 85 |
|
---|
[03bb99] | 86 |
|
---|
[efc3cb] | 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 |
|
---|
[442218] | 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
|
---|
[d346b6] | 109 | LEGACYHEADER = Legacy/oldmenu.hpp
|
---|
[442218] | 110 |
|
---|
[57adc7] | 111 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
---|
[efc3cb] | 112 | Descriptors/AtomIdDescriptor.cpp \
|
---|
| 113 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
| 114 | Descriptors/MoleculeDescriptor.cpp \
|
---|
| 115 | Descriptors/MoleculeIdDescriptor.cpp
|
---|
[57adc7] | 116 |
|
---|
[6e97e5] | 117 |
|
---|
[57adc7] | 118 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
---|
[efc3cb] | 119 | Descriptors/AtomIdDescriptor.hpp \
|
---|
| 120 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
| 121 | Descriptors/MoleculeDescriptor.hpp \
|
---|
| 122 | Descriptors/MoleculeIdDescriptor.hpp
|
---|
[6e97e5] | 123 |
|
---|
[0a4f7f] | 124 | EXCEPTIONSOURCE = Exceptions/CustomException.cpp \
|
---|
[efc3cb] | 125 | Exceptions/LinearDependenceException.cpp \
|
---|
| 126 | Exceptions/MathException.cpp \
|
---|
| 127 | Exceptions/ZeroVectorException.cpp
|
---|
[0a4f7f] | 128 |
|
---|
| 129 | EXCEPTIONHEADER = Exceptions/CustomException.hpp \
|
---|
[efc3cb] | 130 | Exceptions/LinearDependenceException.hpp \
|
---|
| 131 | Exceptions/MathException.hpp \
|
---|
| 132 | Exceptions/ZeroVectorException.hpp
|
---|
| 133 |
|
---|
| 134 | SOURCE = \
|
---|
| 135 | ${ANALYSISSOURCE} \
|
---|
[5079a0] | 136 | ${ACTIONSSOURCE} \
|
---|
[efc3cb] | 137 | ${ATOMSOURCE} \
|
---|
| 138 | ${PATTERNSOURCE} \
|
---|
| 139 | ${PARSERSOURCE} \
|
---|
| 140 | ${DESCRIPTORSOURCE} \
|
---|
| 141 | ${HELPERSOURCE} \
|
---|
| 142 | ${LEGACYSOURCE} \
|
---|
| 143 | ${EXCEPTIONSOURCE} \
|
---|
| 144 | bond.cpp \
|
---|
| 145 | bondgraph.cpp \
|
---|
| 146 | boundary.cpp \
|
---|
[c6efc1] | 147 | CommandLineParser.cpp \
|
---|
[efc3cb] | 148 | config.cpp \
|
---|
| 149 | element.cpp \
|
---|
[5079a0] | 150 | elements_db.cpp \
|
---|
[efc3cb] | 151 | ellipsoid.cpp \
|
---|
| 152 | errorlogger.cpp \
|
---|
| 153 | graph.cpp \
|
---|
| 154 | helpers.cpp \
|
---|
| 155 | info.cpp \
|
---|
| 156 | leastsquaremin.cpp \
|
---|
| 157 | Line.cpp \
|
---|
| 158 | linkedcell.cpp \
|
---|
| 159 | lists.cpp \
|
---|
| 160 | log.cpp \
|
---|
| 161 | logger.cpp \
|
---|
| 162 | memoryusageobserver.cpp \
|
---|
| 163 | moleculelist.cpp \
|
---|
| 164 | molecule.cpp \
|
---|
| 165 | molecule_dynamics.cpp \
|
---|
| 166 | molecule_fragmentation.cpp \
|
---|
| 167 | molecule_geometry.cpp \
|
---|
| 168 | molecule_graph.cpp \
|
---|
| 169 | molecule_pointcloud.cpp \
|
---|
| 170 | parser.cpp \
|
---|
| 171 | periodentafel.cpp \
|
---|
| 172 | Plane.cpp \
|
---|
| 173 | tesselation.cpp \
|
---|
| 174 | tesselationhelpers.cpp \
|
---|
| 175 | triangleintersectionlist.cpp \
|
---|
| 176 | verbose.cpp \
|
---|
| 177 | vector_ops.cpp \
|
---|
| 178 | World.cpp
|
---|
[5f612ee] | 179 |
|
---|
| 180 | HEADER = \
|
---|
[efc3cb] | 181 | ${ANALYSISHEADER} \
|
---|
[5079a0] | 182 | ${ACTIONSHEADER} \
|
---|
[efc3cb] | 183 | ${ATOMHEADER} \
|
---|
| 184 | ${PARSERHEADER} \
|
---|
| 185 | ${PATTERNHEADER} \
|
---|
| 186 | ${DESCRIPTORHEADER} \
|
---|
| 187 | ${EXCEPTIONHEADER} \
|
---|
| 188 | ${LEGACYHEADER} \
|
---|
| 189 | bond.hpp \
|
---|
| 190 | bondgraph.hpp \
|
---|
| 191 | boundary.hpp \
|
---|
[c6efc1] | 192 | CommandLineParser.hpp \
|
---|
[efc3cb] | 193 | config.hpp \
|
---|
| 194 | defs.hpp \
|
---|
| 195 | element.hpp \
|
---|
[5079a0] | 196 | elements_db.hpp \
|
---|
[efc3cb] | 197 | ellipsoid.hpp \
|
---|
| 198 | errorlogger.hpp \
|
---|
| 199 | graph.hpp \
|
---|
| 200 | helpers.hpp \
|
---|
| 201 | info.hpp \
|
---|
| 202 | leastsquaremin.hpp \
|
---|
| 203 | Line.hpp \
|
---|
| 204 | linkedcell.hpp \
|
---|
| 205 | lists.hpp \
|
---|
| 206 | log.hpp \
|
---|
| 207 | logger.hpp \
|
---|
| 208 | memoryallocator.hpp \
|
---|
| 209 | memoryusageobserver.hpp \
|
---|
| 210 | molecule.hpp \
|
---|
| 211 | molecule_template.hpp \
|
---|
| 212 | parser.hpp \
|
---|
| 213 | periodentafel.hpp \
|
---|
| 214 | Plane.hpp \
|
---|
| 215 | stackclass.hpp \
|
---|
| 216 | tesselation.hpp \
|
---|
| 217 | tesselationhelpers.hpp \
|
---|
| 218 | triangleintersectionlist.hpp \
|
---|
| 219 | verbose.hpp \
|
---|
| 220 | vector_ops.hpp \
|
---|
| 221 | World.hpp
|
---|
[ef9df36] | 222 |
|
---|
[fa861b] | 223 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
|
---|
[5079a0] | 224 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
---|
[ef9df36] | 225 |
|
---|
[9fb860] | 226 | noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a
|
---|
[ef9df36] | 227 | bin_PROGRAMS = molecuilder joiner analyzer
|
---|
[14de469] | 228 | molecuilderdir = ${bindir}
|
---|
[b9907c] | 229 | libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
|
---|
[9fb860] | 230 | libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
|
---|
[4d9c01] | 231 | molecuilder_LDFLAGS = $(BOOST_LDFLAGS)
|
---|
[b9907c] | 232 | molecuilder_SOURCES = builder.cpp
|
---|
[5079a0] | 233 | molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilder.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
|
---|
[b9907c] | 234 | joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
|
---|
[4d9c01] | 235 | joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
[b9907c] | 236 | analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
|
---|
[4d9c01] | 237 | analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
[14de469] | 238 |
|
---|
[a8eb4a] | 239 | FORCE:
|
---|
| 240 | $(srcdir)/.git-version: FORCE
|
---|
[c135eb7] | 241 | @if (test -d $(top_srcdir)/../.git && cd $(srcdir) && git describe HEAD) > .git-version-t 2>/dev/null \
|
---|
[a8eb4a] | 242 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
| 243 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
| 244 | else \
|
---|
| 245 | rm -f .git-version-t; \
|
---|
| 246 | fi
|
---|
| 247 |
|
---|
| 248 | EXTRA_DIST = $(srcdir)/.git-version
|
---|
| 249 |
|
---|
| 250 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
| 251 | echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
| 252 |
|
---|
| 253 | molecuilder_SOURCES += $(srcdir)/version.c
|
---|