source: git/libpolys/tests/Makefile.am @ 148d3c

spielwiese
Last change on this file since 148d3c was 148d3c, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
FIX: fixing the build system (install needed headers on needed places) FIX: libpolys-config is correct now (installed, echo -n-fixed) ADD: trying to use FACTORY_{libs, cflags} as for gmp/ntl CHG: switched from omalloc_debug to omalloc_g ADD: symlink for gftables in libpolys/tests
  • Property mode set to 100644
File size: 2.5 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${top_builddir}/.. -I${srcdir} ${GMP_CFLAGS} ${NTL_CFLAGS} ${FACTORY_CFLAGS}
15
16
17TESTS = simple_test coeffs_test rings_test polys_test
18check_PROGRAMS = $(TESTS)
19
20simple_test_SOURCES = simple_test_runner.cpp gftables
21coeffs_test_SOURCES = coeffs_test_runner.cpp gftables
22polys_test_SOURCES = polys_test_runner.cpp gftables
23rings_test_SOURCES = rings_test_runner.cpp gftables
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 ${FACTORY_LIBS} -lomalloc_g
30polys_test_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} $(coeffs_test_LDADD)
31rings_test_LDADD = $(polys_test_LDADD)
32
33noinst_SCRIPTS = p_Procs_FieldGeneral.so \
34                 p_Procs_FieldIndep.so \
35                 p_Procs_FieldQ.so \
36                 p_Procs_FieldZp.so
37
38gftables: ${top_srcdir}/../factory/gftables
39        ln -snf ${top_srcdir}/../factory/gftables ${builddir}
40
41p_Procs_FieldGeneral.so:        ${top_builddir}/polys/.libs/p_Procs_FieldGeneral.so
42                                ln -snf ${top_builddir}/polys/.libs/p_Procs_FieldGeneral.so ${builddir}
43
44p_Procs_FieldIndep.so:  ${top_builddir}/polys/.libs/p_Procs_FieldIndep.so
45                                ln -snf ${top_builddir}/polys/.libs/p_Procs_FieldIndep.so ${builddir}
46
47p_Procs_FieldQ.so:      ${top_builddir}/polys/.libs/p_Procs_FieldQ.so
48                                ln -snf ${top_builddir}/polys/.libs/p_Procs_FieldQ.so ${builddir}
49
50p_Procs_FieldZp.so:     ${top_builddir}/polys/.libs/p_Procs_FieldZp.so
51                                ln -snf ${top_builddir}/polys/.libs/p_Procs_FieldZp.so ${builddir}
52
53BUILT_SOURCES = $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES)
54
55
56# How to generate *_runner.cpp
57simple_test_runner.cpp: simple_test.h
58        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/simple_test.h
59
60coeffs_test_runner.cpp: coeffs_test.h
61        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/coeffs_test.h
62
63polys_test_runner.cpp: polys_test.h
64        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/polys_test.h
65
66rings_test_runner.cpp: rings_test.h
67        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/rings_test.h
Note: See TracBrowser for help on using the repository browser.