1 | CXXTEMPLFLAGS = -O0 --no-exceptions ## ## -fno-implicit-templates |
---|
2 | |
---|
3 | if ENABLE_FACTORY |
---|
4 | USE_FACTORY = -L${top_builddir}/../factory |
---|
5 | else |
---|
6 | USE_FACTORY = |
---|
7 | endif |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS} |
---|
12 | |
---|
13 | TESTS = simple_test \ |
---|
14 | coeffs_test_s_r coeffs_test_s_g coeffs_test_d_r coeffs_test_d_g \ |
---|
15 | polys_test_s_r polys_test_s_g polys_test_d_r polys_test_d_g \ |
---|
16 | rings_test_s_r rings_test_s_g rings_test_d_r rings_test_d_g |
---|
17 | |
---|
18 | check_PROGRAMS = $(TESTS) |
---|
19 | |
---|
20 | nodist_simple_test_SOURCES = simple_test_runner.cpp |
---|
21 | |
---|
22 | nodist_coeffs_test_s_r_SOURCES = coeffs_test_runner.cpp |
---|
23 | nodist_polys_test_s_r_SOURCES = polys_test_runner.cpp |
---|
24 | nodist_rings_test_s_r_SOURCES = rings_test_runner.cpp |
---|
25 | |
---|
26 | nodist_coeffs_test_s_g_SOURCES = coeffs_test_runner.cpp |
---|
27 | nodist_polys_test_s_g_SOURCES = polys_test_runner.cpp |
---|
28 | nodist_rings_test_s_g_SOURCES = rings_test_runner.cpp |
---|
29 | |
---|
30 | |
---|
31 | nodist_coeffs_test_d_r_SOURCES = coeffs_test_runner.cpp |
---|
32 | nodist_polys_test_d_r_SOURCES = polys_test_runner.cpp |
---|
33 | nodist_rings_test_d_r_SOURCES = rings_test_runner.cpp |
---|
34 | |
---|
35 | nodist_coeffs_test_d_g_SOURCES = coeffs_test_runner.cpp |
---|
36 | nodist_polys_test_d_g_SOURCES = polys_test_runner.cpp |
---|
37 | nodist_rings_test_d_g_SOURCES = rings_test_runner.cpp |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | RELEASECFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
42 | RELEASECXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} |
---|
43 | RELEASECPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
44 | |
---|
45 | coeffs_test_s_r_CFLAGS =${RELEASECFLAGS} |
---|
46 | polys_test_s_r_CFLAGS = ${RELEASECFLAGS} |
---|
47 | rings_test_s_r_CFLAGS = ${RELEASECFLAGS} |
---|
48 | |
---|
49 | coeffs_test_d_r_CFLAGS =${RELEASECFLAGS} |
---|
50 | polys_test_d_r_CFLAGS = ${RELEASECFLAGS} |
---|
51 | rings_test_d_r_CFLAGS = ${RELEASECFLAGS} |
---|
52 | |
---|
53 | |
---|
54 | coeffs_test_s_r_CXXFLAGS =${RELEASECXXFLAGS} |
---|
55 | polys_test_s_r_CXXFLAGS = ${RELEASECXXFLAGS} |
---|
56 | rings_test_s_r_CXXFLAGS = ${RELEASECXXFLAGS} |
---|
57 | |
---|
58 | coeffs_test_d_r_CXXFLAGS =${RELEASECXXFLAGS} |
---|
59 | polys_test_d_r_CXXFLAGS = ${RELEASECXXFLAGS} |
---|
60 | rings_test_d_r_CXXFLAGS = ${RELEASECXXFLAGS} |
---|
61 | |
---|
62 | |
---|
63 | coeffs_test_s_r_CPPFLAGS =${RELEASECPPFLAGS} |
---|
64 | polys_test_s_r_CPPFLAGS = ${RELEASECPPFLAGS} |
---|
65 | rings_test_s_r_CPPFLAGS = ${RELEASECPPFLAGS} |
---|
66 | |
---|
67 | coeffs_test_d_r_CPPFLAGS =${RELEASECPPFLAGS} |
---|
68 | polys_test_d_r_CPPFLAGS = ${RELEASECPPFLAGS} |
---|
69 | rings_test_d_r_CPPFLAGS = ${RELEASECPPFLAGS} |
---|
70 | |
---|
71 | |
---|
72 | ### -pedantic |
---|
73 | DEBUGCFLAGS = $(AM_CFLAGS) -g -Wextra -Wall -Wno-long-long ${PIPE} |
---|
74 | DEBUGCXXFLAGS = $(AM_CXXFLAGS) ${DEBUGCFLAGS} ${CXXTEMPLFLAGS} |
---|
75 | DEBUGCPPFLAGS = -DHAVE_CONFIG_H |
---|
76 | |
---|
77 | coeffs_test_s_g_CFLAGS =${DEBUGCFLAGS} |
---|
78 | polys_test_s_g_CFLAGS = ${DEBUGCFLAGS} |
---|
79 | rings_test_s_g_CFLAGS = ${DEBUGCFLAGS} |
---|
80 | |
---|
81 | coeffs_test_d_g_CFLAGS =${DEBUGCFLAGS} |
---|
82 | polys_test_d_g_CFLAGS = ${DEBUGCFLAGS} |
---|
83 | rings_test_d_g_CFLAGS = ${DEBUGCFLAGS} |
---|
84 | |
---|
85 | coeffs_test_s_g_CXXFLAGS =${DEBUGCXXFLAGS} |
---|
86 | polys_test_s_g_CXXFLAGS = ${DEBUGCXXFLAGS} |
---|
87 | rings_test_s_g_CXXFLAGS = ${DEBUGCXXFLAGS} |
---|
88 | |
---|
89 | coeffs_test_d_g_CXXFLAGS =${DEBUGCXXFLAGS} |
---|
90 | polys_test_d_g_CXXFLAGS = ${DEBUGCXXFLAGS} |
---|
91 | rings_test_d_g_CXXFLAGS = ${DEBUGCXXFLAGS} |
---|
92 | |
---|
93 | coeffs_test_d_g_CPPFLAGS =${DEBUGCPPFLAGS} |
---|
94 | polys_test_d_g_CPPFLAGS = ${DEBUGCPPFLAGS} |
---|
95 | rings_test_d_g_CPPFLAGS = ${DEBUGCPPFLAGS} |
---|
96 | |
---|
97 | coeffs_test_s_g_CPPFLAGS =${DEBUGCPPFLAGS} |
---|
98 | polys_test_s_g_CPPFLAGS = ${DEBUGCPPFLAGS} |
---|
99 | rings_test_s_g_CPPFLAGS = ${DEBUGCPPFLAGS} |
---|
100 | |
---|
101 | AM_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 |
---|
102 | |
---|
103 | coeffs_test_s_r_LDFLAGS = ${AM_LDFLAGS} -static |
---|
104 | coeffs_test_s_g_LDFLAGS = ${AM_LDFLAGS} -static |
---|
105 | |
---|
106 | |
---|
107 | polys_test_s_r_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} -static |
---|
108 | rings_test_s_r_LDFLAGS = $(polys_test_s_r_LDFLAGS) |
---|
109 | |
---|
110 | polys_test_s_g_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} -static |
---|
111 | rings_test_s_g_LDFLAGS = $(polys_test_s_g_LDFLAGS) |
---|
112 | |
---|
113 | polys_test_d_r_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} |
---|
114 | rings_test_d_r_LDFLAGS = $(polys_test_d_r_LDFLAGS) |
---|
115 | |
---|
116 | polys_test_d_g_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} |
---|
117 | rings_test_d_g_LDFLAGS = $(polys_test_d_g_LDFLAGS) |
---|
118 | |
---|
119 | |
---|
120 | coeffs_test_s_r_LDADD = -lcoeffs -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc ${NTL_LIBS} ${GMP_LIBS} |
---|
121 | polys_test_s_r_LDADD = -lpolys ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc ${NTL_LIBS} ${GMP_LIBS} |
---|
122 | rings_test_s_r_LDADD = $(polys_test_s_r_LDADD) |
---|
123 | |
---|
124 | coeffs_test_s_g_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS} |
---|
125 | polys_test_s_g_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS} |
---|
126 | rings_test_s_g_LDADD = $(polys_test_s_g_LDADD) |
---|
127 | |
---|
128 | coeffs_test_d_r_LDADD = -lcoeffs -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc ${NTL_LIBS} ${GMP_LIBS} |
---|
129 | polys_test_d_r_LDADD = -lpolys ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc ${NTL_LIBS} ${GMP_LIBS} |
---|
130 | rings_test_d_r_LDADD = $(polys_test_d_r_LDADD) |
---|
131 | |
---|
132 | coeffs_test_d_g_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS} |
---|
133 | polys_test_d_g_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS} |
---|
134 | rings_test_d_g_LDADD = $(polys_test_d_g_LDADD) |
---|
135 | |
---|
136 | |
---|
137 | |
---|
138 | |
---|
139 | |
---|
140 | |
---|
141 | |
---|
142 | BUILT_SOURCES = gftables MOD \ |
---|
143 | simple_test_runner.cpp coeffs_test_runner.cpp polys_test_runner.cpp rings_test_runner.cpp |
---|
144 | |
---|
145 | gftables: ${top_srcdir}/../factory/gftables |
---|
146 | ln -snf ${top_srcdir}/../factory/gftables ${builddir} |
---|
147 | |
---|
148 | MOD: ${top_builddir}/polys/.libs |
---|
149 | ln -snf ${top_builddir}/polys/.libs/ ${builddir}/MOD |
---|
150 | |
---|
151 | # How to generate *_runner.cpp |
---|
152 | simple_test_runner.cpp: simple_test.h |
---|
153 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/simple_test.h |
---|
154 | |
---|
155 | coeffs_test_runner.cpp: coeffs_test.h |
---|
156 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/coeffs_test.h |
---|
157 | |
---|
158 | polys_test_runner.cpp: polys_test.h |
---|
159 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/polys_test.h |
---|
160 | |
---|
161 | rings_test_runner.cpp: rings_test.h |
---|
162 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/rings_test.h |
---|
163 | |
---|
164 | CLEANFILES = $(BUILT_SOURCES) |
---|
165 | |
---|
166 | EXTRA_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 |
---|