source: git/libpolys/polys/Makefile.am @ 240fe3

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