1 | ACLOCAL_AMFLAGS = -I ../../m4 |
---|
2 | |
---|
3 | # CXXTEMPLFLAGS =-ftrapv ## -O0 ## -fno-implicit-templates |
---|
4 | |
---|
5 | AM_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 |
---|
13 | TESTS = 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 |
---|
17 | # endif |
---|
18 | |
---|
19 | check_PROGRAMS = $(TESTS) |
---|
20 | |
---|
21 | nodist_simple_test_SOURCES = simple_test_runner.cpp |
---|
22 | |
---|
23 | nodist_coeffs_test_s_r_SOURCES = coeffs_test_runner.cpp |
---|
24 | nodist_polys_test_s_r_SOURCES = polys_test_runner.cpp |
---|
25 | nodist_rings_test_s_r_SOURCES = rings_test_runner.cpp |
---|
26 | |
---|
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 |
---|
30 | |
---|
31 | |
---|
32 | nodist_coeffs_test_d_r_SOURCES = coeffs_test_runner.cpp |
---|
33 | nodist_polys_test_d_r_SOURCES = polys_test_runner.cpp |
---|
34 | nodist_rings_test_d_r_SOURCES = rings_test_runner.cpp |
---|
35 | |
---|
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 |
---|
39 | |
---|
40 | |
---|
41 | |
---|
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 |
---|
46 | |
---|
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} |
---|
54 | |
---|
55 | |
---|
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} |
---|
63 | |
---|
64 | |
---|
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} |
---|
72 | |
---|
73 | |
---|
74 | ### -pedantic |
---|
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} |
---|
102 | |
---|
103 | |
---|
104 | if ENABLE_FACTORY |
---|
105 | USE_FACTORY = -L${top_builddir}/../factory |
---|
106 | else |
---|
107 | USE_FACTORY = |
---|
108 | endif |
---|
109 | |
---|
110 | AM_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 |
---|
111 | |
---|
112 | |
---|
113 | coeffs_test_s_r_LDFLAGS = ${AM_LDFLAGS} -static |
---|
114 | # coeffs_test_s_g_LDFLAGS = ${AM_LDFLAGS} -static |
---|
115 | |
---|
116 | |
---|
117 | polys_test_s_r_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} -static |
---|
118 | rings_test_s_r_LDFLAGS = $(polys_test_s_r_LDFLAGS) |
---|
119 | |
---|
120 | # polys_test_s_g_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} -static |
---|
121 | # rings_test_s_g_LDFLAGS = $(polys_test_s_g_LDFLAGS) |
---|
122 | |
---|
123 | polys_test_d_r_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} |
---|
124 | rings_test_d_r_LDFLAGS = $(polys_test_d_r_LDFLAGS) |
---|
125 | |
---|
126 | # polys_test_d_g_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} |
---|
127 | # rings_test_d_g_LDFLAGS = $(polys_test_d_g_LDFLAGS) |
---|
128 | |
---|
129 | |
---|
130 | coeffs_test_s_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS} |
---|
131 | polys_test_s_r_LDADD = -lpolys -lcoeffs -lreporter -lmisc ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS} |
---|
132 | rings_test_s_r_LDADD = $(polys_test_s_r_LDADD) |
---|
133 | |
---|
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) |
---|
137 | |
---|
138 | coeffs_test_d_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS} |
---|
139 | polys_test_d_r_LDADD = -lpolys -lcoeffs -lreporter -lmisc ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS} |
---|
140 | rings_test_d_r_LDADD = $(polys_test_d_r_LDADD) |
---|
141 | |
---|
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) |
---|
145 | |
---|
146 | |
---|
147 | |
---|
148 | |
---|
149 | |
---|
150 | |
---|
151 | |
---|
152 | BUILT_SOURCES = gftables MOD \ |
---|
153 | simple_test_runner.cpp coeffs_test_runner.cpp polys_test_runner.cpp rings_test_runner.cpp |
---|
154 | |
---|
155 | gftables: ${top_srcdir}/../factory/gftables |
---|
156 | ln -snf ${top_srcdir}/../factory/gftables ${builddir} |
---|
157 | |
---|
158 | MOD: ${top_builddir}/polys/.libs |
---|
159 | ln -snf ${top_builddir}/polys/.libs/ ${builddir}/MOD |
---|
160 | |
---|
161 | # How to generate *_runner.cpp |
---|
162 | simple_test_runner.cpp: simple_test.h |
---|
163 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/simple_test.h |
---|
164 | |
---|
165 | coeffs_test_runner.cpp: coeffs_test.h |
---|
166 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/coeffs_test.h |
---|
167 | |
---|
168 | polys_test_runner.cpp: polys_test.h |
---|
169 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/polys_test.h |
---|
170 | |
---|
171 | rings_test_runner.cpp: rings_test.h |
---|
172 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/rings_test.h |
---|
173 | |
---|
174 | CLEANFILES = $(BUILT_SOURCES) |
---|
175 | |
---|
176 | EXTRA_DIST = cxxtestgen.pl simple_test.h coeffs_test.h polys_test.h rings_test.h common.h \ |
---|
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 |
---|