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

spielwiese
Last change on this file since ba5e9e was 9ba92b, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
BS cleanup: singular targets (no simultanious debug version)
  • Property mode set to 100644
File size: 7.5 KB
RevLine 
[9ba92b]1ACLOCAL_AMFLAGS = -I ../../m4
[4aa8610]2
[9ba92b]3# CXXTEMPLFLAGS =-ftrapv ## -O0 ## -fno-implicit-templates
[4aa8610]4
[9ba92b]5AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} -I${top_srcdir}/../factory/include -I${top_builddir}/../factory/include ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS} -DHAVE_CONFIG_H
6
7# if WANT_DEBUG
8# TESTS = simple_test \
9#     coeffs_test_s_r coeffs_test_s_g coeffs_test_d_r coeffs_test_d_g \
10#     polys_test_s_r polys_test_s_g polys_test_d_r polys_test_d_g \
11#     rings_test_s_r rings_test_s_g rings_test_d_r rings_test_d_g
12# else
[17228e]13TESTS = simple_test \
14    coeffs_test_s_r coeffs_test_d_r \
15    polys_test_s_r polys_test_d_r \
16    rings_test_s_r rings_test_d_r
[9ba92b]17# endif
[4f684a]18
[4aa8610]19check_PROGRAMS = $(TESTS)
20
[42ceaa]21nodist_simple_test_SOURCES = simple_test_runner.cpp
[8872ef]22
[a6e550e]23nodist_coeffs_test_s_r_SOURCES = coeffs_test_runner.cpp
24nodist_polys_test_s_r_SOURCES = polys_test_runner.cpp
25nodist_rings_test_s_r_SOURCES = rings_test_runner.cpp
26
[9ba92b]27# nodist_coeffs_test_s_g_SOURCES = coeffs_test_runner.cpp
28# nodist_polys_test_s_g_SOURCES = polys_test_runner.cpp
29# nodist_rings_test_s_g_SOURCES = rings_test_runner.cpp
[a6e550e]30
31
32nodist_coeffs_test_d_r_SOURCES = coeffs_test_runner.cpp
33nodist_polys_test_d_r_SOURCES = polys_test_runner.cpp
34nodist_rings_test_d_r_SOURCES = rings_test_runner.cpp
35
[9ba92b]36# nodist_coeffs_test_d_g_SOURCES = coeffs_test_runner.cpp
37# nodist_polys_test_d_g_SOURCES = polys_test_runner.cpp
38# nodist_rings_test_d_g_SOURCES = rings_test_runner.cpp
[a6e550e]39
40
41
[9ba92b]42# RELEASECFLAGS = -O3 -fomit-frame-pointer ${PIPE}
43# RELEASECXXFLAGS = -O3 -fomit-frame-pointer ${PIPE}
44#RELEASECPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
45#RELEASECPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
[a6e550e]46
[9ba92b]47# coeffs_test_s_r_CFLAGS =${RELEASECFLAGS}
48# polys_test_s_r_CFLAGS = ${RELEASECFLAGS}
49# rings_test_s_r_CFLAGS = ${RELEASECFLAGS}
50#
51# coeffs_test_d_r_CFLAGS =${RELEASECFLAGS}
52# polys_test_d_r_CFLAGS = ${RELEASECFLAGS}
53# rings_test_d_r_CFLAGS = ${RELEASECFLAGS}
[a6e550e]54
55
[9ba92b]56# coeffs_test_s_r_CXXFLAGS =${RELEASECXXFLAGS}
57# polys_test_s_r_CXXFLAGS = ${RELEASECXXFLAGS}
58# rings_test_s_r_CXXFLAGS = ${RELEASECXXFLAGS}
59#
60# coeffs_test_d_r_CXXFLAGS =${RELEASECXXFLAGS}
61# polys_test_d_r_CXXFLAGS = ${RELEASECXXFLAGS}
62# rings_test_d_r_CXXFLAGS = ${RELEASECXXFLAGS}
[a6e550e]63
64
[9ba92b]65# coeffs_test_s_r_CPPFLAGS =${RELEASECPPFLAGS}
66# polys_test_s_r_CPPFLAGS = ${RELEASECPPFLAGS}
67# rings_test_s_r_CPPFLAGS = ${RELEASECPPFLAGS}
68#
69# coeffs_test_d_r_CPPFLAGS =${RELEASECPPFLAGS}
70# polys_test_d_r_CPPFLAGS = ${RELEASECPPFLAGS}
71# rings_test_d_r_CPPFLAGS = ${RELEASECPPFLAGS}
[a6e550e]72
73
74###  -pedantic
[9ba92b]75# DEBUGCFLAGS = $(AM_CFLAGS) -g -Wextra -Wall -Wno-long-long ${PIPE}
76# DEBUGCXXFLAGS = $(AM_CXXFLAGS) ${DEBUGCFLAGS} ${CXXTEMPLFLAGS}
77# DEBUGCPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
78#
79# coeffs_test_s_g_CFLAGS =${DEBUGCFLAGS}
80# polys_test_s_g_CFLAGS = ${DEBUGCFLAGS}
81# rings_test_s_g_CFLAGS = ${DEBUGCFLAGS}
82#
83# coeffs_test_d_g_CFLAGS =${DEBUGCFLAGS}
84# polys_test_d_g_CFLAGS = ${DEBUGCFLAGS}
85# rings_test_d_g_CFLAGS = ${DEBUGCFLAGS}
86#
87# coeffs_test_s_g_CXXFLAGS =${DEBUGCXXFLAGS}
88# polys_test_s_g_CXXFLAGS = ${DEBUGCXXFLAGS}
89# rings_test_s_g_CXXFLAGS = ${DEBUGCXXFLAGS}
90#
91# coeffs_test_d_g_CXXFLAGS =${DEBUGCXXFLAGS}
92# polys_test_d_g_CXXFLAGS = ${DEBUGCXXFLAGS}
93# rings_test_d_g_CXXFLAGS = ${DEBUGCXXFLAGS}
94#
95# coeffs_test_d_g_CPPFLAGS =${DEBUGCPPFLAGS}
96# polys_test_d_g_CPPFLAGS = ${DEBUGCPPFLAGS}
97# rings_test_d_g_CPPFLAGS = ${DEBUGCPPFLAGS}
98#
99# coeffs_test_s_g_CPPFLAGS =${DEBUGCPPFLAGS}
100# polys_test_s_g_CPPFLAGS = ${DEBUGCPPFLAGS}
101# rings_test_s_g_CPPFLAGS = ${DEBUGCPPFLAGS}
[a6e550e]102
[9f524d]103
104if ENABLE_FACTORY
105  USE_FACTORY = -L${top_builddir}/../factory
106else
107  USE_FACTORY =
108endif
109
[2c889f]110AM_LDFLAGS = -L${top_builddir}/polys -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc -L${top_builddir}/../resources
[a6e550e]111
[9f524d]112
[a6e550e]113coeffs_test_s_r_LDFLAGS = ${AM_LDFLAGS} -static
[9ba92b]114# coeffs_test_s_g_LDFLAGS = ${AM_LDFLAGS} -static
[a6e550e]115
116
117polys_test_s_r_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} -static
118rings_test_s_r_LDFLAGS = $(polys_test_s_r_LDFLAGS)
119
[9ba92b]120# polys_test_s_g_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} -static
121# rings_test_s_g_LDFLAGS = $(polys_test_s_g_LDFLAGS)
[a6e550e]122
123polys_test_d_r_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS}
124rings_test_d_r_LDFLAGS = $(polys_test_d_r_LDFLAGS)
125
[9ba92b]126# polys_test_d_g_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS}
127# rings_test_d_g_LDFLAGS = $(polys_test_d_g_LDFLAGS)
[a6e550e]128
129
[2c889f]130coeffs_test_s_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS}
131polys_test_s_r_LDADD = -lpolys -lcoeffs -lreporter -lmisc ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS}
[a6e550e]132rings_test_s_r_LDADD = $(polys_test_s_r_LDADD)
133
[9ba92b]134# coeffs_test_s_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lresources_g ${NTL_LIBS} ${GMP_LIBS}
135# polys_test_s_g_LDADD = -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc_g -lresources_g ${NTL_LIBS} ${GMP_LIBS}
136# rings_test_s_g_LDADD = $(polys_test_s_g_LDADD)
[a6e550e]137
[2c889f]138coeffs_test_d_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS}
139polys_test_d_r_LDADD = -lpolys -lcoeffs -lreporter -lmisc ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS}
[a6e550e]140rings_test_d_r_LDADD = $(polys_test_d_r_LDADD)
141
[9ba92b]142# coeffs_test_d_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lresources_g ${NTL_LIBS} ${GMP_LIBS}
143# polys_test_d_g_LDADD = -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc_g -lresources_g ${NTL_LIBS} ${GMP_LIBS}
144# rings_test_d_g_LDADD = $(polys_test_d_g_LDADD)
[a6e550e]145
146
147
148
[8480db]149
[c5412f]150
[d44785]151
[c2eb2e]152BUILT_SOURCES = gftables MOD \
[a6e550e]153        simple_test_runner.cpp coeffs_test_runner.cpp polys_test_runner.cpp rings_test_runner.cpp
[d44785]154
[148d3c]155gftables: ${top_srcdir}/../factory/gftables
156        ln -snf ${top_srcdir}/../factory/gftables ${builddir}
[1820e7]157
[71f6dbd]158MOD: ${top_builddir}/polys/.libs
159        ln -snf ${top_builddir}/polys/.libs/ ${builddir}/MOD
[1820e7]160
[84c376]161# How to generate *_runner.cpp
[4aa8610]162simple_test_runner.cpp: simple_test.h
[3199ac]163        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/simple_test.h
[4aa8610]164
[1820e7]165coeffs_test_runner.cpp: coeffs_test.h
[3199ac]166        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/coeffs_test.h
[4f684a]167
168polys_test_runner.cpp: polys_test.h
[3199ac]169        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/polys_test.h
[b27c052]170
171rings_test_runner.cpp: rings_test.h
[3199ac]172        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/rings_test.h
[71f6dbd]173
[d44785]174CLEANFILES = $(BUILT_SOURCES)
[c2eb2e]175
[42ceaa]176EXTRA_DIST = cxxtestgen.pl simple_test.h coeffs_test.h polys_test.h rings_test.h common.h \
[c2eb2e]177    cxxtest/Descriptions.h       cxxtest/ParenPrinter.h      cxxtest/TestListener.h     \
178    cxxtest/DummyDescriptions.h  cxxtest/QtGui.h             cxxtest/TestRunner.h       \
179    cxxtest/ErrorFormatter.h     cxxtest/RealDescriptions.h  cxxtest/TestSuite.h        \
180    cxxtest/ErrorPrinter.h       cxxtest/SelfTest.h          cxxtest/TestTracker.h      \
181    cxxtest/Flags.h              cxxtest/StdHeaders.h        cxxtest/ValueTraits.h      \
182    cxxtest/GlobalFixture.h      cxxtest/StdioFilePrinter.h  cxxtest/Win32Gui.h         \
183    cxxtest/Gui.h                cxxtest/StdioPrinter.h      cxxtest/X11Gui.h           \
184    cxxtest/LinkedList.h         cxxtest/StdValueTraits.h    cxxtest/YesNoRunner.h      \
185    cxxtest/Mock.h               cxxtest/TeeListener.h                                  \
186    cxxtest/Descriptions.cpp     cxxtest/LinkedList.cpp      cxxtest/TestSuite.cpp      \
187    cxxtest/DummyDescriptions.cpp cxxtest/RealDescriptions.cpp  cxxtest/TestTracker.cpp \
188    cxxtest/GlobalFixture.cpp    cxxtest/Root.cpp            cxxtest/ValueTraits.cpp
Note: See TracBrowser for help on using the repository browser.