source: git/libpolys/polys/Makefile.am @ 975db18

jengelh-datetimespielwiese
Last change on this file since 975db18 was 975db18, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
implementing PolyCoeffsEnumerator: enumerator for simple iteration over coefficients of a (non-zero) polynomial. add: added dummy stubs for calling n_ClearContent and n_ClearDenominators from p_Content and p_Cleardenom
  • Property mode set to 100644
File size: 6.2 KB
Line 
1CXXTEMPLFLAGS   =  ## -fno-implicit-templates
2
3DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long
4
5NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer
6NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer
7NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
8
9AM_CFLAGS       = ${PIPE}
10AM_CXXFLAGS     = ${PIPE} ${CXXTEMPLFLAGS}
11
12AM_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 ${GMP_CFLAGS}
13
14
15if ENABLE_P_PROCS_STATIC
16  USE_P_PROCS_STATIC_CC = templates/p_Procs_Static.cc
17  USE_P_PROCS_STATIC = -Dp_Procs_Static
18else
19  USE_P_PROCS_STATIC_CC =
20  USE_P_PROCS_STATIC =
21endif
22
23if ENABLE_P_PROCS_DYNAMIC
24  USE_P_PROCS_DYNAMIC_CC = templates/p_Procs_Dynamic.cc
25else
26  USE_P_PROCS_DYNAMIC_CC =
27endif
28
29libpolys_LTLIBRARIES = libpolys.la libpolys_g.la
30libpolysdir = $(libdir)/singular
31
32SOURCES = \
33        monomials/monomials.cc monomials/p_polys.cc monomials/ring.cc monomials/maps.cc \
34        operations/pShallowCopyDelete.cc operations/p_Mult_q.cc \
35        nc/sca.cc nc/summator.cc nc/ncSAFormula.cc nc/ncSACache.cc nc/ncSAMult.cc \
36        pDebug.cc polys0.cc prCopy.cc prCopyMacros.h \
37        kbuckets.cc sbuckets.cc weight.cc weight0.c simpleideals.cc matpol.cc \
38        sparsmat.cc \
39        ${USE_P_PROCS_STATIC_CC} ${USE_P_PROCS_DYNAMIC_CC} mod_raw.cc \
40        ext_fields/algext.cc ext_fields/transext.cc \
41        clapsing.cc clapconv.cc \
42        nc/old.gring.cc
43
44LIBPOLYSHEADERS = monomials/ring.h monomials/monomials.h \
45  monomials/p_polys.h monomials/maps.h PolyEnumerator.h  prCopy.h \
46        nc/nc.h nc/sca.h nc/summator.h nc/ncSAFormula.h nc/ncSACache.h nc/ncSAMult.h nc/gb_hack.h \
47        operations/pShallowCopyDelete.h \
48        templates/p_Procs.h templates/p_MemAdd.h templates/p_MemCmp.h \
49        kbuckets.h sbuckets.h simpleideals.h weight.h matpol.h \
50        sparsmat.h clapsing.h clapconv.h coeffrings.h \
51        ext_fields/algext.h ext_fields/transext.h mod_raw.h 
52
53EXTRA_DIST = \
54        prCopy.pl prCopyTemplate.cc \
55        templates/p_Procs_Lib.cc templates/p_MemCopy.h templates/p_Numbers.h \
56        templates/p_Procs_Set.h templates/p_Procs_Static.h templates/p_Procs_Dynamic.h \
57        templates/p_Procs_Impl.h templates/p_Delete__T.cc templates/p_Copy__T.cc \
58        templates/p_ShallowCopyDelete__T.cc templates/p_Mult_nn__T.cc \
59        templates/pp_Mult_nn__T.cc templates/pp_Mult_mm__T.cc templates/p_Mult_mm__T.cc \
60        templates/pp_Mult_Coeff_mm_DivSelect__T.cc templates/pp_Mult_nn__T.cc \
61        templates/pp_Mult_Coeff_mm_DivSelectMult__T.cc \
62        templates/pp_Mult_mm_Noether__T.cc operations/p_Mult_q.h \
63        templates/p_kBucketSetLm__T.cc templates/p_Minus_mm_Mult_qq__T.cc \
64        templates/p_Merge_q__T.cc templates/p_Add_q__T.cc templates/p_Neg__T.cc
65
66P_PROCS_CPPFLAGS_COMMON = ${AM_CPPFLAGS} -DDYNAMIC_VERSION
67
68p_Procs_FieldGeneral_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
69p_Procs_FieldIndep_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
70p_Procs_FieldQ_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
71p_Procs_FieldZp_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
72
73p_Procs_FieldGeneral_g_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON}
74p_Procs_FieldIndep_g_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON}
75p_Procs_FieldQ_g_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON}
76p_Procs_FieldZp_g_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON}
77
78p_Procs_FieldGeneral_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
79p_Procs_FieldIndep_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
80p_Procs_FieldQ_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
81p_Procs_FieldZp_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
82
83p_Procs_FieldGeneral_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
84p_Procs_FieldIndep_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
85p_Procs_FieldQ_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
86p_Procs_FieldZp_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
87
88P_PROCS_MODULE_LDFLAGS = -shared -module
89P_PROCS_MODULE_LDFLAGSG = -shared -module
90
91p_Procs_FieldGeneral_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
92p_Procs_FieldIndep_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
93p_Procs_FieldQ_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
94p_Procs_FieldZp_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
95
96p_Procs_FieldGeneral_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
97p_Procs_FieldIndep_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
98p_Procs_FieldQ_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
99p_Procs_FieldZp_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
100
101
102P_PROCS = templates/p_Procs_Lib.cc
103
104p_Procs_FieldGeneral_la_SOURCES = ${P_PROCS}
105p_Procs_FieldIndep_la_SOURCES = ${P_PROCS}
106p_Procs_FieldQ_la_SOURCES = ${P_PROCS}
107p_Procs_FieldZp_la_SOURCES = ${P_PROCS}
108
109p_Procs_FieldGeneral_g_la_SOURCES = ${P_PROCS}
110p_Procs_FieldIndep_g_la_SOURCES = ${P_PROCS}
111p_Procs_FieldQ_g_la_SOURCES = ${P_PROCS}
112p_Procs_FieldZp_g_la_SOURCES = ${P_PROCS}
113
114
115moduledir = $(bindir)
116#moduledir = $(libexecdir)/singular/MOD/
117
118if ENABLE_P_PROCS_DYNAMIC
119  module_LTLIBRARIES=p_Procs_FieldGeneral.la p_Procs_FieldIndep.la p_Procs_FieldQ.la p_Procs_FieldZp.la \
120                     p_Procs_FieldGeneral_g.la p_Procs_FieldIndep_g.la p_Procs_FieldQ_g.la p_Procs_FieldZp_g.la
121endif
122
123libpolys_includedir=$(includedir)/singular/polys
124
125nobase_libpolys_include_HEADERS = $(LIBPOLYSHEADERS)
126
127libpolys_la_SOURCES = ${SOURCES}
128libpolys_g_la_SOURCES = ${SOURCES}
129
130EXTRA_libpolys_la_SOURCES = templates/p_Procs_Static.cc templates/p_Procs_Dynamic.cc
131
132libpolys_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
133libpolys_la_CPPFLAGS = ${NODEBUGDEFS} ${AM_CPPFLAGS}
134
135
136
137
138#################################################
139# autogenerated sources
140
141BUILT_SOURCES = prCopy.inc templates/p_Procs.inc
142
143noinst_PROGRAMS = templates/p_Procs_Generate
144templates_p_Procs_Generate_SOURCES = templates/p_Procs_Generate.cc
145templates_p_Procs_Generate_CFLAGS   = ${NODEBUGCFLAGS}
146templates_p_Procs_Generate_CXXFLAGS = ${NODEBUGCXXFLAGS}
147templates_p_Procs_Generate_CPPFLAGS = ${NODEBUGDEFS} ${USE_P_PROCS_STATIC} ${AM_CPPFLAGS}
148
149templates_p_Procs_Generate_LDADD    = -lreporter -lmisc -lomalloc -lfindexec
150templates_p_Procs_Generate_LDFLAGS  = -L${abs_builddir} -L${abs_top_builddir}/coeffs -L${abs_top_builddir}/reporter -L${top_builddir}/misc -L${abs_top_builddir}/../omalloc -L${abs_top_builddir}/../findexec
151
152templates/p_Procs.inc: templates/p_Procs_Generate
153        ${builddir}/templates/p_Procs_Generate > ${builddir}/templates/p_Procs.inc
154
155prCopy.inc: prCopy.pl
156        perl ${srcdir}/prCopy.pl >  prCopy.inc
157
158CLEANFILES = $(BUILT_SOURCES)
159
Note: See TracBrowser for help on using the repository browser.