| [18eecf] | 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
 | 
|---|
 | 2 | # Also indentation by a single tab
 | 
|---|
 | 3 | 
 | 
|---|
| [455573] | 4 | check_PROGRAMS =
 | 
|---|
 | 5 | noinst_PROGRAMS =
 | 
|---|
 | 6 | TESTS =
 | 
|---|
| [53bc04] | 7 | XFAIL_TESTS =
 | 
|---|
| [4d4caf] | 8 | MOSTLYCLEANFILES =
 | 
|---|
| [e9e86f] | 9 | noinst_LTLIBRARIES =
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 | #AUTOMAKE_OPTIONS = no-dependencies
 | 
|---|
| [455573] | 12 | 
 | 
|---|
| [0cfc27] | 13 | if CONDCPPUNIT
 | 
|---|
 | 14 | 
 | 
|---|
| [455573] | 15 | include ../../src/Actions/unittests/Makefile.am
 | 
|---|
| [9b5a2c] | 16 | include ../../src/Analysis/unittests/Makefile.am
 | 
|---|
| [97c2550] | 17 | include ../../src/Atom/unittests/Makefile.am
 | 
|---|
| [455573] | 18 | include ../../src/Descriptors/unittests/Makefile.am
 | 
|---|
| [c1c6cb] | 19 | include ../../src/Dynamics/unittests/Makefile.am
 | 
|---|
| [592be9] | 20 | include ../../src/Element/unittests/Makefile.am
 | 
|---|
| [600a52] | 21 | include ../../src/Filling/unittests/Makefile.am
 | 
|---|
| [355af8] | 22 | include ../../src/FunctionApproximation/unittests/Makefile.am
 | 
|---|
| [feb7df] | 23 | include ../../src/Fragmentation/unittests/Makefile.am
 | 
|---|
| [c3df23] | 24 | include ../../src/Fragmentation/Exporters/unittests/Makefile.am
 | 
|---|
| [4694df] | 25 | include ../../src/Fragmentation/Homology/unittests/Makefile.am
 | 
|---|
| [e920061] | 26 | include ../../src/Fragmentation/Summation/unittests/Makefile.am
 | 
|---|
| [fbf143] | 27 | include ../../src/Fragmentation/Summation/Containers/unittests/Makefile.am
 | 
|---|
 | 28 | include ../../src/Fragmentation/Summation/SetValues/unittests/Makefile.am
 | 
|---|
| [629e43] | 29 | include ../../src/Graph/unittests/Makefile.am
 | 
|---|
| [004d5c] | 30 | 
 | 
|---|
 | 31 | if CONDJOBMARKET
 | 
|---|
| [cc5db5] | 32 | include ../../src/Jobs/unittests/Makefile.am
 | 
|---|
| [004d5c] | 33 | endif
 | 
|---|
 | 34 | 
 | 
|---|
| [91f592] | 35 | include ../../src/LinkedCell/unittests/Makefile.am
 | 
|---|
| [dbb533] | 36 | include ../../src/Parameters/unittests/Makefile.am
 | 
|---|
| [455573] | 37 | include ../../src/Parser/unittests/Makefile.am
 | 
|---|
| [6efcae] | 38 | include ../../src/Potentials/unittests/Makefile.am
 | 
|---|
| [3c1465] | 39 | include ../../src/Potentials/Specifics/unittests/Makefile.am
 | 
|---|
| [455573] | 40 | include ../../src/RandomNumbers/unittests/Makefile.am
 | 
|---|
 | 41 | include ../../src/Shapes/unittests/Makefile.am
 | 
|---|
| [0b004b] | 42 | include ../../src/Tesselation/unittests/Makefile.am
 | 
|---|
| [455573] | 43 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
 | 
|---|
 | 44 | include ../../src/UIElements/Menu/unittests/Makefile.am
 | 
|---|
| [c0bccb] | 45 | 
 | 
|---|
| [353326] | 46 | AM_LDFLAGS = \
 | 
|---|
| [53ef0d4] | 47 |         $(CodePatterns_LDFLAGS) ${CodePatterns_LIBS} \
 | 
|---|
| [353326] | 48 |         $(CPPUNIT_LIBS) \
 | 
