source: git/libpolys/tests/Makefile.am @ 83db8d

fieker-DuValspielwiese
Last change on this file since 83db8d was d44785, checked in by Volker Braun <vbraun.name@…>, 13 years ago
Cleaned up Makefile.am to remove superfluous rules Also, note that -DHAVE_CONFIG_H is defined automatically
  • Property mode set to 100644
File size: 2.0 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
18INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS}
19
20
21TESTS = simple_test coeffs_test rings_test polys_test
22check_PROGRAMS = $(TESTS)
23
24simple_test_SOURCES = simple_test_runner.cpp
25coeffs_test_SOURCES = coeffs_test_runner.cpp gftables
26polys_test_SOURCES = polys_test_runner.cpp gftables MOD
27rings_test_SOURCES = rings_test_runner.cpp gftables MOD
28
29
30
31polys_test_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS}
32rings_test_LDFLAGS = $(polys_test_LDFLAGS)
33
34coeffs_test_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS}
35polys_test_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} $(coeffs_test_LDADD)
36rings_test_LDADD = $(polys_test_LDADD)
37
38
39BUILT_SOURCES = $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES)
40
41gftables: ${top_srcdir}/../factory/gftables
42        ln -snf ${top_srcdir}/../factory/gftables ${builddir}
43
44MOD: ${top_builddir}/polys/.libs
45        ln -snf ${top_builddir}/polys/.libs/ ${builddir}/MOD
46
47# How to generate *_runner.cpp
48simple_test_runner.cpp: simple_test.h
49        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/simple_test.h
50
51coeffs_test_runner.cpp: coeffs_test.h
52        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/coeffs_test.h
53
54polys_test_runner.cpp: polys_test.h
55        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/polys_test.h
56
57rings_test_runner.cpp: rings_test.h
58        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer ${srcdir}/rings_test.h
59
60CLEANFILES = $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.