source: git/libpolys/coeffs/Makefile.am @ 4bc0ab9

spielwiese
Last change on this file since 4bc0ab9 was 4bc0ab9, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
updated all active automake files: INCLUDES -> AM_CPPFLAGS chg: ... and some minor cleanup
  • Property mode set to 100644
File size: 3.3 KB
Line 
1noinst_LTLIBRARIES = libcoeffs.la libcoeffs_g.la
2# libcoeffsdir = $(libdir)/singular
3
4CXXTEMPLFLAGS = 
5## -fno-implicit-templates
6
7AM_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}
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
31libcoeffs_la_SOURCES   = $(SOURCES)
32libcoeffs_g_la_SOURCES = $(SOURCES)
33
34libcoeffs_includedir  =$(includedir)/singular/coeffs
35libcoeffs_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
36
37
38if ENABLE_FACTORY
39  USE_FACTORY = -L${top_builddir}/../factory
40else
41  USE_FACTORY =
42endif
43
44## for testing...
45AM_LDFLAGS = -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 -L${abs_builddir}
46
47
48TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory'
49TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)'
50
51
52TESTS = test_s_g test_s_r test_d_g test_d_r
53check_PROGRAMS = $(TESTS)
54
55test_s_r_SOURCES = test.cc
56test_s_g_SOURCES = test.cc
57
58test_d_r_SOURCES = test.cc
59test_d_g_SOURCES = test.cc
60
61
62test_s_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS}
63test_s_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS}
64
65test_d_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS}
66test_d_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS}
67
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
95
96test_s_r_LDFLAGS = -static
97test_s_g_LDFLAGS = -static
Note: See TracBrowser for help on using the repository browser.