[efc3cb] | 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
| 2 | # Also indentation by a single tab
|
---|
| 3 |
|
---|
[455573] | 4 | MOSTLYCLEANFILES =
|
---|
| 5 | lib_LTLIBRARIES =
|
---|
| 6 | noinst_LTLIBRARIES =
|
---|
[bd8788] | 7 | bin_PROGRAMS =
|
---|
[455573] | 8 |
|
---|
| 9 | include Actions/Makefile.am
|
---|
| 10 | include Graph/Makefile.am
|
---|
| 11 | include Parser/Makefile.am
|
---|
| 12 | include RandomNumbers/Makefile.am
|
---|
| 13 | include Shapes/Makefile.am
|
---|
| 14 | include UIElements/Makefile.am
|
---|
[5079a0] | 15 |
|
---|
[f08ae7] | 16 | AM_LDFLAGS = -ldl ${BOOST_LDFLAGS}
|
---|
[a0064e] | 17 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
|
---|
[d5240d] | 18 |
|
---|
[efc3cb] | 19 | ATOMSOURCE = \
|
---|
| 20 | atom.cpp \
|
---|
[e41c48] | 21 | AtomicInfo.cpp \
|
---|
[efc3cb] | 22 | atom_atominfo.cpp \
|
---|
| 23 | atom_bondedparticle.cpp \
|
---|
| 24 | atom_bondedparticleinfo.cpp \
|
---|
| 25 | atom_graphnode.cpp \
|
---|
| 26 | atom_graphnodeinfo.cpp \
|
---|
[7188b1] | 27 | atom_observable.cpp \
|
---|
[6625c3] | 28 | atom_particleinfo.cpp
|
---|
[efc3cb] | 29 | ATOMHEADER = \
|
---|
| 30 | atom.hpp \
|
---|
| 31 | atom_atominfo.hpp \
|
---|
| 32 | atom_bondedparticle.hpp \
|
---|
| 33 | atom_bondedparticleinfo.hpp \
|
---|
| 34 | atom_graphnode.hpp \
|
---|
| 35 | atom_graphnodeinfo.hpp \
|
---|
[7188b1] | 36 | atom_observable.hpp \
|
---|
[36f507] | 37 | atom_particleinfo.hpp \
|
---|
| 38 | AtomicInfo.hpp \
|
---|
| 39 | AtomSet.hpp
|
---|
[efc3cb] | 40 |
|
---|
| 41 | ANALYSISSOURCE = \
|
---|
| 42 | analysis_bonds.cpp \
|
---|
| 43 | analysis_correlation.cpp
|
---|
| 44 | ANALYSISHEADER = \
|
---|
| 45 | analysis_bonds.hpp \
|
---|
| 46 | analysis_correlation.hpp
|
---|
[96c961] | 47 |
|
---|
[129204] | 48 | BONDSOURCE = \
|
---|
| 49 | Bond/bond.cpp \
|
---|
| 50 | Bond/GraphEdge.cpp
|
---|
| 51 |
|
---|
| 52 | BONDHEADER = \
|
---|
| 53 | Bond/bond.hpp \
|
---|
| 54 | Bond/GraphEdge.hpp
|
---|
[efc3cb] | 55 |
|
---|
[c42e60] | 56 | DESCRIPTORSOURCE = \
|
---|
| 57 | Descriptors/AtomDescriptor.cpp \
|
---|
[efc3cb] | 58 | Descriptors/AtomIdDescriptor.cpp \
|
---|
[c42e60] | 59 | Descriptors/AtomOfMoleculeSelectionDescriptor.cpp \
|
---|
[48dcbd] | 60 | Descriptors/AtomSelectionDescriptor.cpp \
|
---|
[6d858c] | 61 | Descriptors/AtomShapeDescriptor.cpp \
|
---|
[efc3cb] | 62 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
| 63 | Descriptors/MoleculeDescriptor.cpp \
|
---|
[6e7147] | 64 | Descriptors/MoleculeFormulaDescriptor.cpp \
|
---|
[e05826] | 65 | Descriptors/MoleculeIdDescriptor.cpp \
|
---|
[e6317b] | 66 | Descriptors/MoleculeNameDescriptor.cpp \
|
---|
[c42e60] | 67 | Descriptors/MoleculeOfAtomSelectionDescriptor.cpp \
|
---|
[92d756] | 68 | Descriptors/MoleculeOrderDescriptor.cpp \
|
---|
[cf0ca1] | 69 | Descriptors/MoleculePtrDescriptor.cpp \
|
---|
| 70 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
[57adc7] | 71 |
|
---|
[75ac0c] | 72 |
|
---|
[c42e60] | 73 | DESCRIPTORHEADER = \
|
---|
| 74 | Descriptors/AtomDescriptor.hpp \
|
---|
[efc3cb] | 75 | Descriptors/AtomIdDescriptor.hpp \
|
---|
[c42e60] | 76 | Descriptors/AtomOfMoleculeSelectionDescriptor.hpp \
|
---|
[48dcbd] | 77 | Descriptors/AtomSelectionDescriptor.hpp \
|
---|
[6d858c] | 78 | Descriptors/AtomShapeDescriptor.hpp \
|
---|
[efc3cb] | 79 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
[36f507] | 80 | Descriptors/DescriptorBase.hpp \
|
---|
[efc3cb] | 81 | Descriptors/MoleculeDescriptor.hpp \
|
---|
[6e7147] | 82 | Descriptors/MoleculeFormulaDescriptor.hpp \
|
---|
[e30ce8] | 83 | Descriptors/MoleculeIdDescriptor.hpp \
|
---|
[31b09e] | 84 | Descriptors/MoleculeNameDescriptor.hpp \
|
---|
[c42e60] | 85 | Descriptors/MoleculeOfAtomSelectionDescriptor.hpp \
|
---|
[92d756] | 86 | Descriptors/MoleculeOrderDescriptor.hpp \
|
---|
[cf0ca1] | 87 | Descriptors/MoleculePtrDescriptor.hpp \
|
---|
[36f507] | 88 | Descriptors/MoleculeSelectionDescriptor.hpp \
|
---|
| 89 | Descriptors/SelectiveIterator.hpp
|
---|
[c42e60] | 90 |
|
---|
| 91 | DESCRIPTORIMPLHEADER = \
|
---|
| 92 | Descriptors/AtomDescriptor_impl.hpp \
|
---|
| 93 | Descriptors/AtomIdDescriptor_impl.hpp \
|
---|
| 94 | Descriptors/AtomOfMoleculeSelectionDescriptor_impl.hpp \
|
---|
| 95 | Descriptors/AtomSelectionDescriptor_impl.hpp \
|
---|
| 96 | Descriptors/AtomShapeDescriptor_impl.hpp \
|
---|
| 97 | Descriptors/AtomTypeDescriptor_impl.hpp \
|
---|
[36f507] | 98 | Descriptors/DescriptorBase_impl.hpp \
|
---|
[c42e60] | 99 | Descriptors/MoleculeDescriptor_impl.hpp \
|
---|
| 100 | Descriptors/MoleculeFormulaDescriptor_impl.hpp \
|
---|
| 101 | Descriptors/MoleculeIdDescriptor_impl.hpp \
|
---|
| 102 | Descriptors/MoleculeNameDescriptor_impl.hpp \
|
---|
| 103 | Descriptors/MoleculeOfAtomSelectionDescriptor_impl.hpp \
|
---|
| 104 | Descriptors/MoleculeOrderDescriptor_impl.hpp \
|
---|
| 105 | Descriptors/MoleculePtrDescriptor_impl.hpp \
|
---|
[36f507] | 106 | Descriptors/MoleculeSelectionDescriptor_impl.hpp \
|
---|
| 107 | Descriptors/SelectiveIterator_impl.hpp
|
---|
[3f9eba] | 108 |
|
---|
[9e23a3] | 109 | DYNAMICSSOURCE = \
|
---|
| 110 | Dynamics/MinimiseConstrainedPotential.cpp
|
---|
| 111 |
|
---|
| 112 | DYNAMICSHEADER = \
|
---|
[20943b] | 113 | Dynamics/LinearInterpolationBetweenSteps.hpp \
|
---|
[8009ce] | 114 | Dynamics/MinimiseConstrainedPotential.hpp \
|
---|
[435065] | 115 | Dynamics/OutputTemperature.hpp \
|
---|
| 116 | Dynamics/VerletForceIntegration.hpp
|
---|
[9e23a3] | 117 |
|
---|
[255829] | 118 | HELPERSSOURCE = \
|
---|
| 119 | Helpers/defs.cpp
|
---|
| 120 |
|
---|
| 121 | HELPERSHEADER = \
|
---|
| 122 | Helpers/defs.hpp \
|
---|
| 123 | Helpers/helpers.hpp
|
---|
| 124 |
|
---|
[194649] | 125 | THERMOSTATSOURCE = \
|
---|
| 126 | Thermostats/Berendsen.cpp \
|
---|
| 127 | Thermostats/GaussianThermostat.cpp \
|
---|
| 128 | Thermostats/Langevin.cpp \
|
---|
| 129 | Thermostats/NoseHoover.cpp \
|
---|
| 130 | Thermostats/NoThermostat.cpp \
|
---|
| 131 | Thermostats/Thermostat.cpp \
|
---|
| 132 | Thermostats/Woodcock.cpp
|
---|
[d193a2] | 133 |
|
---|
[194649] | 134 | THERMOSTATHEADER = \
|
---|
| 135 | Thermostats/Berendsen.hpp \
|
---|
| 136 | Thermostats/GaussianThermostat.hpp \
|
---|
| 137 | Thermostats/Langevin.hpp \
|
---|
| 138 | Thermostats/NoseHoover.hpp \
|
---|
| 139 | Thermostats/NoThermostat.hpp \
|
---|
| 140 | Thermostats/Thermostat.hpp \
|
---|
| 141 | Thermostats/Woodcock.hpp
|
---|
[d193a2] | 142 |
|
---|
[d74077] | 143 | TESSELATIONSOURCE = \
|
---|
| 144 | BoundaryLineSet.cpp \
|
---|
| 145 | BoundaryPointSet.cpp \
|
---|
| 146 | BoundaryPolygonSet.cpp \
|
---|
| 147 | BoundaryTriangleSet.cpp \
|
---|
| 148 | CandidateForTesselation.cpp \
|
---|
| 149 | tesselation.cpp \
|
---|
[8f4df1] | 150 | tesselationhelpers.cpp \
|
---|
[d74077] | 151 | TesselPoint.cpp
|
---|
| 152 |
|
---|
| 153 | TESSELATIONHEADER = \
|
---|
| 154 | BoundaryLineSet.hpp \
|
---|
[36f507] | 155 | BoundaryMaps.hpp \
|
---|
[d74077] | 156 | BoundaryPointSet.hpp \
|
---|
| 157 | BoundaryPolygonSet.hpp \
|
---|
| 158 | BoundaryTriangleSet.hpp \
|
---|
| 159 | CandidateForTesselation.hpp \
|
---|
[34c43a] | 160 | IPointCloud.hpp \
|
---|
| 161 | PointCloudAdaptor.hpp \
|
---|
[d74077] | 162 | tesselation.hpp \
|
---|
[8f4df1] | 163 | tesselationhelpers.hpp \
|
---|
[d74077] | 164 | TesselPoint.hpp
|
---|
| 165 |
|
---|
[255971] | 166 | MOLECUILDERSOURCE = \
|
---|
[efc3cb] | 167 | ${ANALYSISSOURCE} \
|
---|
| 168 | ${ATOMSOURCE} \
|
---|
[129204] | 169 | ${BONDSOURCE} \
|
---|
[efc3cb] | 170 | ${DESCRIPTORSOURCE} \
|
---|
[9e23a3] | 171 | ${DYNAMICSSOURCE} \
|
---|
[255829] | 172 | ${HELPERSSOURCE} \
|
---|
[194649] | 173 | ${THERMOSTATSOURCE} \
|
---|
[d74077] | 174 | ${TESSELATIONSOURCE} \
|
---|
[efc3cb] | 175 | boundary.cpp \
|
---|
[83c09a] | 176 | Box.cpp \
|
---|
[efc3cb] | 177 | config.cpp \
|
---|
[88104f] | 178 | ConfigFileBuffer.cpp \
|
---|
[efc3cb] | 179 | element.cpp \
|
---|
[5079a0] | 180 | elements_db.cpp \
|
---|
[efc3cb] | 181 | ellipsoid.cpp \
|
---|
[6f43ab] | 182 | Formula.cpp \
|
---|
[efc3cb] | 183 | graph.cpp \
|
---|
| 184 | linkedcell.cpp \
|
---|
| 185 | moleculelist.cpp \
|
---|
| 186 | molecule.cpp \
|
---|
| 187 | molecule_fragmentation.cpp \
|
---|
| 188 | molecule_geometry.cpp \
|
---|
| 189 | molecule_graph.cpp \
|
---|
| 190 | parser.cpp \
|
---|
| 191 | periodentafel.cpp \
|
---|
[a3fded] | 192 | ThermoStatContainer.cpp \
|
---|
[efc3cb] | 193 | triangleintersectionlist.cpp \
|
---|
[112f90] | 194 | UIElements/UIFactory.cpp \
|
---|
[9cd9ab] | 195 | version.c \
|
---|
[f649de] | 196 | World.cpp \
|
---|
| 197 | WorldTime.cpp
|
---|
[5f612ee] | 198 |
|
---|
[255971] | 199 | MOLECUILDERHEADER = \
|
---|
[efc3cb] | 200 | ${ANALYSISHEADER} \
|
---|
| 201 | ${ATOMHEADER} \
|
---|
[129204] | 202 | ${BONDHEADER} \
|
---|
[efc3cb] | 203 | ${DESCRIPTORHEADER} \
|
---|
[c42e60] | 204 | ${DESCRIPTORIMPLHEADER} \
|
---|
[9e23a3] | 205 | ${DYNAMICSHEADER} \
|
---|
[255829] | 206 | ${HELPERSHEADER} \
|
---|
[194649] | 207 | ${THERMOSTATHEADER} \
|
---|
[d74077] | 208 | ${TESSELATIONHEADER} \
|
---|
[efc3cb] | 209 | boundary.hpp \
|
---|
[83c09a] | 210 | Box.hpp \
|
---|
[efc3cb] | 211 | config.hpp \
|
---|
[88104f] | 212 | ConfigFileBuffer.hpp \
|
---|
[efc3cb] | 213 | element.hpp \
|
---|
[5079a0] | 214 | elements_db.hpp \
|
---|
[efc3cb] | 215 | ellipsoid.hpp \
|
---|
[6f43ab] | 216 | Formula.hpp \
|
---|
[efc3cb] | 217 | graph.hpp \
|
---|
| 218 | linkedcell.hpp \
|
---|
| 219 | molecule.hpp \
|
---|
| 220 | parser.hpp \
|
---|
| 221 | periodentafel.hpp \
|
---|
[a3fded] | 222 | ThermoStatContainer.hpp \
|
---|
[efc3cb] | 223 | triangleintersectionlist.hpp \
|
---|
[36f507] | 224 | types.hpp \
|
---|
[112f90] | 225 | UIElements/UIFactory.hpp \
|
---|
[9cd9ab] | 226 | version.h \
|
---|
[6bb605] | 227 | World.hpp \
|
---|
[8544a33] | 228 | World_calculations.hpp \
|
---|
[f649de] | 229 | WorldTime.hpp
|
---|
[3027f8] | 230 |
|
---|
[455573] | 231 | noinst_LTLIBRARIES += libMolecuilder.la
|
---|
[e5bf2b] | 232 | libMolecuilder_la_includedir = $(includedir)/MoleCuilder/
|
---|
[255971] | 233 |
|
---|
[e5bf2b] | 234 | nobase_libMolecuilder_la_include_HEADERS = ${MOLECUILDERHEADER}
|
---|
[255971] | 235 |
|
---|
| 236 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
| 237 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
| 238 | ## will therefore be treated as if it were literally part of the target name,
|
---|
| 239 | ## and the variable name derived from that.
|
---|
| 240 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
| 241 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
| 242 | ## from each source file. Note that it is not necessary to list header files
|
---|
| 243 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
[9cd9ab] | 244 | libMolecuilder_la_SOURCES = ${MOLECUILDERSOURCE}
|
---|
[255971] | 245 |
|
---|
| 246 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
| 247 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
| 248 | ## that all version information is kept in one place.
|
---|
[455573] | 249 | #libMolecuilder_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
[255971] | 250 |
|
---|
| 251 | ## The generated configuration header is installed in its own subdirectory of
|
---|
| 252 | ## $(libdir). The reason for this is that the configuration information put
|
---|
| 253 | ## into this header file describes the target platform the installed library
|
---|
| 254 | ## has been built for. Thus the file must not be installed into a location
|
---|
| 255 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
| 256 | ## Hierarchy Standard (FHS).
|
---|
| 257 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
| 258 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
| 259 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
| 260 | ## configuration header file is generated at configure time and should not be
|
---|
| 261 | ## shipped with the source tarball.
|
---|
[e5bf2b] | 262 | libMolecuilder_la_libincludedir = $(libdir)/MoleCuilder/include
|
---|
| 263 | nodist_libMolecuilder_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
[255971] | 264 |
|
---|
| 265 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
| 266 | ## architecture-dependent package configuration information. Occasionally,
|
---|
| 267 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
| 268 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
| 269 | pkgconfigdir = $(libdir)/pkgconfig
|
---|
[acbe1b] | 270 | pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
---|
[255971] | 271 |
|
---|
[ef9df36] | 272 |
|
---|
[455573] | 273 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements -I$(top_srcdir)/LinearAlgebra/src
|
---|
[ef9df36] | 274 |
|
---|
[255971] | 275 | noinst_LIBRARIES = libmenu.a
|
---|
[bd8788] | 276 | bin_PROGRAMS += molecuilder molecuildergui joiner analyzer
|
---|
[796aa6] | 277 | EXTRA_PROGRAMS = unity
|
---|
[04488a] | 278 |
|
---|
[14de469] | 279 | molecuilderdir = ${bindir}
|
---|
[b1d8092] | 280 |
|
---|
[9fe36b] | 281 | libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
|
---|
[b1d8092] | 282 |
|
---|
[6ac7ee] | 283 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
[b1d8092] | 284 |
|
---|
[fec381] | 285 | molecuilder_CXXFLAGS = $(AM_CPPFLAGS)
|
---|
[4d9c01] | 286 | #molecuilder_CXXFLAGS += -DNO_CACHING
|
---|
[79de12] | 287 | molecuilder_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
|
---|
[f4d063] | 288 | molecuilder_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
|
---|
[952f38] | 289 | molecuilder_LDADD = \
|
---|
[455573] | 290 | libMolecuilderUI.la \
|
---|
[bf4b9f] | 291 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
[a0064e] | 292 | ${CodePatterns_LIBS} \
|
---|
[79de12] | 293 | $(BOOST_THREAD_LIBS) \
|
---|
| 294 | $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
---|
| 295 | $(BOOST_RANDOM_LIBS) \
|
---|
| 296 | $(BOOST_SYSTEM_LIBS) \
|
---|
| 297 | $(BOOST_FILESYSTEM_LIBS)
|
---|
[b1d8092] | 298 |
|
---|
[4cf323d] | 299 | #Stuff for building the GUI using Qt
|
---|
[f4d063] | 300 | molecuildergui_SOURCES = builder.cpp builder_init.cpp builder_init.hpp
|
---|
[79de12] | 301 | molecuildergui_CXXFLAGS = $(AM_CPPFLAGS) -DUSE_GUI_QT
|
---|
| 302 | molecuildergui_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
|
---|
[952f38] | 303 | molecuildergui_LDADD = \
|
---|
[455573] | 304 | libMolecuilderQtUI.la \
|
---|
| 305 | libMolecuilderUI.la \
|
---|
[bf4b9f] | 306 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
[a0064e] | 307 | ${CodePatterns_LIBS} \
|
---|
[79de12] | 308 | $(BOOST_THREAD_LIBS) \
|
---|
| 309 | $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
---|
| 310 | $(BOOST_RANDOM_LIBS) \
|
---|
| 311 | $(BOOST_SYSTEM_LIBS) \
|
---|
| 312 | $(BOOST_FILESYSTEM_LIBS) \
|
---|
[455573] | 313 | $(GUI_LIBS)
|
---|
[b1d8092] | 314 |
|
---|
[255971] | 315 | joiner_SOURCES = joiner.cpp datacreator.cpp datacreator.hpp periodentafel.hpp
|
---|
| 316 | joiner_LDADD = \
|
---|
[acbe1b] | 317 | libMolecuilder.la \
|
---|
[455573] | 318 | libMolecuilderParser.la \
|
---|
| 319 | libMolecuilderShapes.la \
|
---|
| 320 | libMolecuilderRandomNumbers.la \
|
---|
[bf4b9f] | 321 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
[a0064e] | 322 | ${CodePatterns_LIBS} \
|
---|
[79de12] | 323 | $(BOOST_THREAD_LIBS)
|
---|
[b1d8092] | 324 |
|
---|
[255971] | 325 | analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
|
---|
| 326 | analyzer_LDADD = \
|
---|
[acbe1b] | 327 | libMolecuilder.la \
|
---|
[455573] | 328 | libMolecuilderParser.la \
|
---|
| 329 | libMolecuilderShapes.la \
|
---|
| 330 | libMolecuilderRandomNumbers.la \
|
---|
[bf4b9f] | 331 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
[a0064e] | 332 | ${CodePatterns_LIBS} \
|
---|
[79de12] | 333 | $(BOOST_THREAD_LIBS)
|
---|
[14de469] | 334 |
|
---|
[455573] | 335 | unity_SOURCES = unity.cpp
|
---|
[79de12] | 336 | unity_LDADD = \
|
---|
| 337 | ${CodePatterns_LIBS} \
|
---|
| 338 | $(BOOST_THREAD_LIBS) \
|
---|
| 339 | $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
---|
| 340 | $(BOOST_RANDOM_LIBS) \
|
---|
| 341 | $(BOOST_SYSTEM_LIBS) \
|
---|
| 342 | $(BOOST_FILESYSTEM_LIBS)
|
---|
[455573] | 343 |
|
---|
[65b6e0] | 344 |
|
---|
[a8eb4a] | 345 | FORCE:
|
---|
| 346 | $(srcdir)/.git-version: FORCE
|
---|
[f8be39] | 347 | @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
|
---|
| 348 | && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
|
---|
[a8eb4a] | 349 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
| 350 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
| 351 | else \
|
---|
| 352 | rm -f .git-version-t; \
|
---|
| 353 | fi
|
---|
| 354 |
|
---|
[db3dd2] | 355 | EXTRA_DIST = $(srcdir)/.git-version $(molecuilder_DATA)
|
---|
[a8eb4a] | 356 |
|
---|
| 357 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
[5f8660a] | 358 | echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
[a8eb4a] | 359 |
|
---|
[b8d1aeb] | 360 |
|
---|
[d223d5] | 361 | unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
|
---|
[b0b086] | 362 | echo "#include \"$(srcdir)/Helpers/MemDebug.cpp\"" > unity.cpp; \
|
---|
[d223d5] | 363 | list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
|
---|
[b0b086] | 364 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
[d223d5] | 365 | done; \
|
---|
| 366 | subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
|
---|
| 367 | olddir=$$PWD;\
|
---|
| 368 | cd $$directory && make unity.cpp;\
|
---|
| 369 | cd $$olddir;\
|
---|
| 370 | echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
|
---|
| 371 | done;\
|
---|
| 372 | echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
|
---|
| 373 | echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
|
---|
| 374 |
|
---|
[455573] | 375 | MOSTLYCLEANFILES += unity.cpp
|
---|
[1ee3b8d] | 376 |
|
---|