source: git/libpolys/tests/Makefile.am @ 69181b3

spielwiese
Last change on this file since 69181b3 was 69181b3, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: initializeGMP is needed when linking against factory ADD: NTL should be used when linking against factory
  • Property mode set to 100644
File size: 1.7 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}/../factory -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}  ${NTL_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
26polys_test_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS}
27rings_test_LDFLAGS = $(polys_test_LDFLAGS)
28
29coeffs_test_LDADD = -lcoeffs_g ${GMP_LIBS} ${NTL_LIBS} -lresources_g -lreporter_g -lmisc_g -lfactory_g -lomalloc_debug
30polys_test_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} $(coeffs_test_LDADD)
31rings_test_LDADD = $(polys_test_LDADD)
32
33
34
35BUILT_SOURCES = $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES)
36
37
38# How to generate *_runner.cpp
39simple_test_runner.cpp: simple_test.h
40        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer simple_test.h
41
42coeffs_test_runner.cpp: coeffs_test.h
43        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer coeffs_test.h
44
45polys_test_runner.cpp: polys_test.h
46        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer polys_test.h
47
48rings_test_runner.cpp: rings_test.h
49        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer rings_test.h
Note: See TracBrowser for help on using the repository browser.