source: git/libpolys/coeffs/Makefile.am @ 86b7aca

spielwiese
Last change on this file since 86b7aca was 86b7aca, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
CHG: minor changes to the build system
  • Property mode set to 100644
File size: 2.6 KB
Line 
1lib_LIBRARIES = libcoeffs.a libcoeffs_g.a
2CXXTEMPLFLAGS =  --no-exceptions
3## -fno-implicit-templates
4
5libcoeffs_a_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
6libcoeffs_g_a_CFLAGS = ${PIPE}
7
8libcoeffs_a_CXXFLAGS   = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS}
9libcoeffs_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
10# -fdiagnostics-show-option
11
12libcoeffs_a_CPPFLAGS   = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
13libcoeffs_g_a_CPPFLAGS = -DHAVE_CONFIG_H
14
15
16noinst_HEADERS= \
17        gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \
18        rintegers.h rmodulo2m.h rmodulon.h shortfl.h \
19        mpr_complex.h mpr_global.h
20
21INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS}
22
23SOURCES = \
24        numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \
25        gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \
26        modulop.cc mpr_complex.cc
27libcoeffs_a_SOURCES   = $(SOURCES)
28libcoeffs_g_a_SOURCES = $(SOURCES)
29
30
31## include_HEADERS = coeffs.h numbers.h
32
33libcoeffs_a_includedir  =$(includedir)/libpolys/coeffs
34libcoeffs_g_a_includedir=$(includedir)/libpolys/coeffs
35
36COEFFSHEADERS  = coeffs.h numbers.h si_gmp.h
37libcoeffs_a_include_HEADERS   = $(COEFFSHEADERS)
38libcoeffs_g_a_include_HEADERS = $(COEFFSHEADERS)
39
40
41if ENABLE_FACTORY
42  USE_FACTORY = -L${top_builddir}/../factory
43else
44  USE_FACTORY =
45endif
46
47## for testing...
48AM_LDFLAGS = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc
49
50
51TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory'
52TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)'
53
54
55TESTS = testg testr
56check_PROGRAMS = $(TESTS)
57
58testr_SOURCES = test.cc
59testg_SOURCES = test.cc
60
61testr_LDADD = -lcoeffs -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc ${NTL_LIBS} ${GMP_LIBS}
62testg_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS}
63
64
65# testr: libcoeffs.a
66# testg: libcoeffs_g.a
67# gftables
68
69testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
70testg_CFLAGS = ${PIPE}
71
72testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS}
73# -fimplicit-templates
74testg_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
75# -fimplicit-templates
76# -fdiagnostics-show-option
77
78testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
79testg_CPPFLAGS = -DHAVE_CONFIG_H
80
81#gftables: ${top_srcdir}/../factory/gftables
82#       ln -snf ${top_srcdir}/../factory/gftables ${builddir}
Note: See TracBrowser for help on using the repository browser.