source: git/libpolys/polys/Makefile.am @ 825fb7

jengelh-datetimespielwiese
Last change on this file since 825fb7 was 825fb7, checked in by Hans Schoenemann <hannes@…>, 10 years ago
fixes for the static version
  • Property mode set to 100644
File size: 6.3 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
25  P_PROCS_CPPFLAGS_COMMON = ${AM_CPPFLAGS} -DDYNAMIC_VERSION
26else
27  USE_P_PROCS_DYNAMIC_CC =
28  P_PROCS_CPPFLAGS_COMMON = ${AM_CPPFLAGS}
29endif
30
31if WANT_DEBUG
32  LIB_G=libpolys_g.la
33  MOD_G=p_Procs_FieldGeneral_g.la p_Procs_FieldIndep_g.la p_Procs_FieldQ_g.la p_Procs_FieldZp_g.la
34else
35  LIB_G=
36  MOD_G=
37endif
38
39libpolys_LTLIBRARIES = libpolys.la ${LIB_G}
40libpolysdir = $(libdir)/singular
41
42SOURCES = \
43        monomials/monomials.cc monomials/p_polys.cc monomials/ring.cc monomials/maps.cc \
44        operations/pShallowCopyDelete.cc operations/p_Mult_q.cc \
45        nc/sca.cc nc/summator.cc nc/ncSAFormula.cc nc/ncSACache.cc nc/ncSAMult.cc \
46        pDebug.cc polys0.cc prCopy.cc prCopyMacros.h \
47        kbuckets.cc sbuckets.cc weight.cc weight0.c simpleideals.cc matpol.cc \
48        sparsmat.cc \
49        ${USE_P_PROCS_STATIC_CC} ${USE_P_PROCS_DYNAMIC_CC} mod_raw.cc \
50        ext_fields/algext.cc ext_fields/transext.cc \
51        clapsing.cc clapconv.cc \
52        nc/old.gring.cc PolyEnumerator.cc
53
54LIBPOLYSHEADERS = monomials/ring.h monomials/monomials.h \
55  monomials/p_polys.h monomials/maps.h PolyEnumerator.h  prCopy.h \
56        nc/nc.h nc/sca.h nc/summator.h nc/ncSAFormula.h nc/ncSACache.h nc/ncSAMult.h nc/gb_hack.h \
57        operations/pShallowCopyDelete.h \
58        templates/p_Procs.h templates/p_MemAdd.h templates/p_MemCmp.h \
59        kbuckets.h sbuckets.h simpleideals.h weight.h matpol.h \
60        sparsmat.h clapsing.h clapconv.h coeffrings.h \
61        ext_fields/algext.h ext_fields/transext.h mod_raw.h 
62
63EXTRA_DIST = \
64        prCopy.pl prCopyTemplate.cc \
65        templates/p_Procs_Lib.cc templates/p_MemCopy.h templates/p_Numbers.h \
66        templates/p_Procs_Set.h templates/p_Procs_Static.h templates/p_Procs_Dynamic.h \
67        templates/p_Procs_Impl.h templates/p_Delete__T.cc templates/p_Copy__T.cc \
68        templates/p_ShallowCopyDelete__T.cc templates/p_Mult_nn__T.cc \
69        templates/pp_Mult_nn__T.cc templates/pp_Mult_mm__T.cc templates/p_Mult_mm__T.cc \
70        templates/pp_Mult_Coeff_mm_DivSelect__T.cc templates/pp_Mult_nn__T.cc \
71        templates/pp_Mult_Coeff_mm_DivSelectMult__T.cc \
72        templates/pp_Mult_mm_Noether__T.cc operations/p_Mult_q.h \
73        templates/p_kBucketSetLm__T.cc templates/p_Minus_mm_Mult_qq__T.cc \
74        templates/p_Merge_q__T.cc templates/p_Add_q__T.cc templates/p_Neg__T.cc
75
76
77p_Procs_FieldGeneral_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
78p_Procs_FieldIndep_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
79p_Procs_FieldQ_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
80p_Procs_FieldZp_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
81
82p_Procs_FieldGeneral_g_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON}
83p_Procs_FieldIndep_g_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON}
84p_Procs_FieldQ_g_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON}
85p_Procs_FieldZp_g_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON}
86
87p_Procs_FieldGeneral_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
88p_Procs_FieldIndep_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
89p_Procs_FieldQ_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
90p_Procs_FieldZp_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
91
92p_Procs_FieldGeneral_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
93p_Procs_FieldIndep_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
94p_Procs_FieldQ_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
95p_Procs_FieldZp_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
96
97P_PROCS_MODULE_LDFLAGS = -shared -module
98P_PROCS_MODULE_LDFLAGSG = -shared -module
99
100p_Procs_FieldGeneral_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
101p_Procs_FieldIndep_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
102p_Procs_FieldQ_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
103p_Procs_FieldZp_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
104
105p_Procs_FieldGeneral_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
106p_Procs_FieldIndep_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
107p_Procs_FieldQ_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
108p_Procs_FieldZp_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
109
110
111P_PROCS = templates/p_Procs_Lib.cc
112
113p_Procs_FieldGeneral_la_SOURCES = ${P_PROCS}
114p_Procs_FieldIndep_la_SOURCES = ${P_PROCS}
115p_Procs_FieldQ_la_SOURCES = ${P_PROCS}
116p_Procs_FieldZp_la_SOURCES = ${P_PROCS}
117
118p_Procs_FieldGeneral_g_la_SOURCES = ${P_PROCS}
119p_Procs_FieldIndep_g_la_SOURCES = ${P_PROCS}
120p_Procs_FieldQ_g_la_SOURCES = ${P_PROCS}
121p_Procs_FieldZp_g_la_SOURCES = ${P_PROCS}
122
123
124moduledir = $(bindir)
125#moduledir = $(libexecdir)/singular/MOD/
126
127if ENABLE_P_PROCS_DYNAMIC
128  module_LTLIBRARIES=p_Procs_FieldGeneral.la p_Procs_FieldIndep.la p_Procs_FieldQ.la p_Procs_FieldZp.la ${MOD_G}
129endif
130
131libpolys_includedir=$(includedir)/singular/polys
132
133nobase_libpolys_include_HEADERS = $(LIBPOLYSHEADERS)
134
135libpolys_la_SOURCES = ${SOURCES}
136libpolys_g_la_SOURCES = ${SOURCES}
137
138EXTRA_libpolys_la_SOURCES = templates/p_Procs_Static.cc templates/p_Procs_Dynamic.cc
139
140libpolys_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
141libpolys_la_CPPFLAGS = ${NODEBUGDEFS} ${AM_CPPFLAGS}
142
143
144
145
146#################################################
147# autogenerated sources
148
149BUILT_SOURCES = prCopy.inc templates/p_Procs.inc
150
151noinst_PROGRAMS = templates/p_Procs_Generate
152templates_p_Procs_Generate_SOURCES = templates/p_Procs_Generate.cc
153templates_p_Procs_Generate_CFLAGS   = ${NODEBUGCFLAGS}
154templates_p_Procs_Generate_CXXFLAGS = ${NODEBUGCXXFLAGS}
155templates_p_Procs_Generate_CPPFLAGS = ${NODEBUGDEFS} ${USE_P_PROCS_STATIC} ${AM_CPPFLAGS}
156
157templates_p_Procs_Generate_LDADD    = -lreporter -lmisc -lomalloc -lfindexec
158templates_p_Procs_Generate_LDFLAGS  = -L${builddir} -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/misc -L${top_builddir}/../omalloc -L${top_builddir}/../findexec
159
160templates/p_Procs.inc: templates/p_Procs_Generate
161        ${builddir}/templates/p_Procs_Generate > ${builddir}/templates/p_Procs.inc
162
163prCopy.inc: prCopy.pl
164        perl ${srcdir}/prCopy.pl >  prCopy.inc
165
166CLEANFILES = $(BUILT_SOURCES)
167
Note: See TracBrowser for help on using the repository browser.