source: git/libpolys/polys/Makefile.am @ 44105a7

spielwiese
Last change on this file since 44105a7 was 44105a7, checked in by Bradford Hovinen <hovinen@…>, 13 years ago
* Use -module when linking p_Procs dynamic modules * Remove lib prefix from names of p_Procs dynamic modules
  • Property mode set to 100644
File size: 5.2 KB
Line 
1CXXTEMPLFLAGS   = -fno-implicit-templates --no-exceptions
2
3
4DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long
5
6NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer
7NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti
8NODEBUGCPPFLAGS = -DNDEBUG -DOM_NDEBUG
9
10AM_CPPFLAGS     = -DHAVE_CONFIG_H
11
12AM_CFLAGS       = ${PIPE}
13AM_CXXFLAGS     = ${PIPE} ${CXXTEMPLFLAGS}
14
15INCLUDES        = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${srcdir} -I${includedir} ${GMP_CFLAGS}
16AM_LDFLAGS      = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/../omalloc -L${builddir}
17
18if ENABLE_P_PROCS_STATIC
19  USE_P_PROCS_STATIC_CC = templates/p_Procs_Static.cc
20else
21  USE_P_PROCS_STATIC_CC =
22endif
23
24if ENABLE_P_PROCS_DYNAMIC
25  USE_P_PROCS_DYNAMIC_CC = templates/p_Procs_Dynamic.cc
26else
27  USE_P_PROCS_DYNAMIC_CC =
28endif
29
30SOURCES = \
31        monomials/monomials.cc monomials/p_polys.cc monomials/ring.cc monomials/maps.cc \
32        operations/pShallowCopyDelete.cc operations/p_Mult_q.cc \
33        templates/p_Procs_Lib.cc \
34        nc/gring.cc nc/sca.cc nc/summator.cc nc/ncSAFormula.cc nc/ncSACache.cc nc/ncSAMult.cc \
35        pDebug.cc pInline0.cc polys0.cc prCopy.cc \
36        kbuckets.cc sbuckets.cc weight.cc weight0.c simpleideals.cc matpol.cc \
37  ${USE_P_PROCS_STATIC_CC} ${USE_P_PROCS_DYNAMIC_CC} templates/mod_raw.cc
38
39BUILT_SOURCES = templates/p_Procs.inc
40
41noinst_HEADERS =
42
43include_HEADERS = \
44        monomials/ring.h nc/nc.h \
45  nc/sca.h nc/summator.h nc/ncSAFormula.h nc/ncSACache.h nc/ncSAMult.h \
46        pInline0.h operations/pShallowCopyDelete.h \
47        templates/p_MemAdd.h templates/p_MemCmp.h templates/p_MemCopy.h operations/p_Mult_q.h \
48        templates/p_Numbers.h templates/p_Procs.h templates/mod_raw.h \
49        templates/p_Procs_Dynamic.h templates/p_Procs_Impl.h templates/p_Procs_Set.h templates/p_Procs_Static.h \
50        monomials/p_polys.h monomials/polys-impl.h monomials/maps.h polys.h prCopy.h prCopyMacros.h \
51        kbuckets.h sbuckets.h simpleideals.h weight.h \
52  matpol.h
53
54P_PROCS_CPPFLAGS_COMMON = -DHAVE_CONFIG_H -DDYNAMIC_VERSION
55
56p_Procs_FieldGeneral_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGCPPFLAGS}
57p_Procs_FieldIndep_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGCPPFLAGS}
58p_Procs_FieldQ_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGCPPFLAGS}
59p_Procs_FieldZp_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGCPPFLAGS}
60
61p_Procs_FieldGeneral_g_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON}
62p_Procs_FieldIndep_g_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON}
63p_Procs_FieldQ_g_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON}
64p_Procs_FieldZp_g_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON}
65
66p_Procs_FieldGeneral_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
67p_Procs_FieldIndep_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
68p_Procs_FieldQ_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
69p_Procs_FieldZp_la_CXXFLAGS = ${NODEBUGCXXFLAGS}
70
71p_Procs_FieldGeneral_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
72p_Procs_FieldIndep_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
73p_Procs_FieldQ_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
74p_Procs_FieldZp_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
75
76P_PROCS_MODULE_LDFLAGS = -module
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_FieldGeneral_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
84p_Procs_FieldIndep_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
85p_Procs_FieldQ_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
86p_Procs_FieldZp_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
87
88
89P_PROCS = templates/p_Procs_Lib.cc
90
91p_Procs_FieldGeneral_la_SOURCES = ${P_PROCS}
92p_Procs_FieldIndep_la_SOURCES = ${P_PROCS}
93p_Procs_FieldQ_la_SOURCES = ${P_PROCS}
94p_Procs_FieldZp_la_SOURCES = ${P_PROCS}
95
96p_Procs_FieldGeneral_g_la_SOURCES = ${P_PROCS}
97p_Procs_FieldIndep_g_la_SOURCES = ${P_PROCS}
98p_Procs_FieldQ_g_la_SOURCES = ${P_PROCS}
99p_Procs_FieldZp_g_la_SOURCES = ${P_PROCS}
100
101
102
103lib_LIBRARIES=libpolys.a libpolys_g.a
104
105moduledir = ${libdir}/singular/MOD/
106
107module_LTLIBRARIES=p_Procs_FieldGeneral.la p_Procs_FieldIndep.la p_Procs_FieldQ.la p_Procs_FieldZp.la \
108                   p_Procs_FieldGeneral_g.la p_Procs_FieldIndep_g.la p_Procs_FieldQ_g.la p_Procs_FieldZp_g.la
109
110libpolys_a_SOURCES = ${SOURCES}
111libpolys_g_a_SOURCES = ${SOURCES}
112
113EXTRA_libpolys_a_SOURCES = templates/p_Procs_Static.cc templates/p_Procs_Dynamic.cc
114
115libpolys_a_includedir  =$(includedir)/libpolys/polys
116libpolys_g_a_includedir=$(includedir)/libpolys/polys
117
118EXTRA_PROGRAMS = templates/p_Procs_Generate
119templates_p_Procs_Generate_SOURCES = templates/p_Procs_Generate.cc
120
121
122###test_LDADD   = libcoeffs.a -lresources -lreporter -lgmp -lomalloc
123
124templates_p_Procs_Generate_CFLAGS   = ${NODEBUGCFLAGS}
125templates_p_Procs_Generate_CXXFLAGS = ${NODEBUGCXXFLAGS}
126templates_p_Procs_Generate_CPPFLAGS = ${NODEBUGCPPFLAGS}
127templates_p_Procs_Generate_LDADD    = -lreporter
128
129
130templates/p_Procs.inc: templates/p_Procs_Generate
131        ${builddir}/templates/p_Procs_Generate > ${builddir}/templates/p_Procs.inc
132
133libpolys_g_a_CXXFLAGS = ${DEBUGCXXFLAGS}
134#  -fdiagnostics-show-option
135
136dynamic_modules: ${module_LTLIBRARIES}
137
138prCopy.inc: prCopy.pl
139        perl prCopy.pl > prCopy.xx && mv prCopy.xx prCopy.inc
140
141prCopy.o: prCopy.inc
Note: See TracBrowser for help on using the repository browser.