source: git/libpolys/polys/Makefile.am @ 5d9aa6

spielwiese
Last change on this file since 5d9aa6 was 5d9aa6, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
FIX: further fixes in matpol ADD: sparse matrices (sparsmat.*) - needed for matpol (Berreiss?)
  • Property mode set to 100644
File size: 5.0 KB
Line 
1ACLOCAL_AMFLAGS = -I m4 -I ../../m4
2CXXTEMPLFLAGS   = -fno-implicit-templates --no-exceptions
3
4
5DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long
6
7NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer
8NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti
9NODEBUGCPPFLAGS = -DNDEBUG -DOM_NDEBUG
10
11AM_CPPFLAGS     = -DHAVE_CONFIG_H
12
13AM_CFLAGS       = ${PIPE}
14AM_CXXFLAGS     = ${PIPE} ${CXXTEMPLFLAGS}
15
16INCLUDES        = -I${top_srcdir}/.. -I${top_srcdir}/../.. -I${top_builddir}/.. -I${srcdir} -I${includedir} ${GMP_CFLAGS}
17AM_LDFLAGS      = -L${top_builddir}/../coeffs -L${top_builddir}/../reporter -L${top_builddir}/../resources -L${top_builddir}/../../omalloc -L${builddir}
18
19if ENABLE_P_PROCS_STATIC
20  USE_P_PROCS_STATIC_CC = templates/p_Procs_Static.cc
21else
22  USE_P_PROCS_STATIC_CC =
23endif
24
25if ENABLE_P_PROCS_DYNAMIC
26  USE_P_PROCS_DYNAMIC_CC = templates/p_Procs_Dynamic.cc
27else
28  USE_P_PROCS_DYNAMIC_CC =
29endif
30
31SOURCES = \
32        monomials/monomials.cc monomials/p_polys.cc monomials/ring.cc monomials/maps.cc \
33        operations/pShallowCopyDelete.cc operations/p_Mult_q.cc \
34        templates/p_Procs_Lib.cc \
35        nc/gring.cc nc/sca.cc nc/summator.cc nc/ncSAFormula.cc nc/ncSACache.cc nc/ncSAMult.cc \
36        pDebug.cc pInline0.cc polys0.cc prCopy.cc \
37        kbuckets.cc sbuckets.cc ${USE_P_PROCS_STATIC_CC} ${USE_P_PROCS_DYNAMIC_CC} weight.cc \
38  simpleideals.cc matpol.cc sparsmat.cc
39
40BUILT_SOURCES = templates/p_Procs.inc
41
42noinst_HEADERS =
43
44include_HEADERS = \
45        monomials/ring.h nc/nc.h \
46  nc/sca.h nc/summator.h nc/ncSAFormula.h nc/ncSACache.h nc/ncSAMult.h \
47        pInline0.h operations/pShallowCopyDelete.h \
48        templates/p_MemAdd.h templates/p_MemCmp.h templates/p_MemCopy.h operations/p_Mult_q.h \
49        templates/p_Numbers.h templates/p_Procs.h \
50        templates/p_Procs_Dynamic.h templates/p_Procs_Impl.h templates/p_Procs_Set.h templates/p_Procs_Static.h \
51        monomials/p_polys.h monomials/polys-impl.h monomials/maps.h polys.h prCopy.h prCopyMacros.h \
52        kbuckets.h sbuckets.h simpleideals.h weight.h \
53  matpol.h sparsmat.h
54
55P_PROCS_CPPFLAGS_COMMON = -DHAVE_CONFIG_H -DDYNAMIC_VERSION
56
57libp_Procs_FieldGeneral_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGCPPFLAGS}
58libp_Procs_FieldIndep_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGCPPFLAGS}
59libp_Procs_FieldQ_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGCPPFLAGS}
60libp_Procs_FieldZp_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGCPPFLAGS}
61
62libp_Procs_FieldGeneral_g_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON}
63libp_Procs_FieldIndep_g_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON}
64libp_Procs_FieldQ_g_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON}
65libp_Procs_FieldZp_g_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON}
66
67libp_Procs_FieldGeneral_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
68libp_Procs_FieldIndep_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
69libp_Procs_FieldQ_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
70libp_Procs_FieldZp_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
71
72libp_Procs_FieldGeneral_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
73libp_Procs_FieldIndep_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
74libp_Procs_FieldQ_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
75libp_Procs_FieldZp_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
76
77
78P_PROCS = templates/p_Procs_Lib.cc
79
80libp_Procs_FieldGeneral_la_SOURCES = ${P_PROCS}
81libp_Procs_FieldIndep_la_SOURCES = ${P_PROCS}
82libp_Procs_FieldQ_la_SOURCES = ${P_PROCS}
83libp_Procs_FieldZp_la_SOURCES = ${P_PROCS}
84
85libp_Procs_FieldGeneral_g_la_SOURCES = ${P_PROCS}
86libp_Procs_FieldIndep_g_la_SOURCES = ${P_PROCS}
87libp_Procs_FieldQ_g_la_SOURCES = ${P_PROCS}
88libp_Procs_FieldZp_g_la_SOURCES = ${P_PROCS}
89
90
91
92lib_LIBRARIES=libpolys.a libpolys_g.a
93
94moduledir = ${libdir}/singular/MOD/
95
96module_LTLIBRARIES=libp_Procs_FieldGeneral.la libp_Procs_FieldIndep.la libp_Procs_FieldQ.la libp_Procs_FieldZp.la \
97                   libp_Procs_FieldGeneral_g.la libp_Procs_FieldIndep_g.la libp_Procs_FieldQ_g.la libp_Procs_FieldZp_g.la
98
99libpolys_a_SOURCES = ${SOURCES}
100libpolys_g_a_SOURCES = ${SOURCES}
101
102EXTRA_libpolys_a_SOURCES = templates/p_Procs_Static.cc templates/p_Procs_Dynamic.cc
103
104libpolys_a_LIBADD = $(DL_KERNEL_OBJECT)
105libpolys_a_DEPENDENCIES = $(DL_KERNEL_OBJECT)
106
107libpolys_g_a_LIBADD = $(DL_KERNEL_OBJECT_DEBUG)
108libpolys_g_a_DEPENDENCIES = $(DL_KERNEL_OBJECT_DEBUG)
109
110
111libpolys_a_includedir  =$(includedir)/libpolys/polys
112libpolys_g_a_includedir=$(includedir)/libpolys/polys
113
114EXTRA_PROGRAMS = templates/p_Procs_Generate
115templates_p_Procs_Generate_SOURCES = templates/p_Procs_Generate.cc
116
117
118###test_LDADD   = libcoeffs.a -lresources -lreporter -lgmp -lomalloc
119
120templates_p_Procs_Generate_CFLAGS   = ${NODEBUGCFLAGS}
121templates_p_Procs_Generate_CXXFLAGS = ${NODEBUGCXXFLAGS}
122templates_p_Procs_Generate_CPPFLAGS = ${NODEBUGCPPFLAGS}
123templates_p_Procs_Generate_LDADD    = -lreporter
124
125
126templates/p_Procs.inc: templates/p_Procs_Generate
127        ${builddir}/templates/p_Procs_Generate > ${builddir}/templates/p_Procs.inc
128
129libpolys_g_a_CXXFLAGS = ${DEBUGCXXFLAGS}
130#  -fdiagnostics-show-option
131
132dynamic_modules: ${module_LTLIBRARIES}
133
134prCopy.inc: prCopy.pl
135        perl prCopy.pl > prCopy.xx && mv prCopy.xx prCopy.inc
136
137prCopy.o: prCopy.inc
Note: See TracBrowser for help on using the repository browser.