|---|
 | 49 |         -ldl
 | 
|---|
| [4ecb2d] | 50 | AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/ThirdParty/LinearAlgebra/src ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
 | 
|---|
| [be90f1] | 51 | 
 | 
|---|
| [455573] | 52 | GENERALTESTS = \
 | 
|---|
| [5e6534] | 53 |   AtomIdSetUnitTest \
 | 
|---|
| [f844ef] | 54 |   BoxUnitTest \
 | 
|---|
| [dd067a] | 55 |   Box_BoundaryConditionsTest \
 | 
|---|
| [9f632c] | 56 |   FormulaUnittest \
 | 
|---|
| [9fb860] | 57 |   ListOfBondsUnitTest \
 | 
|---|
| [c67ff9] | 58 |   MoleculeUnitTest \
 | 
|---|
| [f649de] | 59 |   WorldTimeUnitTest
 | 
|---|
| [4fbca9c] | 60 | 
 | 
|---|
| [455573] | 61 | # these ones are checked
 | 
|---|
 | 62 | TESTS += $(GENERALTESTS)
 | 
|---|
 | 63 | # these ones are built for checking only
 | 
|---|
 | 64 | check_PROGRAMS += $(GENERALTESTS) 
 | 
|---|
 | 65 | # ... and not installed
 | 
|---|
| [fbbcde] | 66 | noinst_PROGRAMS += $(GENERALTESTS)
 | 
|---|
 | 67 | 
 | 
|---|
 | 68 | if CONDECUT
 | 
|---|
 | 69 | noinst_PROGRAMS += TestRunner
 | 
|---|
 | 70 | endif
 | 
|---|
 | 71 | 
 | 
|---|
| [e9e86f] | 72 | noinst_LTLIBRARIES += libUnitTest.la
 | 
|---|
 | 73 | libUnitTest_la_LDFLAGS = \
 | 
|---|
 | 74 |         $(AM_LDFLAGS)
 | 
|---|
 | 75 | libUnitTest_la_LIBADD =
 | 
|---|
 | 76 | 
 | 
|---|
 | 77 | #nobase_libUnitTest_la_include_HEADERS =
 | 
|---|
 | 78 | 
 | 
|---|
 | 79 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
 | 
|---|
 | 80 | ## target.  Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
 | 
|---|
 | 81 | ## will therefore be treated as if it were literally part of the target name,
 | 
|---|
 | 82 | ## and the variable name derived from that.
 | 
|---|
 | 83 | ## The file extension .cc is recognized by Automake, and makes it produce
 | 
|---|
 | 84 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
 | 
|---|
 | 85 | ## from each source file.  Note that it is not necessary to list header files
 | 
|---|
 | 86 | ## which are already listed elsewhere in a _HEADERS variable assignment.
 | 
|---|
 | 87 | libUnitTest_la_SOURCES = UnitTestMain.cpp
 | 
|---|
 | 88 | 
 | 
|---|
 | 89 | ## Instruct libtool to include ABI version information in the generated shared
 | 
|---|
 | 90 | ## library file (.so).  The library ABI version is defined in configure.ac, so
 | 
|---|
 | 91 | ## that all version information is kept in one place.
 | 
|---|
 | 92 | #libUnitTest_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
 | 
|---|
 | 93 | 
 | 
|---|
 | 94 | ## The generated configuration header is installed in its own subdirectory of
 | 
|---|
 | 95 | ## $(libdir).  The reason for this is that the configuration information put
 | 
|---|
 | 96 | ## into this header file describes the target platform the installed library
 | 
|---|
 | 97 | ## has been built for.  Thus the file must not be installed into a location
 | 
|---|
 | 98 | ## intended for architecture-independent files, as defined by the Filesystem
 | 
|---|
 | 99 | ## Hierarchy Standard (FHS).
 | 
|---|
 | 100 | ## The nodist_ prefix instructs Automake to not generate rules for including
 | 
|---|
 | 101 | ## the listed files in the distribution on 'make dist'.  Files that are listed
 | 
|---|
 | 102 | ## in _HEADERS variables are normally included in the distribution, but the
 | 
|---|
 | 103 | ## configuration header file is generated at configure time and should not be
 | 
