1 | CXXTEMPLFLAGS = -O0 --no-exceptions ## -fno-implicit-templates |
---|
2 | |
---|
3 | ## for testing... |
---|
4 | AM_LDFLAGS = -L${top_builddir}/polys -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/misc -L${top_builddir}/../omalloc |
---|
5 | |
---|
6 | |
---|
7 | AM_CFLAGS = -g -Wextra -Wall -Wno-long-long ${PIPE} |
---|
8 | ## -pedantic |
---|
9 | |
---|
10 | AM_CXXFLAGS = $(AM_CFLAGS) ${CXXTEMPLFLAGS} |
---|
11 | |
---|
12 | AM_CPPFLAGS = -DHAVE_CONFIG_H |
---|
13 | |
---|
14 | INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${srcdir} ${GMP_CFLAGS} |
---|
15 | |
---|
16 | |
---|
17 | TESTS = simple_test coeffs_test rings_test polys_test |
---|
18 | check_PROGRAMS = $(TESTS) |
---|
19 | |
---|
20 | simple_test_SOURCES = simple_test_runner.cpp |
---|
21 | coeffs_test_SOURCES = coeffs_test_runner.cpp |
---|
22 | polys_test_SOURCES = polys_test_runner.cpp |
---|
23 | rings_test_SOURCES = rings_test_runner.cpp |
---|
24 | |
---|
25 | |
---|
26 | polys_test_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} |
---|
27 | rings_test_LDFLAGS = $(polys_test_LDFLAGS) |
---|
28 | |
---|
29 | coeffs_test_LDADD = -lcoeffs_g ${GMP_LIBS} -lresources_g -lreporter_g -lmisc_g -lomalloc_debug |
---|
30 | polys_test_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} $(coeffs_test_LDADD) |
---|
31 | rings_test_LDADD = $(polys_test_LDADD) |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | BUILT_SOURCES = $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES) |
---|
36 | |
---|
37 | |
---|
38 | # How to generate *_runner.cpp |
---|
39 | simple_test_runner.cpp: simple_test.h |
---|
40 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer simple_test.h |
---|
41 | |
---|
42 | coeffs_test_runner.cpp: coeffs_test.h |
---|
43 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer coeffs_test.h |
---|
44 | |
---|
45 | polys_test_runner.cpp: polys_test.h |
---|
46 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer polys_test.h |
---|
47 | |
---|
48 | rings_test_runner.cpp: rings_test.h |
---|
49 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer rings_test.h |
---|