source: git/libpolys/tests/Makefile.am @ 4ffb46

spielwiese
Last change on this file since 4ffb46 was 4ffb46, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
FIX: enabling dynamic modules on Free BSD TODO: -ldl is wrong! NOTE: should use gmake on Free BSD instead of make...
  • Property mode set to 100644
File size: 1.9 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  # '-ldl' wouldn't work on FreeBSD!!!???
30  USEPPROCSDYNAMICLD = -ldl
31  USEPPROCSDYNAMICLDFLAGS =  -rdynamic
32else
33  USEPPROCSDYNAMICLD =
34  USEPPROCSDYNAMICLDFLAGS =
35endif
36
37polys_test_LDFLAGS = ${AM_LDFLAGS} $(USEPPROCSDYNAMICLDFLAGS)
38rings_test_LDFLAGS = $(polys_test_LDFLAGS)
39
40coeffs_test_LDADD = -lcoeffs_g ${GMP_LIBS} -lresources_g -lreporter_g -lmisc_g -lomalloc_debug
41polys_test_LDADD = -lpolys_g $(USEPPROCSDYNAMICLD) $(coeffs_test_LDADD)
42rings_test_LDADD = $(polys_test_LDADD)
43
44
45
46BUILT_SOURCES = $(simple_test_SOURCES) $(coeffs_test_SOURCES) $(rings_test_SOURCES) $(polys_test_SOURCES)
47
48
49# How to generate the test simple_test_runner
50###### $^ needs GNU make : use gmake!
51simple_test_runner.cpp: simple_test.h
52        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^
53
54coeffs_test_runner.cpp: coeffs_test.h
55        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^
56
57polys_test_runner.cpp: polys_test.h
58        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^
59
60rings_test_runner.cpp: rings_test.h
61        ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^
Note: See TracBrowser for help on using the repository browser.