|---|
 | 104 | ## shipped with the source tarball.
 | 
|---|
 | 105 | #libUnitTest_la_libincludedir = $(libdir)/MoleCuilder/include
 | 
|---|
 | 106 | #nodist_libUnitTest_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
 | 
|---|
 | 107 | 
 | 
|---|
 | 108 | ## Install the generated pkg-config file (.pc) into the expected location for
 | 
|---|
 | 109 | ## architecture-dependent package configuration information.  Occasionally,
 | 
|---|
 | 110 | ## pkg-config files are also used for architecture-independent data packages,
 | 
|---|
 | 111 | ## in which case the correct install location would be $(datadir)/pkgconfig.
 | 
|---|
 | 112 | #pkgconfigdir = $(libdir)/pkgconfig
 | 
|---|
 | 113 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
 | 
|---|
 | 114 | 
 | 
|---|
| [b9907c] | 115 | 
 | 
|---|
| [f08ae7] | 116 | BOOST_LIB = \
 | 
|---|
 | 117 |         $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
 | 
|---|
| [d7d022] | 118 |         $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
 | 
|---|
| [31ca5f] | 119 |         $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
 | 
|---|
| [353326] | 120 |         $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
 | 
|---|
 | 121 |         $(BOOST_THREAD_LDFLAGS) $(BOOST_THREAD_LIBS)
 | 
|---|
| [455573] | 122 | 
 | 
|---|
| [9d4ff35] | 123 | GENERALLIBS = \
 | 
|---|
 | 124 |         ../libMolecuilder.la \
 | 
|---|
| [4ecb2d] | 125 |         $(top_builddir)/ThirdParty/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
 | 
|---|
| [9d4ff35] | 126 |         ${CodePatterns_LIBS} \
 | 
|---|
 | 127 |         $(BOOST_LIB)
 | 
|---|
 | 128 | 
 | 
|---|
| [f4b5b7] | 129 | ALLLIBS = \
 | 
|---|
| [e9e86f] | 130 |         libUnitTest.la \
 | 
|---|
| [748fc7] | 131 |         ../libMolecuilder.la \
 | 
|---|
| [353326] | 132 |         ../libMolecuilderUI.la
 | 
|---|
| [eb0d77] | 133 | if CONDJOBMARKET
 | 
|---|
 | 134 | ALLLIBS += \
 | 
|---|
| [cb98f1] | 135 |         ../libMolecuilderJobs.la \
 | 
|---|
 | 136 |         ../libMolecuilderJobs_Work.la
 | 
|---|
| [eb0d77] | 137 | endif
 | 
|---|
 | 138 | ALLLIBS += \
 | 
|---|
| [4ecb2d] | 139 |         $(top_builddir)/ThirdParty/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
 | 
|---|
| [455573] | 140 |         ${CodePatterns_LIBS} \
 | 
|---|
 | 141 |         $(BOOST_LIB)
 | 
|---|
| [4d9c01] | 142 | 
 | 
|---|
| [9b6b2f] | 143 | TESTSOURCES = \
 | 
|---|
| [455573] | 144 |         ${ACTIONTESTSSOURCES} \
 | 
|---|
| [9b5a2c] | 145 |         ${ANALYSISTESTSSOURCES} \
 | 
|---|
| [455573] | 146 |         ${DESCRIPTORTESTSSOURCES} \
 | 
|---|
| [592be9] | 147 |         ${ELEMENTTESTSSOURCES} \
 | 
|---|
| [600a52] | 148 |         ${FILLINGTESTSSOURCES} \
 | 
|---|
| [feb7df] | 149 |         ${FRAGMENTATIONTESTSSOURCES} \
 | 
|---|
| [629e43] | 150 |         ${GRAPHTESTSSOURCES} \
 | 
|---|
| [794bc8] | 151 |         ${LINKEDCELLTESTSSOURCES} \
 | 
|---|
| [455573] | 152 |         ${LINEARALGEBRATESTSSOURCES} \
 | 
|---|
| [dbb533] | 153 |         ${PARAMETERTESTSSOURCES} \
 | 
|---|
| [455573] | 154 |         ${PARSERTESTSSOURCES} \
 | 
|---|
 | 155 |         ${RANDOMNUMBERTESTSSOURCES} \
 | 
