source: git/libpolys/polys/Makefile.am @ b34521

fieker-DuValspielwiese
Last change on this file since b34521 was 7ea62f6, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
CHG: install MOD under libexec/singular/
  • Property mode set to 100644
File size: 6.0 KB
Line 
1CXXTEMPLFLAGS   =  --no-exceptions ## -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 --no-rtti
7NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
8
9AM_CFLAGS       = ${PIPE}
10AM_CXXFLAGS     = ${PIPE} ${CXXTEMPLFLAGS}
11
12INCLUDES        = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} -I${includedir} ${GMP_CFLAGS}
13AM_LDFLAGS      = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/../omalloc -L${builddir}
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_LIBRARIES = libpolys.a libpolys_g.a
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        nc/nc.h nc/sca.h nc/summator.h nc/ncSAFormula.h nc/ncSACache.h nc/ncSAMult.h \
46        operations/pShallowCopyDelete.h \
47        templates/p_Procs.h templates/p_MemAdd.h templates/p_MemCmp.h \
48        monomials/p_polys.h monomials/maps.h prCopy.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 = -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 = -module
89# -L${top_builddir}/coeffs -lcoeffs
90P_PROCS_MODULE_LDFLAGSG = -module
91# -L${top_builddir}/coeffs -lcoeffs_g
92
93p_Procs_FieldGeneral_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
94p_Procs_FieldIndep_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
95p_Procs_FieldQ_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
96p_Procs_FieldZp_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
97
98p_Procs_FieldGeneral_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
99p_Procs_FieldIndep_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
100p_Procs_FieldQ_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
101p_Procs_FieldZp_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
102
103
104P_PROCS = templates/p_Procs_Lib.cc
105
106p_Procs_FieldGeneral_la_SOURCES = ${P_PROCS}
107p_Procs_FieldIndep_la_SOURCES = ${P_PROCS}
108p_Procs_FieldQ_la_SOURCES = ${P_PROCS}
109p_Procs_FieldZp_la_SOURCES = ${P_PROCS}
110
111p_Procs_FieldGeneral_g_la_SOURCES = ${P_PROCS}
112p_Procs_FieldIndep_g_la_SOURCES = ${P_PROCS}
113p_Procs_FieldQ_g_la_SOURCES = ${P_PROCS}
114p_Procs_FieldZp_g_la_SOURCES = ${P_PROCS}
115
116
117moduledir = $(libexecdir)/singular/MOD/
118
119if ENABLE_P_PROCS_DYNAMIC
120  module_LTLIBRARIES=p_Procs_FieldGeneral.la p_Procs_FieldIndep.la p_Procs_FieldQ.la p_Procs_FieldZp.la \
121                     p_Procs_FieldGeneral_g.la p_Procs_FieldIndep_g.la p_Procs_FieldQ_g.la p_Procs_FieldZp_g.la
122endif
123
124libpolys_includedir=$(includedir)/singular/polys
125
126nobase_libpolys_include_HEADERS = $(LIBPOLYSHEADERS)
127
128libpolys_a_SOURCES = ${SOURCES}
129libpolys_g_a_SOURCES = ${SOURCES}
130
131EXTRA_libpolys_a_SOURCES = templates/p_Procs_Static.cc templates/p_Procs_Dynamic.cc
132
133libpolys_g_a_CXXFLAGS = ${DEBUGCXXFLAGS}
134libpolys_a_CPPFLAGS = ${NODEBUGDEFS}
135
136
137#################################################
138# autogenerated sources
139
140BUILT_SOURCES = prCopy.inc templates/p_Procs.inc
141
142noinst_PROGRAMS = templates/p_Procs_Generate
143templates_p_Procs_Generate_SOURCES = templates/p_Procs_Generate.cc
144templates_p_Procs_Generate_CFLAGS   = ${NODEBUGCFLAGS}
145templates_p_Procs_Generate_CXXFLAGS = ${NODEBUGCXXFLAGS}
146templates_p_Procs_Generate_CPPFLAGS = ${NODEBUGDEFS} ${USE_P_PROCS_STATIC}
147templates_p_Procs_Generate_LDADD    = -lreporter
148
149
150templates/p_Procs.inc: templates/p_Procs_Generate
151        ${builddir}/templates/p_Procs_Generate > ${builddir}/templates/p_Procs.inc
152
153prCopy.inc: prCopy.pl
154        perl ${srcdir}/prCopy.pl >  prCopy.inc
155
156CLEANFILES = $(BUILT_SOURCES)
157
Note: See TracBrowser for help on using the repository browser.