source: git/libpolys/coeffs/Makefile.am @ 84fc1f

jengelh-datetimespielwiese
Last change on this file since 84fc1f was 84fc1f, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
moved Hans's bigintmat from libmisc to libcoeffs (almost verbatim)
  • Property mode set to 100644
File size: 3.4 KB
Line 
1CXXTEMPLFLAGS = 
2## -fno-implicit-templates
3
4AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} -I${top_srcdir}/../factory/include -I${top_builddir}/../factory/include ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS}
5
6lib_LTLIBRARIES = libcoeffs.la libcoeffs_g.la
7libcoeffsdir = $(libdir)/singular
8
9libcoeffs_la_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
10libcoeffs_g_la_CFLAGS = ${PIPE}
11
12libcoeffs_la_CXXFLAGS   = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
13libcoeffs_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
14# -fdiagnostics-show-option
15
16libcoeffs_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
17libcoeffs_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
18
19
20# noinst_HEADERS= \
21#       gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \
22#       rintegers.h rmodulo2m.h rmodulon.h shortfl.h \
23#       mpr_complex.h mpr_global.h
24
25
26SOURCES = \
27        numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \
28        gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \
29        modulop.cc mpr_complex.cc \
30  bigintmat.cc
31
32libcoeffs_la_SOURCES   = $(SOURCES)
33libcoeffs_g_la_SOURCES = $(SOURCES)
34
35libcoeffs_includedir  =$(includedir)/singular/coeffs
36libcoeffs_include_HEADERS = coeffs.h numbers.h si_gmp.h gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h rintegers.h rmodulo2m.h rmodulon.h shortfl.h mpr_complex.h mpr_global.h \
37  bigintmat.h
38
39
40## for testing...
41if ENABLE_FACTORY
42  USE_FACTORY = -L${top_builddir}/../factory
43else
44  USE_FACTORY =
45endif
46
47AMLDFLAGS = -L${abs_top_builddir}/coeffs -L${abs_top_builddir}/reporter -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc -L${abs_top_builddir}/../findexec
48
49TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory'
50TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)'
51
52
53TESTS = test_s_g test_s_r test_d_g test_d_r
54check_PROGRAMS = $(TESTS)
55
56test_s_r_SOURCES = test.cc
57test_s_g_SOURCES = test.cc
58
59test_d_r_SOURCES = test.cc
60test_d_g_SOURCES = test.cc
61
62
63test_s_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS}
64test_s_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS}
65
66test_d_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS}
67test_d_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS}
68
69
70test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
71test_s_g_CFLAGS = ${PIPE}
72
73test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
74test_d_g_CFLAGS = ${PIPE}
75
76
77
78test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
79# -fimplicit-templates
80test_s_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
81# -fimplicit-templates
82# -fdiagnostics-show-option
83test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
84test_d_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
85
86
87
88test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
89test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
90
91test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
92test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
93
94
95test_s_r_LDFLAGS = -static ${AMLDFLAGS}
96test_s_g_LDFLAGS = -static ${AMLDFLAGS}
97
98test_d_r_LDFLAGS = ${AMLDFLAGS}
99test_d_g_LDFLAGS = ${AMLDFLAGS}
Note: See TracBrowser for help on using the repository browser.