source: git/libpolys/tests/Makefile.am @ c2eb2e

spielwiese
Last change on this file since c2eb2e was c2eb2e, checked in by Volker Braun <vbraun.name@…>, 13 years ago
make install and make distcheck work now
  • Property mode set to 100644
File size: 3.1 KB
Line 
1CXXTEMPLFLAGS = -O0 --no-exceptions ##  ## -fno-implicit-templates
2
3if ENABLE_FACTORY
4  USE_FACTORY = -L${top_builddir}/../factory
5else
6  USE_FACTORY =
7endif
8
9## for testing...
10AM_LDFLAGS = -L${top_builddir}/polys -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc
11
12
13AM_CFLAGS = -g -Wextra -Wall -Wno-long-long ${PIPE}
14## -pedantic
15
16AM_CXXFLAGS = $(AM_CFLAGS) ${CXXTEMPLFLAGS}
17
18INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS}
19
20
21TESTS = simple_test coeffs_test rings_test polys_test
22check_PROGRAMS = $(TESTS)
23
24simple_test_SOURCES = simple_test_runner.cpp
25coeffs_test_SOURCES = coeffs_test_runner.cpp
26polys_test_SOURCES = polys_test_runner.cpp
27rings_test_SOURCES = rings_test_runner.cpp
28
29polys_test_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS}
30rings_test_LDFLAGS = $(polys_test_LDFLAGS)
31
32coeffs_test_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS}
33polys_test_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} $(coeffs_test_LDADD)
34rings_test_LDADD = $(polys_test_LDADD)
35
36
37BUILT_SOURCES = gftables MOD \
38        $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES)
39
40gftables: ${top_srcdir}/../factory/gftables
41        ln -snf ${top_srcdir}/../factory/gftables ${builddir}
42
43MOD: ${top_builddir}/polys/.libs
44        ln -snf ${top_builddir}/polys/.libs/ ${builddir}/MOD
45
46# How to generate *_runner.cpp
47simple_test_runner.cpp: simple_test.h
48        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/simple_test.h
49
50coeffs_test_runner.cpp: coeffs_test.h
51        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/coeffs_test.h
52
53polys_test_runner.cpp: polys_test.h
54        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/polys_test.h
55
56rings_test_runner.cpp: rings_test.h
57        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/rings_test.h
58
59CLEANFILES = $(BUILT_SOURCES)
60
61EXTRA_DIST = simple_test.h coeffs_test.h polys_test.h rings_test.h common.h             \
62    cxxtest/Descriptions.h       cxxtest/ParenPrinter.h      cxxtest/TestListener.h     \
63    cxxtest/DummyDescriptions.h  cxxtest/QtGui.h             cxxtest/TestRunner.h       \
64    cxxtest/ErrorFormatter.h     cxxtest/RealDescriptions.h  cxxtest/TestSuite.h        \
65    cxxtest/ErrorPrinter.h       cxxtest/SelfTest.h          cxxtest/TestTracker.h      \
66    cxxtest/Flags.h              cxxtest/StdHeaders.h        cxxtest/ValueTraits.h      \
67    cxxtest/GlobalFixture.h      cxxtest/StdioFilePrinter.h  cxxtest/Win32Gui.h         \
68    cxxtest/Gui.h                cxxtest/StdioPrinter.h      cxxtest/X11Gui.h           \
69    cxxtest/LinkedList.h         cxxtest/StdValueTraits.h    cxxtest/YesNoRunner.h      \
70    cxxtest/Mock.h               cxxtest/TeeListener.h                                  \
71    cxxtest/Descriptions.cpp     cxxtest/LinkedList.cpp      cxxtest/TestSuite.cpp      \
72    cxxtest/DummyDescriptions.cpp cxxtest/RealDescriptions.cpp  cxxtest/TestTracker.cpp \
73    cxxtest/GlobalFixture.cpp    cxxtest/Root.cpp            cxxtest/ValueTraits.cpp
Note: See TracBrowser for help on using the repository browser.