source: git/libpolys/polys/Makefile.am @ 7ea62f6

fieker-DuValspielwiese
Last change on this file since 7ea62f6 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
RevLine 
[419b39]1CXXTEMPLFLAGS   =  --no-exceptions ## -fno-implicit-templates
[57c6ed2]2
3DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long
4
5NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer
6NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti
[50b874]7NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
[57c6ed2]8
9AM_CFLAGS       = ${PIPE}
10AM_CXXFLAGS     = ${PIPE} ${CXXTEMPLFLAGS}
11
[adb2ed]12INCLUDES        = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} -I${includedir} ${GMP_CFLAGS}
[ec0d9b]13AM_LDFLAGS      = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/../omalloc -L${builddir}
[6bec87]14
[812138]15if ENABLE_P_PROCS_STATIC
16  USE_P_PROCS_STATIC_CC = templates/p_Procs_Static.cc
[6d28ba7]17  USE_P_PROCS_STATIC = -Dp_Procs_Static
[812138]18else
19  USE_P_PROCS_STATIC_CC =
[6d28ba7]20  USE_P_PROCS_STATIC =
[812138]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
[c2eb2e]29libpolys_LIBRARIES = libpolys.a libpolys_g.a
30libpolysdir = $(libdir)/singular
[148d3c]31
[6bec87]32SOURCES = \
[0cf29ee]33        monomials/monomials.cc monomials/p_polys.cc monomials/ring.cc monomials/maps.cc \
[c2eb2e]34        operations/pShallowCopyDelete.cc operations/p_Mult_q.cc \
[210e07]35        nc/sca.cc nc/summator.cc nc/ncSAFormula.cc nc/ncSACache.cc nc/ncSAMult.cc \
[d2f64e]36        pDebug.cc polys0.cc prCopy.cc prCopyMacros.h \
[8c9912]37        kbuckets.cc sbuckets.cc weight.cc weight0.c simpleideals.cc matpol.cc \
[bf6a4d]38        sparsmat.cc \
[c2eb2e]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 \
[801bdb]42        nc/old.gring.cc
[35eaf8]43
[148d3c]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 \
[0ff203]46        operations/pShallowCopyDelete.h \
47        templates/p_Procs.h templates/p_MemAdd.h templates/p_MemCmp.h \
[737a68]48        monomials/p_polys.h monomials/maps.h prCopy.h \
[af598e]49        kbuckets.h sbuckets.h simpleideals.h weight.h matpol.h \
[c2eb2e]50        sparsmat.h clapsing.h clapconv.h coeffrings.h \
[0ff203]51        ext_fields/algext.h ext_fields/transext.h mod_raw.h 
[148d3c]52
[c2eb2e]53EXTRA_DIST = \
54        prCopy.pl prCopyTemplate.cc \
[0ff203]55        templates/p_Procs_Lib.cc templates/p_MemCopy.h templates/p_Numbers.h \
[c2eb2e]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 \
[0ff203]58        templates/p_ShallowCopyDelete__T.cc templates/p_Mult_nn__T.cc \
[c2eb2e]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 \
[0ff203]62        templates/pp_Mult_mm_Noether__T.cc operations/p_Mult_q.h \
[c2eb2e]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
[148d3c]65
[d44785]66P_PROCS_CPPFLAGS_COMMON = -DDYNAMIC_VERSION
[57c6ed2]67
[50b874]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}
[57c6ed2]72
[44105a7]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}
[57c6ed2]77
[44105a7]78p_Procs_FieldGeneral_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
79p_Procs_FieldIndep_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
80p_Procs_FieldQ_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
81p_Procs_FieldZp_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
[57c6ed2]82
[44105a7]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
[50b874]88P_PROCS_MODULE_LDFLAGS = -module
89# -L${top_builddir}/coeffs -lcoeffs
90P_PROCS_MODULE_LDFLAGSG = -module
91# -L${top_builddir}/coeffs -lcoeffs_g
[44105a7]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
[50b874]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}
[57c6ed2]102
[f47f56]103
104P_PROCS = templates/p_Procs_Lib.cc
105
[44105a7]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}
[f47f56]110
[44105a7]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}
[57c6ed2]115
116
[7ea62f6]117moduledir = $(libexecdir)/singular/MOD/
[f47f56]118
[2dcf453]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
[f47f56]123
[c2eb2e]124libpolys_includedir=$(includedir)/singular/polys
[148d3c]125
[0ff203]126nobase_libpolys_include_HEADERS = $(LIBPOLYSHEADERS)
[148d3c]127
[6bec87]128libpolys_a_SOURCES = ${SOURCES}
129libpolys_g_a_SOURCES = ${SOURCES}
130
[148d3c]131EXTRA_libpolys_a_SOURCES = templates/p_Procs_Static.cc templates/p_Procs_Dynamic.cc
[57c6ed2]132
[c2eb2e]133libpolys_g_a_CXXFLAGS = ${DEBUGCXXFLAGS}
134libpolys_a_CPPFLAGS = ${NODEBUGDEFS}
135
[ce2120e]136
[c2eb2e]137#################################################
138# autogenerated sources
[57c6ed2]139
[c2eb2e]140BUILT_SOURCES = prCopy.inc templates/p_Procs.inc
[57c6ed2]141
[c2eb2e]142noinst_PROGRAMS = templates/p_Procs_Generate
143templates_p_Procs_Generate_SOURCES = templates/p_Procs_Generate.cc
[57c6ed2]144templates_p_Procs_Generate_CFLAGS   = ${NODEBUGCFLAGS}
145templates_p_Procs_Generate_CXXFLAGS = ${NODEBUGCXXFLAGS}
[50b874]146templates_p_Procs_Generate_CPPFLAGS = ${NODEBUGDEFS} ${USE_P_PROCS_STATIC}
[57c6ed2]147templates_p_Procs_Generate_LDADD    = -lreporter
148
149
[35eaf8]150templates/p_Procs.inc: templates/p_Procs_Generate
151        ${builddir}/templates/p_Procs_Generate > ${builddir}/templates/p_Procs.inc
[ce2120e]152
[c2eb2e]153prCopy.inc: prCopy.pl
154        perl ${srcdir}/prCopy.pl >  prCopy.inc
[78eba1]155
[c2eb2e]156CLEANFILES = $(BUILT_SOURCES)
[e0d8d1]157
Note: See TracBrowser for help on using the repository browser.