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 | ## for testing... |
---|
10 | 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 |
---|
11 | |
---|
12 | |
---|
13 | AM_CFLAGS = -g -Wextra -Wall -Wno-long-long ${PIPE} |
---|
14 | ## -pedantic |
---|
15 | |
---|
16 | AM_CXXFLAGS = $(AM_CFLAGS) ${CXXTEMPLFLAGS} |
---|
17 | |
---|
18 | AM_CPPFLAGS = -DHAVE_CONFIG_H |
---|
19 | |
---|
20 | INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS} |
---|
21 | |
---|
22 | |
---|
23 | TESTS = simple_test coeffs_test rings_test polys_test |
---|
24 | check_PROGRAMS = $(TESTS) |
---|
25 | |
---|
26 | simple_test_SOURCES = simple_test_runner.cpp |
---|
27 | coeffs_test_SOURCES = coeffs_test_runner.cpp gftables |
---|
28 | polys_test_SOURCES = polys_test_runner.cpp gftables MOD |
---|
29 | rings_test_SOURCES = rings_test_runner.cpp gftables MOD |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | polys_test_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} |
---|
34 | rings_test_LDFLAGS = $(polys_test_LDFLAGS) |
---|
35 | |
---|
36 | coeffs_test_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS} |
---|
37 | polys_test_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} $(coeffs_test_LDADD) |
---|
38 | rings_test_LDADD = $(polys_test_LDADD) |
---|
39 | |
---|
40 | gftables: ${top_srcdir}/../factory/gftables |
---|
41 | ln -snf ${top_srcdir}/../factory/gftables ${builddir} |
---|
42 | |
---|
43 | MOD: ${top_builddir}/polys/.libs |
---|
44 | ln -snf ${top_builddir}/polys/.libs/ ${builddir}/MOD |
---|
45 | |
---|
46 | BUILT_SOURCES = $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES) |
---|
47 | |
---|
48 | |
---|
49 | # How to generate *_runner.cpp |
---|
50 | simple_test_runner.cpp: simple_test.h |
---|
51 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/simple_test.h |
---|
52 | |
---|
53 | coeffs_test_runner.cpp: coeffs_test.h |
---|
54 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/coeffs_test.h |
---|
55 | |
---|
56 | polys_test_runner.cpp: polys_test.h |
---|
57 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/polys_test.h |
---|
58 | |
---|
59 | rings_test_runner.cpp: rings_test.h |
---|
60 | ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/rings_test.h |
---|
61 | |
---|
62 | CLEANFILES = simple_test_runner.cpp coeffs_test_runner.cpp polys_test_runner.cpp rings_test_runner.cpp MOD gftables |
---|