source: git/libpolys/tests/Makefile.am @ 9f524d

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