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

spielwiese
Last change on this file since b27c052 was b27c052, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: first poly-tests (Sum Up integers 0..N) ADD: GlobalFixup made common and is able to redirect clog FIX: related minor fixes
  • Property mode set to 100644
File size: 1.8 KB
Line 
1CXXTEMPLFLAGS = -O0 --no-exceptions ## -fno-implicit-templates
2
3## for testing...
4AM_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
7AM_CFLAGS = -g -Wextra -Wall -Wno-long-long ${PIPE}
8## -pedantic
9
10AM_CXXFLAGS = $(AM_CFLAGS) ${CXXTEMPLFLAGS}
11
12AM_CPPFLAGS = -DHAVE_CONFIG_H
13
14INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${srcdir} ${GMP_CFLAGS}
15
16
17TESTS = simple_test coeffs_test rings_test polys_test
18check_PROGRAMS = $(TESTS)
19
20simple_test_SOURCES = simple_test_runner.cpp
21coeffs_test_SOURCES = coeffs_test_runner.cpp
22polys_test_SOURCES = polys_test_runner.cpp
23rings_test_SOURCES = rings_test_runner.cpp
24
25
26if ENABLE_P_PROCS_DYNAMIC
27  ### TODO -> ${LD_LIBS} ??? instead of -ldl,
28  ### add it to AM_LDFLAGS?
29  USEPPROCSDYNAMICLD = -ldl
30  USEPPROCSDYNAMICLDFLAGS =  -rdynamic
31else
32  USEPPROCSDYNAMICLD =
33  USEPPROCSDYNAMICLDFLAGS =
34endif
35
36polys_test_LDFLAGS = ${AM_LDFLAGS} $(USEPPROCSDYNAMICLDFLAGS)
37rings_test_LDFLAGS = $(polys_test_LDFLAGS)
38
39coeffs_test_LDADD = -lcoeffs_g ${GMP_LIBS} -lresources_g -lreporter_g -lmisc_g -lomalloc_debug
40polys_test_LDADD = -lpolys_g $(USEPPROCSDYNAMICLD) $(coeffs_test_LDADD)
41rings_test_LDADD = $(polys_test_LDADD)
42
43
44
45BUILT_SOURCES = $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES)
46
47
48# How to generate the test simple_test_runner
49simple_test_runner.cpp: simple_test.h
50        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^
51
52coeffs_test_runner.cpp: coeffs_test.h
53        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^
54
55polys_test_runner.cpp: polys_test.h
56        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^
57
58rings_test_runner.cpp: rings_test.h
59        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^
Note: See TracBrowser for help on using the repository browser.