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

fieker-DuValspielwiese
Last change on this file since b7d64b was b7d64b, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
adaptation/fix due to SW build system FIX: don't distribute generated system-dependent headers FIX: adaptation to FACTORY/include/factory/* TODO: combine -I${abs_top_srcdir}/../factory/include -I${abs_top_builddir}/../factory/include into ${FACTORY_CFLAGS}
  • Property mode set to 100644
File size: 7.0 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
10
11INCLUDES = -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}
12
13TESTS = 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
18check_PROGRAMS = $(TESTS)
19
20nodist_simple_test_SOURCES = simple_test_runner.cpp
21
22nodist_coeffs_test_s_r_SOURCES = coeffs_test_runner.cpp
23nodist_polys_test_s_r_SOURCES = polys_test_runner.cpp
24nodist_rings_test_s_r_SOURCES = rings_test_runner.cpp
25
26nodist_coeffs_test_s_g_SOURCES = coeffs_test_runner.cpp
27nodist_polys_test_s_g_SOURCES = polys_test_runner.cpp
28nodist_rings_test_s_g_SOURCES = rings_test_runner.cpp
29
30
31nodist_coeffs_test_d_r_SOURCES = coeffs_test_runner.cpp
32nodist_polys_test_d_r_SOURCES = polys_test_runner.cpp
33nodist_rings_test_d_r_SOURCES = rings_test_runner.cpp
34
35nodist_coeffs_test_d_g_SOURCES = coeffs_test_runner.cpp
36nodist_polys_test_d_g_SOURCES = polys_test_runner.cpp
37nodist_rings_test_d_g_SOURCES = rings_test_runner.cpp
38
39
40
41RELEASECFLAGS = -O3 -fomit-frame-pointer ${PIPE}
42RELEASECXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE}
43RELEASECPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
44
45coeffs_test_s_r_CFLAGS =${RELEASECFLAGS}
46polys_test_s_r_CFLAGS = ${RELEASECFLAGS}
47rings_test_s_r_CFLAGS = ${RELEASECFLAGS}
48
49coeffs_test_d_r_CFLAGS =${RELEASECFLAGS}
50polys_test_d_r_CFLAGS = ${RELEASECFLAGS}
51rings_test_d_r_CFLAGS = ${RELEASECFLAGS}
52
53
54coeffs_test_s_r_CXXFLAGS =${RELEASECXXFLAGS}
55polys_test_s_r_CXXFLAGS = ${RELEASECXXFLAGS}
56rings_test_s_r_CXXFLAGS = ${RELEASECXXFLAGS}
57
58coeffs_test_d_r_CXXFLAGS =${RELEASECXXFLAGS}
59polys_test_d_r_CXXFLAGS = ${RELEASECXXFLAGS}
60rings_test_d_r_CXXFLAGS = ${RELEASECXXFLAGS}
61
62
63coeffs_test_s_r_CPPFLAGS =${RELEASECPPFLAGS}
64polys_test_s_r_CPPFLAGS = ${RELEASECPPFLAGS}
65rings_test_s_r_CPPFLAGS = ${RELEASECPPFLAGS}
66
67coeffs_test_d_r_CPPFLAGS =${RELEASECPPFLAGS}
68polys_test_d_r_CPPFLAGS = ${RELEASECPPFLAGS}
69rings_test_d_r_CPPFLAGS = ${RELEASECPPFLAGS}
70
71
72###  -pedantic
73DEBUGCFLAGS = $(AM_CFLAGS) -g -Wextra -Wall -Wno-long-long ${PIPE}
74DEBUGCXXFLAGS = $(AM_CXXFLAGS) ${DEBUGCFLAGS} ${CXXTEMPLFLAGS}
75DEBUGCPPFLAGS = -DHAVE_CONFIG_H
76
77coeffs_test_s_g_CFLAGS =${DEBUGCFLAGS}
78polys_test_s_g_CFLAGS = ${DEBUGCFLAGS}
79rings_test_s_g_CFLAGS = ${DEBUGCFLAGS}
80
81coeffs_test_d_g_CFLAGS =${DEBUGCFLAGS}
82polys_test_d_g_CFLAGS = ${DEBUGCFLAGS}
83rings_test_d_g_CFLAGS = ${DEBUGCFLAGS}
84
85coeffs_test_s_g_CXXFLAGS =${DEBUGCXXFLAGS}
86polys_test_s_g_CXXFLAGS = ${DEBUGCXXFLAGS}
87rings_test_s_g_CXXFLAGS = ${DEBUGCXXFLAGS}
88
89coeffs_test_d_g_CXXFLAGS =${DEBUGCXXFLAGS}
90polys_test_d_g_CXXFLAGS = ${DEBUGCXXFLAGS}
91rings_test_d_g_CXXFLAGS = ${DEBUGCXXFLAGS}
92
93coeffs_test_d_g_CPPFLAGS =${DEBUGCPPFLAGS}
94polys_test_d_g_CPPFLAGS = ${DEBUGCPPFLAGS}
95rings_test_d_g_CPPFLAGS = ${DEBUGCPPFLAGS}
96
97coeffs_test_s_g_CPPFLAGS =${DEBUGCPPFLAGS}
98polys_test_s_g_CPPFLAGS = ${DEBUGCPPFLAGS}
99rings_test_s_g_CPPFLAGS = ${DEBUGCPPFLAGS}
100
101AM_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 -L${top_builddir}/../findexec
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 -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS}
121polys_test_s_r_LDADD = -lpolys ${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 -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS}
125polys_test_s_g_LDADD = -lpolys_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 -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS}
129polys_test_d_r_LDADD = -lpolys ${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 -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS}
133polys_test_d_g_LDADD = -lpolys_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.