|---|
 | 156 |         ${SHAPETESTSSOURCES} \
 | 
|---|
| [0b004b] | 157 |         ${TESSELATIONTESTSSOURCES} \
 | 
|---|
| [455573] | 158 |         $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
 | 
|---|
 | 159 |         ${UIELEMENTSMENUTESTSSOURCES} \
 | 
|---|
| [99f4ee] | 160 |         stubs/ObserverStub.cpp \
 | 
|---|
| [5e6534] | 161 |         AtomIdSetUnitTest.cpp \
 | 
|---|
| [f844ef] | 162 |   BoxUnitTest.cpp \
 | 
|---|
| [dd067a] | 163 |         Box_BoundaryConditionsUnitTest.cpp \
 | 
|---|
| [f844ef] | 164 |   FormulaUnitTest.cpp \
 | 
|---|
 | 165 |   ListOfBondsUnitTest.cpp \
 | 
|---|
| [c67ff9] | 166 |   MoleculeUnitTest.cpp \
 | 
|---|
| [f649de] | 167 |   WorldTimeUnitTest.cpp
 | 
|---|
| [9b6b2f] | 168 | 
 | 
|---|
 | 169 | TESTHEADERS = \
 | 
|---|
| [455573] | 170 |         ${ACTIONTESTSHEADERS} \
 | 
|---|
| [9b5a2c] | 171 |         ${ANALYSISTESTSHEADERS} \
 | 
|---|
| [455573] | 172 |         ${DESCRIPTORTESTSHEADERS} \
 | 
|---|
| [592be9] | 173 |         ${ELEMENTTESTSHEADERS} \
 | 
|---|
| [600a52] | 174 |         ${FILLINGTESTSHEADERS} \
 | 
|---|
| [feb7df] | 175 |         ${FRAGMENTATIONTESTSHEADERS} \
 | 
|---|
| [629e43] | 176 |         ${GRAPHTESTSHEADERS} \
 | 
|---|
| [794bc8] | 177 |         ${LINKEDCELLTESTHEADERS} \
 | 
|---|
| [455573] | 178 |         ${LINEARALGEBRATESTSHEADERS} \
 | 
|---|
| [dbb533] | 179 |         ${PARAMETERTESTSHEADERS} \
 | 
|---|
| [455573] | 180 |         ${PARSERTESTSHEADERS} \
 | 
|---|
 | 181 |         ${RANDOMNUMBERTESTSHEADERS} \
 | 
|---|
 | 182 |         ${SHAPETESTSHEADERS} \
 | 
|---|
| [0b004b] | 183 |         ${TESSELATIONTESTSHEADERS} \
 | 
|---|
| [455573] | 184 |         $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
 | 
|---|
 | 185 |         ${UIELEMENTSMENUTESTSHEADERS} \
 | 
|---|
| [99f4ee] | 186 |         stubs/ObserverStub.hpp \
 | 
|---|
| [5e6534] | 187 |         AtomIdSetUnitTest.hpp \
 | 
|---|
| [f844ef] | 188 |   BoxUnitTest.hpp \
 | 
|---|
| [dd067a] | 189 |         Box_BoundaryConditionsUnitTest.hpp \
 | 
|---|
| [f844ef] | 190 |   FormulaUnitTest.hpp \
 | 
|---|
 | 191 |   ListOfBondsUnitTest.hpp \
 | 
|---|
| [c67ff9] | 192 |   MoleculeUnitTest.hpp \
 | 
|---|
| [bf4b9f] | 193 |   WorldTimeUnitTest.hpp
 | 
|---|
| [9fb860] | 194 |   
 | 
|---|
| [9b6b2f] | 195 | 
 | 
|---|
| [e9e86f] | 196 | BoxUnitTest_SOURCES = \
 | 
|---|
| [f844ef] | 197 |         BoxUnitTest.cpp \
 | 
|---|
| [99f4ee] | 198 |         BoxUnitTest.hpp \
 | 
|---|
 | 199 |         stubs/ObserverStub.cpp \
 | 
|---|
| [da1e92] | 200 |         stubs/ObserverStub.hpp \
 | 
|---|
 | 201 |         ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
 | 
