source: git/libpolys/coeffs/Makefile.am @ 0ff203

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