| 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
|---|
| 2 | # Also indentation by a single tab
|
|---|
| 3 |
|
|---|
| 4 | SUBDIRS = Actions Exceptions Helpers LinearAlgebra Parser UIElements
|
|---|
| 5 |
|
|---|
| 6 | ATOMSOURCE = \
|
|---|
| 7 | atom.cpp \
|
|---|
| 8 | AtomicInfo.cpp \
|
|---|
| 9 | atom_atominfo.cpp \
|
|---|
| 10 | atom_bondedparticle.cpp \
|
|---|
| 11 | atom_bondedparticleinfo.cpp \
|
|---|
| 12 | atom_graphnode.cpp \
|
|---|
| 13 | atom_graphnodeinfo.cpp \
|
|---|
| 14 | atom_particleinfo.cpp \
|
|---|
| 15 | atom_trajectoryparticle.cpp \
|
|---|
| 16 | atom_trajectoryparticleinfo.cpp
|
|---|
| 17 | ATOMHEADER = \
|
|---|
| 18 | atom.hpp \
|
|---|
| 19 | AtomicInfo.hpp \
|
|---|
| 20 | atom_atominfo.hpp \
|
|---|
| 21 | atom_bondedparticle.hpp \
|
|---|
| 22 | atom_bondedparticleinfo.hpp \
|
|---|
| 23 | atom_graphnode.hpp \
|
|---|
| 24 | atom_graphnodeinfo.hpp \
|
|---|
| 25 | atom_particleinfo.hpp \
|
|---|
| 26 | atom_trajectoryparticle.hpp \
|
|---|
| 27 | atom_trajectoryparticleinfo.hpp
|
|---|
| 28 |
|
|---|
| 29 | ANALYSISSOURCE = \
|
|---|
| 30 | analysis_bonds.cpp \
|
|---|
| 31 | analysis_correlation.cpp
|
|---|
| 32 | ANALYSISHEADER = \
|
|---|
| 33 | analysis_bonds.hpp \
|
|---|
| 34 | analysis_correlation.hpp
|
|---|
| 35 |
|
|---|
| 36 | ACTIONSSOURCE = \
|
|---|
| 37 | Actions/Action.cpp \
|
|---|
| 38 | Actions/ActionHistory.cpp \
|
|---|
| 39 | Actions/ActionRegistry.cpp \
|
|---|
| 40 | Actions/ActionSequence.cpp \
|
|---|
| 41 | Actions/ActionTraits.cpp \
|
|---|
| 42 | Actions/ErrorAction.cpp \
|
|---|
| 43 | Actions/MakroAction.cpp \
|
|---|
| 44 | Actions/ManipulateAtomsProcess.cpp \
|
|---|
| 45 | Actions/MethodAction.cpp \
|
|---|
| 46 | Actions/OptionRegistry.cpp \
|
|---|
| 47 | Actions/OptionTrait.cpp \
|
|---|
| 48 | Actions/Process.cpp
|
|---|
| 49 |
|
|---|
| 50 | ACTIONSHEADER = \
|
|---|
| 51 | Actions/Action.hpp \
|
|---|
| 52 | Actions/ActionHistory.hpp \
|
|---|
| 53 | Actions/ActionRegistry.hpp \
|
|---|
| 54 | Actions/ActionSequence.hpp \
|
|---|
| 55 | Actions/ActionTraits.hpp \
|
|---|
| 56 | Actions/Calculation.hpp \
|
|---|
| 57 | Actions/Calculation_impl.hpp \
|
|---|
| 58 | Actions/ErrorAction.hpp \
|
|---|
| 59 | Actions/MakroAction.hpp \
|
|---|
| 60 | Actions/ManipulateAtomsProcess.hpp \
|
|---|
| 61 | Actions/MethodAction.hpp \
|
|---|
| 62 | Actions/OptionRegistry.hpp \
|
|---|
| 63 | Actions/OptionTrait.hpp \
|
|---|
| 64 | Actions/Process.hpp
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 | PATTERNSOURCE = \
|
|---|
| 68 | Patterns/Observer.cpp
|
|---|
| 69 | PATTERNHEADER = \
|
|---|
| 70 | Patterns/Cacheable.hpp \
|
|---|
| 71 | Patterns/Observer.hpp \
|
|---|
| 72 | Patterns/Singleton.hpp
|
|---|
| 73 |
|
|---|
| 74 | SHAPESOURCE = \
|
|---|
| 75 | Shapes/BaseShapes.cpp \
|
|---|
| 76 | Shapes/Shape.cpp \
|
|---|
| 77 | Shapes/ShapeOps.cpp
|
|---|
| 78 | SHAPEHEADER = \
|
|---|
| 79 | Shapes/BaseShapes.hpp \
|
|---|
| 80 | Shapes/Shape.hpp \
|
|---|
| 81 | Shapes/ShapeOps.hpp
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
|---|
| 85 | Descriptors/AtomIdDescriptor.cpp \
|
|---|
| 86 | Descriptors/AtomSelectionDescriptor.cpp \
|
|---|
| 87 | Descriptors/AtomShapeDescriptor.cpp \
|
|---|
| 88 | Descriptors/AtomTypeDescriptor.cpp \
|
|---|
| 89 | Descriptors/MoleculeDescriptor.cpp \
|
|---|
| 90 | Descriptors/MoleculeFormulaDescriptor.cpp \
|
|---|
| 91 | Descriptors/MoleculeIdDescriptor.cpp \
|
|---|
| 92 | Descriptors/MoleculeNameDescriptor.cpp \
|
|---|
| 93 | Descriptors/MoleculePtrDescriptor.cpp \
|
|---|
| 94 | Descriptors/MoleculeSelectionDescriptor.cpp
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
|---|
| 98 | Descriptors/AtomIdDescriptor.hpp \
|
|---|
| 99 | Descriptors/AtomSelectionDescriptor.hpp \
|
|---|
| 100 | Descriptors/AtomShapeDescriptor.hpp \
|
|---|
| 101 | Descriptors/AtomTypeDescriptor.hpp \
|
|---|
| 102 | Descriptors/MoleculeDescriptor.hpp \
|
|---|
| 103 | Descriptors/MoleculeFormulaDescriptor.hpp \
|
|---|
| 104 | Descriptors/MoleculeIdDescriptor.hpp \
|
|---|
| 105 | Descriptors/MoleculeNameDescriptor.hpp \
|
|---|
| 106 | Descriptors/MoleculePtrDescriptor.hpp \
|
|---|
| 107 | Descriptors/MoleculeSelectionDescriptor.cpp
|
|---|
| 108 |
|
|---|
| 109 | THERMOSTATSOURCE = \
|
|---|
| 110 | Thermostats/Berendsen.cpp \
|
|---|
| 111 | Thermostats/GaussianThermostat.cpp \
|
|---|
| 112 | Thermostats/Langevin.cpp \
|
|---|
| 113 | Thermostats/NoseHoover.cpp \
|
|---|
| 114 | Thermostats/NoThermostat.cpp \
|
|---|
| 115 | Thermostats/Thermostat.cpp \
|
|---|
| 116 | Thermostats/Woodcock.cpp
|
|---|
| 117 |
|
|---|
| 118 | THERMOSTATHEADER = \
|
|---|
| 119 | Thermostats/Berendsen.hpp \
|
|---|
| 120 | Thermostats/GaussianThermostat.hpp \
|
|---|
| 121 | Thermostats/Langevin.hpp \
|
|---|
| 122 | Thermostats/NoseHoover.hpp \
|
|---|
| 123 | Thermostats/NoThermostat.hpp \
|
|---|
| 124 | Thermostats/Thermostat.hpp \
|
|---|
| 125 | Thermostats/Woodcock.hpp
|
|---|
| 126 |
|
|---|
| 127 | TESSELATIONSOURCE = \
|
|---|
| 128 | BoundaryLineSet.cpp \
|
|---|
| 129 | BoundaryPointSet.cpp \
|
|---|
| 130 | BoundaryPolygonSet.cpp \
|
|---|
| 131 | BoundaryTriangleSet.cpp \
|
|---|
| 132 | CandidateForTesselation.cpp \
|
|---|
| 133 | PointCloud.cpp \
|
|---|
| 134 | tesselation.cpp \
|
|---|
| 135 | tesselationhelpers.cpp \
|
|---|
| 136 | TesselPoint.cpp
|
|---|
| 137 |
|
|---|
| 138 | TESSELATIONHEADER = \
|
|---|
| 139 | BoundaryLineSet.hpp \
|
|---|
| 140 | BoundaryPointSet.hpp \
|
|---|
| 141 | BoundaryPolygonSet.hpp \
|
|---|
| 142 | BoundaryTriangleSet.hpp \
|
|---|
| 143 | CandidateForTesselation.hpp \
|
|---|
| 144 | PointCloud.hpp \
|
|---|
| 145 | tesselation.hpp \
|
|---|
| 146 | tesselationhelpers.hpp \
|
|---|
| 147 | TesselPoint.hpp
|
|---|
| 148 |
|
|---|
| 149 | MOLECUILDERSOURCE = \
|
|---|
| 150 | ${ANALYSISSOURCE} \
|
|---|
| 151 | ${ACTIONSSOURCE} \
|
|---|
| 152 | ${ATOMSOURCE} \
|
|---|
| 153 | ${PATTERNSOURCE} \
|
|---|
| 154 | ${SHAPESOURCE} \
|
|---|
| 155 | ${DESCRIPTORSOURCE} \
|
|---|
| 156 | ${THERMOSTATSOURCE} \
|
|---|
| 157 | ${TESSELATIONSOURCE} \
|
|---|
| 158 | bond.cpp \
|
|---|
| 159 | bondgraph.cpp \
|
|---|
| 160 | boundary.cpp \
|
|---|
| 161 | Box.cpp \
|
|---|
| 162 | config.cpp \
|
|---|
| 163 | ConfigFileBuffer.cpp \
|
|---|
| 164 | defs.cpp \
|
|---|
| 165 | element.cpp \
|
|---|
| 166 | elements_db.cpp \
|
|---|
| 167 | ellipsoid.cpp \
|
|---|
| 168 | Formula.cpp \
|
|---|
| 169 | graph.cpp \
|
|---|
| 170 | leastsquaremin.cpp \
|
|---|
| 171 | linkedcell.cpp \
|
|---|
| 172 | moleculelist.cpp \
|
|---|
| 173 | molecule.cpp \
|
|---|
| 174 | molecule_dynamics.cpp \
|
|---|
| 175 | molecule_fragmentation.cpp \
|
|---|
| 176 | molecule_geometry.cpp \
|
|---|
| 177 | molecule_graph.cpp \
|
|---|
| 178 | molecule_pointcloud.cpp \
|
|---|
| 179 | parser.cpp \
|
|---|
| 180 | periodentafel.cpp \
|
|---|
| 181 | ThermoStatContainer.cpp \
|
|---|
| 182 | triangleintersectionlist.cpp \
|
|---|
| 183 | UIElements/UIFactory.cpp \
|
|---|
| 184 | World.cpp
|
|---|
| 185 |
|
|---|
| 186 | MOLECUILDERHEADER = \
|
|---|
| 187 | ${ANALYSISHEADER} \
|
|---|
| 188 | ${ACTIONSHEADER} \
|
|---|
| 189 | ${ATOMHEADER} \
|
|---|
| 190 | ${PATTERNHEADER} \
|
|---|
| 191 | ${SHAPEHEADER} \
|
|---|
| 192 | ${DESCRIPTORHEADER} \
|
|---|
| 193 | ${THERMOSTATHEADER} \
|
|---|
| 194 | ${TESSELATIONHEADER} \
|
|---|
| 195 | bond.hpp \
|
|---|
| 196 | bondgraph.hpp \
|
|---|
| 197 | boundary.hpp \
|
|---|
| 198 | Box.hpp \
|
|---|
| 199 | config.hpp \
|
|---|
| 200 | ConfigFileBuffer.hpp \
|
|---|
| 201 | defs.hpp \
|
|---|
| 202 | element.hpp \
|
|---|
| 203 | elements_db.hpp \
|
|---|
| 204 | ellipsoid.hpp \
|
|---|
| 205 | Formula.hpp \
|
|---|
| 206 | graph.hpp \
|
|---|
| 207 | leastsquaremin.hpp \
|
|---|
| 208 | linkedcell.hpp \
|
|---|
| 209 | lists.hpp \
|
|---|
| 210 | molecule.hpp \
|
|---|
| 211 | parser.hpp \
|
|---|
| 212 | periodentafel.hpp \
|
|---|
| 213 | stackclass.hpp \
|
|---|
| 214 | ThermoStatContainer.hpp \
|
|---|
| 215 | triangleintersectionlist.hpp \
|
|---|
| 216 | UIElements/UIFactory.hpp \
|
|---|
| 217 | World.hpp
|
|---|
| 218 |
|
|---|
| 219 | lib_LTLIBRARIES = libMolecuilder-@MOLECUILDER_API_VERSION@.la
|
|---|
| 220 | libMolecuilder_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
|
|---|
| 221 | libMolecuilder_LIBS = \
|
|---|
| 222 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 223 | ${BOOST_PROGRAM_OPTIONS_LIB}
|
|---|
| 224 |
|
|---|
| 225 | # UIElements/libMolecuilderUI.a \
|
|---|
| 226 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 227 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 228 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 229 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 230 | $(BOOST_LIB) \
|
|---|
| 231 | ${BOOST_THREAD_LIB}
|
|---|
| 232 |
|
|---|
| 233 | nobase_libMolecuilder_include_HEADERS = ${MOLECUILDERHEADER}
|
|---|
| 234 |
|
|---|
| 235 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
|---|
| 236 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
|---|
| 237 | ## will therefore be treated as if it were literally part of the target name,
|
|---|
| 238 | ## and the variable name derived from that.
|
|---|
| 239 | ## The file extension .cc is recognized by Automake, and makes it produce
|
|---|
| 240 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
|---|
| 241 | ## from each source file. Note that it is not necessary to list header files
|
|---|
| 242 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
|---|
| 243 | libMolecuilder_@MOLECUILDER_API_VERSION@_la_SOURCES = ${MOLECUILDERSOURCE} $(srcdir)/version.c
|
|---|
| 244 |
|
|---|
| 245 | ## Instruct libtool to include ABI version information in the generated shared
|
|---|
| 246 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
|---|
| 247 | ## that all version information is kept in one place.
|
|---|
| 248 | libMolecuilder_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
|---|
| 249 |
|
|---|
| 250 | ## The generated configuration header is installed in its own subdirectory of
|
|---|
| 251 | ## $(libdir). The reason for this is that the configuration information put
|
|---|
| 252 | ## into this header file describes the target platform the installed library
|
|---|
| 253 | ## has been built for. Thus the file must not be installed into a location
|
|---|
| 254 | ## intended for architecture-independent files, as defined by the Filesystem
|
|---|
| 255 | ## Hierarchy Standard (FHS).
|
|---|
| 256 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
|---|
| 257 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
|---|
| 258 | ## in _HEADERS variables are normally included in the distribution, but the
|
|---|
| 259 | ## configuration header file is generated at configure time and should not be
|
|---|
| 260 | ## shipped with the source tarball.
|
|---|
| 261 | libMolecuilder_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
|
|---|
| 262 | nodist_libMolecuilder_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
|---|
| 263 |
|
|---|
| 264 | ## Install the generated pkg-config file (.pc) into the expected location for
|
|---|
| 265 | ## architecture-dependent package configuration information. Occasionally,
|
|---|
| 266 | ## pkg-config files are also used for architecture-independent data packages,
|
|---|
| 267 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
|---|
| 268 | pkgconfigdir = $(libdir)/pkgconfig
|
|---|
| 269 | pkgconfig_DATA = $(top_builddir)/molecuilder-$(MOLECUILDER_API_VERSION).pc
|
|---|
| 270 |
|
|---|
| 271 |
|
|---|
| 272 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_THREAD_LIB)
|
|---|
| 273 | GUI_LIBS = ${QT_LDADD} ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS}
|
|---|
| 274 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
|---|
| 275 |
|
|---|
| 276 | noinst_LIBRARIES = libmenu.a
|
|---|
| 277 | bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
|
|---|
| 278 | EXTRA_PROGRAMS = unity
|
|---|
| 279 |
|
|---|
| 280 | molecuilderdir = ${bindir}
|
|---|
| 281 |
|
|---|
| 282 | libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
|
|---|
| 283 |
|
|---|
| 284 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
|---|
| 285 |
|
|---|
| 286 | molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
|
|---|
| 287 | #molecuilder_CXXFLAGS += -DNO_CACHING
|
|---|
| 288 | molecuilder_LDFLAGS = $(BOOST_LIB)
|
|---|
| 289 | molecuilder_SOURCES = builder.cpp
|
|---|
| 290 | molecuilder_LDADD = \
|
|---|
| 291 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 292 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 293 | libMolecuilder-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 294 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 295 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 296 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 297 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 298 | $(BOOST_LIB)
|
|---|
| 299 |
|
|---|
| 300 | #Stuff for building the GUI using Qt
|
|---|
| 301 | molecuildergui_SOURCES = builder.cpp
|
|---|
| 302 | molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT
|
|---|
| 303 | molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS}
|
|---|
| 304 |
|
|---|
| 305 | unity_SOURCES = unity.cpp
|
|---|
| 306 | unity_LDADD = $(BOOST_LIB)
|
|---|
| 307 |
|
|---|
| 308 | molecuildergui_LDADD = \
|
|---|
| 309 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 310 | UIElements/libMolecuilderQtUI-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 311 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 312 | libMolecuilder-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 313 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 314 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 315 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 316 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 317 | $(BOOST_LIB) \
|
|---|
| 318 | ${GUI_LIBS}
|
|---|
| 319 |
|
|---|
| 320 | joiner_SOURCES = joiner.cpp datacreator.cpp datacreator.hpp periodentafel.hpp
|
|---|
| 321 | joiner_LDADD = \
|
|---|
| 322 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 323 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 324 | libMolecuilder-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 325 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 326 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 327 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 328 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 329 | $(BOOST_LIB)
|
|---|
| 330 |
|
|---|
| 331 | analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
|
|---|
| 332 | analyzer_LDADD = \
|
|---|
| 333 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 334 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 335 | libMolecuilder-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 336 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 337 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 338 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 339 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
|---|
| 340 | $(BOOST_LIB)
|
|---|
| 341 |
|
|---|
| 342 | #EXTRA_DIST = ${molecuilder_DATA}
|
|---|
| 343 |
|
|---|
| 344 | FORCE:
|
|---|
| 345 | $(srcdir)/.git-version: FORCE
|
|---|
| 346 | @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
|
|---|
| 347 | && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
|
|---|
| 348 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
|---|
| 349 | mv -f .git-version-t $(srcdir)/.git-version; \
|
|---|
| 350 | else \
|
|---|
| 351 | rm -f .git-version-t; \
|
|---|
| 352 | fi
|
|---|
| 353 |
|
|---|
| 354 | EXTRA_DIST = $(srcdir)/.git-version
|
|---|
| 355 |
|
|---|
| 356 | $(srcdir)/version.c: $(srcdir)/.git-version
|
|---|
| 357 | echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
|
|---|
| 358 |
|
|---|
| 359 |
|
|---|
| 360 | unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
|
|---|
| 361 | echo "#include \"$(srcdir)/Helpers/MemDebug.cpp\"" > unity.cpp; \
|
|---|
| 362 | list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
|
|---|
| 363 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
|---|
| 364 | done; \
|
|---|
| 365 | subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
|
|---|
| 366 | olddir=$$PWD;\
|
|---|
| 367 | cd $$directory && make unity.cpp;\
|
|---|
| 368 | cd $$olddir;\
|
|---|
| 369 | echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
|
|---|
| 370 | done;\
|
|---|
| 371 | echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
|
|---|
| 372 | echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
|
|---|
| 373 |
|
|---|
| 374 | MOSTLYCLEANFILES = allmocs.moc.cpp unity.cpp
|
|---|
| 375 |
|
|---|