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

spielwiese
Last change on this file since 312083 was 55b6460, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Moved -DHAVE_CONFIG from Makefile.am: AM_CPPFLAGS into global compiler flags
  • Property mode set to 100644
File size: 4.9 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../m4
2
3DEBUGCXXFLAGS   =
4NODEBUGCFLAGS   =
5NODEBUGCXXFLAGS =
6NODEBUGDEFS     =
7
8AM_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} 
9
10
11if ENABLE_P_PROCS_STATIC
12  USE_P_PROCS_STATIC_CC = templates/p_Procs_Static.cc
13  USE_P_PROCS_STATIC = -Dp_Procs_Static
14else
15  USE_P_PROCS_STATIC_CC =
16  USE_P_PROCS_STATIC =
17endif
18
19if ENABLE_P_PROCS_DYNAMIC
20  USE_P_PROCS_DYNAMIC_CC = templates/p_Procs_Dynamic.cc
21  P_PROCS_CPPFLAGS_COMMON = ${AM_CPPFLAGS} -DDYNAMIC_VERSION
22else
23  USE_P_PROCS_DYNAMIC_CC =
24  P_PROCS_CPPFLAGS_COMMON = ${AM_CPPFLAGS}
25endif
26
27
28libpolys_LTLIBRARIES = libpolys.la
29libpolysdir = $(libdir)/singular
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        nc/sca.cc nc/summator.cc nc/ncSAFormula.cc nc/ncSACache.cc nc/ncSAMult.cc \
35        pDebug.cc polys0.cc prCopy.cc prCopyMacros.h \
36        kbuckets.cc sbuckets.cc weight.cc weight0.c simpleideals.cc matpol.cc \
37        sparsmat.cc \
38        ${USE_P_PROCS_STATIC_CC} ${USE_P_PROCS_DYNAMIC_CC} mod_raw.cc \
39        ext_fields/algext.cc ext_fields/transext.cc \
40        clapsing.cc clapconv.cc \
41        nc/old.gring.cc PolyEnumerator.cc
42
43LIBPOLYSHEADERS = monomials/ring.h monomials/monomials.h \
44  monomials/p_polys.h monomials/maps.h PolyEnumerator.h  prCopy.h \
45        nc/nc.h nc/sca.h nc/summator.h nc/ncSAFormula.h nc/ncSACache.h nc/ncSAMult.h nc/gb_hack.h \
46        operations/pShallowCopyDelete.h \
47        templates/p_Procs.h templates/p_MemAdd.h templates/p_MemCmp.h \
48        kbuckets.h sbuckets.h simpleideals.h weight.h matpol.h \
49        sparsmat.h clapsing.h clapconv.h coeffrings.h \
50        ext_fields/algext.h ext_fields/transext.h mod_raw.h 
51
52EXTRA_DIST = \
53        prCopy.pl prCopyTemplate.cc \
54        templates/p_Procs_Lib.cc templates/p_MemCopy.h templates/p_Numbers.h \
55        templates/p_Procs_Set.h templates/p_Procs_Static.h templates/p_Procs_Dynamic.h \
56        templates/p_Procs_Impl.h templates/p_Delete__T.cc templates/p_Copy__T.cc \
57        templates/p_ShallowCopyDelete__T.cc templates/p_Mult_nn__T.cc \
58        templates/pp_Mult_nn__T.cc templates/pp_Mult_mm__T.cc templates/p_Mult_mm__T.cc \
59        templates/pp_Mult_Coeff_mm_DivSelect__T.cc templates/pp_Mult_nn__T.cc \
60        templates/pp_Mult_Coeff_mm_DivSelectMult__T.cc \
61        templates/pp_Mult_mm_Noether__T.cc operations/p_Mult_q.h \
62        templates/p_kBucketSetLm__T.cc templates/p_Minus_mm_Mult_qq__T.cc \
63        templates/p_Merge_q__T.cc templates/p_Add_q__T.cc templates/p_Neg__T.cc
64
65
66p_Procs_FieldGeneral_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
67p_Procs_FieldIndep_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
68p_Procs_FieldQ_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
69p_Procs_FieldZp_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
70
71p_Procs_FieldGeneral_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
72p_Procs_FieldIndep_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
73p_Procs_FieldQ_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
74p_Procs_FieldZp_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
75
76P_PROCS_MODULE_LDFLAGS = -shared -module -dynamic -export-dynamic -avoid-version -weak_reference_mismatches weak -undefined dynamic_lookup -Wl,-undefined -Wl,dynamic_lookup -flat_namespace
77
78p_Procs_FieldGeneral_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
79p_Procs_FieldIndep_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
80p_Procs_FieldQ_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
81p_Procs_FieldZp_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
82
83P_PROCS = templates/p_Procs_Lib.cc
84
85p_Procs_FieldGeneral_la_SOURCES = ${P_PROCS}
86p_Procs_FieldIndep_la_SOURCES = ${P_PROCS}
87p_Procs_FieldQ_la_SOURCES = ${P_PROCS}
88p_Procs_FieldZp_la_SOURCES = ${P_PROCS}
89
90
91moduledir = $(libexecdir)/singular/MOD
92
93if ENABLE_P_PROCS_DYNAMIC
94  module_LTLIBRARIES=p_Procs_FieldGeneral.la p_Procs_FieldIndep.la p_Procs_FieldQ.la p_Procs_FieldZp.la
95endif
96
97libpolys_includedir=$(includedir)/singular/polys
98
99nobase_libpolys_include_HEADERS = $(LIBPOLYSHEADERS)
100
101libpolys_la_SOURCES = ${SOURCES}
102
103EXTRA_libpolys_la_SOURCES = templates/p_Procs_Static.cc templates/p_Procs_Dynamic.cc
104
105libpolys_la_CPPFLAGS = ${NODEBUGDEFS} ${AM_CPPFLAGS}
106
107libpolys_la_LIBADD = ${top_builddir}/coeffs/libcoeffs.la
108
109### libpolys_la_LDFLAGS    = -release ${PACKAGE_VERSION}
110
111#################################################
112# autogenerated sources
113
114BUILT_SOURCES = prCopy.inc templates/p_Procs.inc
115
116noinst_PROGRAMS = templates/p_Procs_Generate
117templates_p_Procs_Generate_SOURCES = templates/p_Procs_Generate.cc
118templates_p_Procs_Generate_CPPFLAGS = ${USE_P_PROCS_STATIC} ${AM_CPPFLAGS}
119templates_p_Procs_Generate_LDADD    = ${top_builddir}/reporter/libreporter.la ${top_builddir}/misc/libmisc.la
120
121templates/p_Procs.inc: templates/p_Procs_Generate$(EXEEXT)
122        ${builddir}/templates/p_Procs_Generate$(EXEEXT) > ${builddir}/templates/p_Procs.inc
123
124prCopy.inc: prCopy.pl
125        perl ${srcdir}/prCopy.pl >  prCopy.inc
126
127CLEANFILES = $(BUILT_SOURCES)
128
Note: See TracBrowser for help on using the repository browser.