1 | # PIPE = -pipe |
---|
2 | # ??? |
---|
3 | #LD_DYN_FLAGS = -ldl -rdynamic |
---|
4 | #SFLAGS = -fpic -DPIC |
---|
5 | #SLDFLAGS = -shared |
---|
6 | #LD_LIBC = -lc |
---|
7 | #STATIC_LDFLAGS = -static |
---|
8 | |
---|
9 | |
---|
10 | NODEBUGCFLAGS = -O3 -w -fomit-frame-pointer |
---|
11 | NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti |
---|
12 | NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG |
---|
13 | |
---|
14 | CXXTEMPLFLAGS = --no-exceptions ## -fno-implicit-templates |
---|
15 | |
---|
16 | INCLUDES = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/numeric -I${top_builddir}/numeric -I${top_srcdir}/kernel -I${top_builddir}/kernel -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(GMP_CFLAGS) $(FACTORY_CFLAGS) $(NTL_CFLAGS) |
---|
17 | |
---|
18 | ########################### libSingular* ######################### |
---|
19 | |
---|
20 | libSingular_LTLIBRARIES = libSingular.la libSingular_g.la |
---|
21 | libSingulardir = $(libdir)/singular |
---|
22 | |
---|
23 | libSingular_la_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} |
---|
24 | libSingular_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} |
---|
25 | |
---|
26 | libSingular_la_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
27 | libSingular_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
28 | # -fdiagnostics-show-option |
---|
29 | |
---|
30 | libSingular_la_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DLIBSINGULAR |
---|
31 | libSingular_g_la_CPPFLAGS = -DLIBSINGULAR |
---|
32 | |
---|
33 | SOURCES = Minor.cc\ |
---|
34 | MinorInterface.cc\ |
---|
35 | MinorProcessor.cc\ |
---|
36 | attrib.cc\ |
---|
37 | bbcone.cc\ |
---|
38 | bbfan.cc\ |
---|
39 | bigintm.cc\ |
---|
40 | blackbox.cc\ |
---|
41 | calcSVD.cc\ |
---|
42 | cntrlc.cc\ |
---|
43 | denom_list.cc\ |
---|
44 | eigenval_ip.cc\ |
---|
45 | extra.cc\ |
---|
46 | feOpt.cc\ |
---|
47 | fehelp.cc\ |
---|
48 | fevoices.cc\ |
---|
49 | fglm.cc\ |
---|
50 | gms.cc\ |
---|
51 | grammar.cc\ |
---|
52 | interpolation.cc\ |
---|
53 | iparith.cc\ |
---|
54 | ipassign.cc\ |
---|
55 | ipconv.cc\ |
---|
56 | ipid.cc\ |
---|
57 | iplib.cc\ |
---|
58 | ipprint.cc\ |
---|
59 | ipshell.cc\ |
---|
60 | janet.cc\ |
---|
61 | libparse.cc\ |
---|
62 | linearAlgebra_ip.cc\ |
---|
63 | lists.cc\ |
---|
64 | maps_ip.cc\ |
---|
65 | minpoly.cc\ |
---|
66 | misc_ip.cc\ |
---|
67 | mpsr_Error.cc\ |
---|
68 | mpsr_Get.cc\ |
---|
69 | mpsr_GetMisc.cc\ |
---|
70 | mpsr_GetPoly.cc\ |
---|
71 | mpsr_Put.cc\ |
---|
72 | mpsr_PutPoly.cc\ |
---|
73 | mpsr_Timer.cc\ |
---|
74 | mpsr_Tok.cc\ |
---|
75 | mpsr_sl.cc\ |
---|
76 | ndbm.cc\ |
---|
77 | newstruct.cc\ |
---|
78 | pcv.cc\ |
---|
79 | pipeLink.cc\ |
---|
80 | scanner.cc\ |
---|
81 | sdb.cc\ |
---|
82 | silink.cc\ |
---|
83 | sing_dbm.cc\ |
---|
84 | sing_win.cc\ |
---|
85 | slInit_Static.cc\ |
---|
86 | ssiLink.cc\ |
---|
87 | subexpr.cc\ |
---|
88 | utils.cc\ |
---|
89 | walk.cc\ |
---|
90 | walk_ip.cc\ |
---|
91 | wrapper.cc\ |
---|
92 | fereadl.c mmstd.c claptmpl.cc |
---|
93 | |
---|
94 | # slInit_Dynamic.cc |
---|
95 | |
---|
96 | libSingular_la_SOURCES = $(SOURCES) feOpt.inc feOptTS.inc feOptES.inc |
---|
97 | libSingular_g_la_SOURCES = $(SOURCES) feOpt.inc feOptTS.inc feOptES.inc |
---|
98 | |
---|
99 | SingularHEADERS = Cache.h \ |
---|
100 | CacheImplementation.h \ |
---|
101 | Minor.h \ |
---|
102 | MinorInterface.h \ |
---|
103 | MinorProcessor.h \ |
---|
104 | attrib.h \ |
---|
105 | bigintm.h \ |
---|
106 | blackbox.h \ |
---|
107 | cntrlc.h \ |
---|
108 | dbm_sl.h \ |
---|
109 | distrib.h \ |
---|
110 | eigenval_ip.h \ |
---|
111 | feOpt.h feOptTab.h fehelp.h \ |
---|
112 | fglm.h \ |
---|
113 | gms.h \ |
---|
114 | grammar.h \ |
---|
115 | interpolation.h \ |
---|
116 | idrec.h \ |
---|
117 | ipconv.h \ |
---|
118 | ipid.h \ |
---|
119 | ipprint.h \ |
---|
120 | ipshell.h \ |
---|
121 | janet.h \ |
---|
122 | libparse.h \ |
---|
123 | libsingular.h \ |
---|
124 | linearAlgebra_ip.h\ |
---|
125 | lists.h \ |
---|
126 | locals.h \ |
---|
127 | maps_ip.h \ |
---|
128 | minpoly.h \ |
---|
129 | misc_ip.h \ |
---|
130 | mmalloc.h \ |
---|
131 | omSingularConfig.h \ |
---|
132 | mpsr.h \ |
---|
133 | mpsr_Get.h \ |
---|
134 | mpsr_Put.h \ |
---|
135 | mpsr_Timer.h \ |
---|
136 | mpsr_Tok.h \ |
---|
137 | mpsr_sl.h \ |
---|
138 | ndbm.h \ |
---|
139 | newstruct.h \ |
---|
140 | pcv.h \ |
---|
141 | pipeLink.h \ |
---|
142 | pyobject_setup.h \ |
---|
143 | run.h \ |
---|
144 | sdb.h \ |
---|
145 | silink.h \ |
---|
146 | sing_dbm.h \ |
---|
147 | sing_win.h \ |
---|
148 | slInit.h \ |
---|
149 | ssiLink.h \ |
---|
150 | static.h \ |
---|
151 | stype.h \ |
---|
152 | subexpr.h \ |
---|
153 | table.h \ |
---|
154 | tok.h \ |
---|
155 | utils.h \ |
---|
156 | version.h \ |
---|
157 | walk.h \ |
---|
158 | feOpt.h |
---|
159 | |
---|
160 | nodist_libSingular_la_SOURCES = mpsr_Tok.inc iparith.inc plural_cmd.inc |
---|
161 | nodist_libSingular_g_la_SOURCES = mpsr_Tok.inc iparith.inc plural_cmd.inc |
---|
162 | |
---|
163 | libSingular_includedir = ${includedir}/singular/Singular/ |
---|
164 | nobase_libSingular_include_HEADERS = $(SingularHEADERS) |
---|
165 | |
---|
166 | if ENABLE_FACTORY |
---|
167 | USE_FACTORY = -L${top_builddir}/factory |
---|
168 | else |
---|
169 | USE_FACTORY = |
---|
170 | endif |
---|
171 | |
---|
172 | # noinst_HEADERS = feOpt.h |
---|
173 | ## TODO: install all the *.inc?! |
---|
174 | ## If not, move feOpt.h to SOURCES and remove *inc from HEADERS |
---|
175 | |
---|
176 | ######################################################### |
---|
177 | # handle all the generated *.inc |
---|
178 | |
---|
179 | AM_LDFLAGS = -L${abs_top_builddir}/Singular -L${abs_top_builddir}/numeric -L${abs_top_builddir}/kernel -L${abs_top_builddir}/libpolys/polys $(USE_FACTORY) -L${abs_top_builddir}/omalloc |
---|
180 | |
---|
181 | noinst_PROGRAMS = gentable2 gentable1 feOpt feOptES feOptTS |
---|
182 | |
---|
183 | gentable2_SOURCES = gentable2.cc grammar.h tok.h table.h |
---|
184 | gentable2_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
185 | gentable2_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
186 | gentable2_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
187 | |
---|
188 | |
---|
189 | gentable1_SOURCES = gentable.cc grammar.h tok.h table.h |
---|
190 | gentable1_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
191 | gentable1_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
192 | gentable1_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
193 | |
---|
194 | feOpt_SOURCES = feOptGen.cc feOptGen.h |
---|
195 | feOpt_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
196 | feOpt_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
197 | |
---|
198 | feOptES_SOURCES = feOptGen.cc feOptGen.h |
---|
199 | feOptES_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
200 | feOptES_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DESINGULAR |
---|
201 | |
---|
202 | feOptTS_SOURCES = feOptGen.cc feOptGen.h |
---|
203 | feOptTS_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
204 | feOptTS_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DTSINGULAR |
---|
205 | |
---|
206 | ########################### Singular* ######################### |
---|
207 | |
---|
208 | bin_PROGRAMS = Singular Singularg Singulard Singulardg |
---|
209 | |
---|
210 | Singular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
211 | Singularg_CFLAGS = -g ${PIPE} |
---|
212 | |
---|
213 | Singular_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
214 | Singularg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
215 | |
---|
216 | nodist_Singular_SOURCES = libSingular.la |
---|
217 | nodist_Singularg_SOURCES = libSingular_g.la |
---|
218 | |
---|
219 | Singular_SOURCES = tesths.cc |
---|
220 | Singularg_SOURCES = tesths.cc |
---|
221 | |
---|
222 | Singular_LDADD = libSingular.la -lnumeric -lkernel -lpolys $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
223 | Singularg_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
224 | |
---|
225 | Singular_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
226 | # Singularg_CPPFLAGS = |
---|
227 | |
---|
228 | Singular_LDFLAGS = -static |
---|
229 | Singularg_LDFLAGS = -static |
---|
230 | |
---|
231 | |
---|
232 | Singulard_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
233 | Singulardg_CFLAGS = -g ${PIPE} |
---|
234 | |
---|
235 | Singulard_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
236 | Singulardg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
237 | |
---|
238 | Singulard_SOURCES = tesths.cc |
---|
239 | nodist_Singulard_SOURCES = libSingular.la |
---|
240 | |
---|
241 | Singulardg_SOURCES = tesths.cc |
---|
242 | nodist_Singulardg_SOURCES = libSingular_g.la |
---|
243 | |
---|
244 | Singulard_LDADD = libSingular.la -lnumeric -lkernel -lpolys $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
245 | Singulardg_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
246 | |
---|
247 | Singulard_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
248 | # Singulardg_CPPFLAGS = |
---|
249 | |
---|
250 | |
---|
251 | ######################################################### |
---|
252 | # the Singular library (*.lib files) |
---|
253 | |
---|
254 | include ${srcdir}/singular-libs |
---|
255 | |
---|
256 | singularlibrarydir = ${datadir}/singular |
---|
257 | singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) |
---|
258 | nobase_dist_singularlibrary_DATA = LIB/all.lib LIB/tst.lib LIB/help.cnf ${singularlibrary} |
---|
259 | EXTRA_DIST = make_alllib.sh LIB/all.lib.tmpl singular-libs LIB/help.cnf |
---|
260 | |
---|
261 | # ${nobase_dist_singularlibrary_DATA} |
---|
262 | LIB/all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary} |
---|
263 | $(MKDIR_P) LIB |
---|
264 | ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS} |
---|
265 | |
---|
266 | ########################### TEST ######################### |
---|
267 | |
---|
268 | TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/Singular/LIB:${abs_top_builddir}/libpolys/tests/MOD:${abs_top_builddir}/libpolys/tests/gftables' |
---|
269 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}' |
---|
270 | |
---|
271 | TESTS=test-s-g test-s-r test-d-g test-d-r |
---|
272 | check_PROGRAMS=$(TESTS) |
---|
273 | |
---|
274 | # Static versions |
---|
275 | |
---|
276 | test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
277 | test_s_g_CFLAGS = ${PIPE} |
---|
278 | |
---|
279 | test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
280 | test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
281 | |
---|
282 | test_s_r_SOURCES = test.cc |
---|
283 | test_s_g_SOURCES = test.cc |
---|
284 | |
---|
285 | test_s_r_LDADD = libSingular.la -lnumeric -lkernel -lpolys $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
286 | test_s_g_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
287 | |
---|
288 | test_s_r_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
289 | # test_s_g_CPPFLAGS = |
---|
290 | |
---|
291 | test_s_r_LDFLAGS = -static |
---|
292 | test_s_g_LDFLAGS = -static |
---|
293 | |
---|
294 | |
---|
295 | # Dynamic versions |
---|
296 | |
---|
297 | test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
298 | test_d_g_CFLAGS = ${PIPE} |
---|
299 | |
---|
300 | test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
301 | test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
302 | |
---|
303 | test_d_r_SOURCES = test.cc |
---|
304 | test_d_g_SOURCES = test.cc |
---|
305 | |
---|
306 | test_d_r_LDADD = libSingular.la -lnumeric -lkernel -lpolys $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
307 | test_d_g_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
308 | |
---|
309 | test_d_r_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
310 | # test_d_g_CPPFLAGS = |
---|
311 | |
---|
312 | ######################################################### |
---|
313 | |
---|
314 | # These files are built first |
---|
315 | BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc mpsr_Tok.inc iparith.inc plural_cmd.inc LIB/all.lib |
---|
316 | |
---|
317 | CLEANFILES = $(BUILT_SOURCES) |
---|
318 | |
---|
319 | feOpt.inc: feOpt |
---|
320 | ${abs_builddir}/feOpt |
---|
321 | |
---|
322 | feOptES.inc: feOptES |
---|
323 | ${abs_builddir}/feOptES |
---|
324 | |
---|
325 | feOptTS.inc: feOptTS |
---|
326 | ${abs_builddir}/feOptTS |
---|
327 | |
---|
328 | plural_cmd.inc iparith.inc: gentable1 |
---|
329 | ${abs_builddir}/gentable1 |
---|
330 | |
---|
331 | # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html |
---|
332 | plural_cmd.inc: iparith.inc |
---|
333 | |
---|
334 | mpsr_Tok.inc: gentable2 |
---|
335 | ${abs_builddir}/gentable2 |
---|
336 | |
---|