source: git/libpolys/tests/Makefile.am @ 419b39

spielwiese
Last change on this file since 419b39 was 419b39, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
FIX: enable implicit templates for now (commented out the use of -fno-implicit-templates)
  • Property mode set to 100644
File size: 2.1 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## for testing...
10AM_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
13AM_CFLAGS = -g -Wextra -Wall -Wno-long-long ${PIPE}
14## -pedantic
15
16AM_CXXFLAGS = $(AM_CFLAGS) ${CXXTEMPLFLAGS}
17
18AM_CPPFLAGS = -DHAVE_CONFIG_H
19
20INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS}
21
22
23TESTS = simple_test coeffs_test rings_test polys_test
24check_PROGRAMS = $(TESTS)
25
26simple_test_SOURCES = simple_test_runner.cpp
27coeffs_test_SOURCES = coeffs_test_runner.cpp gftables
28polys_test_SOURCES = polys_test_runner.cpp gftables MOD
29rings_test_SOURCES = rings_test_runner.cpp gftables MOD
30
31
32
33polys_test_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS}
34rings_test_LDFLAGS = $(polys_test_LDFLAGS)
35
36coeffs_test_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS}
37polys_test_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} $(coeffs_test_LDADD)
38rings_test_LDADD = $(polys_test_LDADD)
39
40gftables: ${top_srcdir}/../factory/gftables
41        ln -snf ${top_srcdir}/../factory/gftables ${builddir}
42
43MOD: ${top_builddir}/polys/.libs
44        ln -snf ${top_builddir}/polys/.libs/ ${builddir}/MOD
45
46BUILT_SOURCES = $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES)
47
48
49# How to generate *_runner.cpp
50simple_test_runner.cpp: simple_test.h
51        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/simple_test.h
52
53coeffs_test_runner.cpp: coeffs_test.h
54        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/coeffs_test.h
55
56polys_test_runner.cpp: polys_test.h
57        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/polys_test.h
58
59rings_test_runner.cpp: rings_test.h
60        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/rings_test.h
61
62CLEANFILES = simple_test_runner.cpp coeffs_test_runner.cpp polys_test_runner.cpp rings_test_runner.cpp MOD gftables
Note: See TracBrowser for help on using the repository browser.