source: git/libpolys/coeffs/Makefile.am @ bd948c

spielwiese
Last change on this file since bd948c was bd948c, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
ADD: added ${PIPE} to *_CFLAGS in some Makefile.am
  • Property mode set to 100644
File size: 3.1 KB
Line 
1noinst_LTLIBRARIES = libcoeffs.la libcoeffs_g.la
2# libcoeffsdir = $(libdir)/singular
3
4CXXTEMPLFLAGS =  --no-exceptions
5## -fno-implicit-templates
6
7libcoeffs_la_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
8libcoeffs_g_la_CFLAGS = ${PIPE}
9
10libcoeffs_la_CXXFLAGS   = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS}
11libcoeffs_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
12# -fdiagnostics-show-option
13
14libcoeffs_la_CPPFLAGS   = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
15libcoeffs_g_la_CPPFLAGS = -DHAVE_CONFIG_H
16
17
18# noinst_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_la_SOURCES   = $(SOURCES)
31libcoeffs_g_la_SOURCES = $(SOURCES)
32
33libcoeffs_includedir  =$(includedir)/singular/coeffs
34libcoeffs_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
35
36
37if ENABLE_FACTORY
38  USE_FACTORY = -L${top_builddir}/../factory
39else
40  USE_FACTORY =
41endif
42
43## for testing...
44AM_LDFLAGS = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc
45
46
47TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory'
48TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)'
49
50
51TESTS = test_s_g test_s_r test_d_g test_d_r
52check_PROGRAMS = $(TESTS)
53
54test_s_r_SOURCES = test.cc
55test_s_g_SOURCES = test.cc
56
57test_d_r_SOURCES = test.cc
58test_d_g_SOURCES = test.cc
59
60
61test_s_r_LDADD = -lcoeffs -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc ${NTL_LIBS} ${GMP_LIBS}
62test_s_g_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS}
63
64test_d_r_LDADD = -lcoeffs -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc ${NTL_LIBS} ${GMP_LIBS}
65test_d_g_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS}
66
67
68test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
69test_s_g_CFLAGS = ${PIPE}
70
71test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
72test_d_g_CFLAGS = ${PIPE}
73
74
75
76test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS}
77# -fimplicit-templates
78test_s_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
79# -fimplicit-templates
80# -fdiagnostics-show-option
81test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS}
82test_d_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
83
84
85
86test_s_r_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
87test_s_g_CPPFLAGS = -DHAVE_CONFIG_H
88
89test_d_r_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
90test_d_g_CPPFLAGS = -DHAVE_CONFIG_H
91
92
93test_s_r_LDFLAGS = -static
94test_s_g_LDFLAGS = -static
Note: See TracBrowser for help on using the repository browser.