|---|
 | 202 |         ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
 | 
|---|
| [9d4ff35] | 203 | BoxUnitTest_LDADD = \
 | 
|---|
| [748fc7] | 204 |         $(ALLLIBS) \
 | 
|---|
| [9d4ff35] | 205 |         ../libMolecuilderShapes.la \
 | 
|---|
| [748fc7] | 206 |         ../libMolecuilderHelpers.la
 | 
|---|
| [77bc4f] | 207 | 
 | 
|---|
| [e9e86f] | 208 | AtomIdSetUnitTest_SOURCES = \
 | 
|---|
| [5e6534] | 209 |         AtomIdSetUnitTest.cpp \
 | 
|---|
 | 210 |         AtomIdSetUnitTest.hpp
 | 
|---|
 | 211 | AtomIdSetUnitTest_LDADD =  $(ALLLIBS)
 | 
|---|
 | 212 | 
 | 
|---|
| [e9e86f] | 213 | Box_BoundaryConditionsTest_SOURCES = \
 | 
|---|
| [dd067a] | 214 |         Box_BoundaryConditionsUnitTest.cpp \
 | 
|---|
| [748fc7] | 215 |         Box_BoundaryConditionsUnitTest.hpp
 | 
|---|
| [dd067a] | 216 | Box_BoundaryConditionsTest_LDADD = \
 | 
|---|
| [748fc7] | 217 |         $(ALLLIBS) \
 | 
|---|
 | 218 |         ../libMolecuilderShapes.la \
 | 
|---|
 | 219 |         ../libMolecuilderHelpers.la
 | 
|---|
| [dd067a] | 220 | 
 | 
|---|
| [e9e86f] | 221 | FormulaUnittest_SOURCES = \
 | 
|---|
| [f844ef] | 222 |         FormulaUnitTest.cpp \
 | 
|---|
 | 223 |         FormulaUnitTest.hpp
 | 
|---|
| [9d4ff35] | 224 | FormulaUnittest_LDADD = $(ALLLIBS)
 | 
|---|
| [9f632c] | 225 | 
 | 
|---|
| [e9e86f] | 226 | ListOfBondsUnitTest_SOURCES = \
 | 
|---|
| [f844ef] | 227 |         ListOfBondsUnitTest.cpp \
 | 
|---|
 | 228 |         ListOfBondsUnitTest.hpp 
 | 
|---|
| [9d4ff35] | 229 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
 | 
|---|
| [266237] | 230 | 
 | 
|---|
| [e9e86f] | 231 | MoleculeUnitTest_SOURCES = \
 | 
|---|
| [c67ff9] | 232 |         MoleculeUnitTest.cpp \
 | 
|---|
 | 233 |         MoleculeUnitTest.hpp
 | 
|---|
| [353326] | 234 | MoleculeUnitTest_LDADD = \
 | 
|---|
 | 235 |         $(ALLLIBS) \
 | 
|---|
 | 236 |         ../libMolecuilderShapes.la \
 | 
|---|
 | 237 |         ../libMolecuilderHelpers.la
 | 
|---|
| [c67ff9] | 238 | 
 | 
|---|
| [e9e86f] | 239 | WorldTimeUnitTest_SOURCES = \
 | 
|---|
| [f649de] | 240 |         WorldTimeUnitTest.cpp \
 | 
|---|
| [748fc7] | 241 |         WorldTimeUnitTest.hpp
 | 
|---|
| [e9e86f] | 242 | WorldTimeUnitTest_LDADD = \
 | 
|---|
| [748fc7] | 243 |         $(ALLLIBS) \
 | 
|---|
 | 244 |         ../libMolecuilderShapes.la \
 | 
|---|
 | 245 |         ../libMolecuilderHelpers.la
 | 
|---|
| [f649de] | 246 | 
 | 
|---|
 | 247 | 
 | 
|---|
| [36166d] | 248 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
 | 
|---|
| [b37436] | 249 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
 | 
|---|
| [7a1ce5] | 250 | 
 | 
|---|
| [18eecf] | 251 | #AUTOMAKE_OPTIONS = parallel-tests
 | 
|---|
| [0cfc27] | 252 | 
 | 
|---|
 | 253 | endif
 | 
|---|