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 | WARNCFLAGS = -Wunused-parameter |
---|
10 | # clang has also: -Wunneeded-internal-declaration |
---|
11 | |
---|
12 | NODEBUGCFLAGS = -O3 -w -fomit-frame-pointer $(WARNCFLAGS) |
---|
13 | NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer $(WARNCFLAGS) |
---|
14 | NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG |
---|
15 | |
---|
16 | CXXTEMPLFLAGS =-ftrapv ## -fno-implicit-templates |
---|
17 | |
---|
18 | AM_CPPFLAGS = -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) -I${top_srcdir}/factory/include -I${top_builddir}/factory/include $(FACTORY_CFLAGS) $(NTL_CFLAGS) $(FLINT_CFLAGS) |
---|
19 | |
---|
20 | ########################### libSingular* ######################### |
---|
21 | |
---|
22 | if WANT_DEBUG |
---|
23 | LIB_G=libSingular_g.la |
---|
24 | else |
---|
25 | LIB_G= |
---|
26 | endif |
---|
27 | |
---|
28 | libSingular_LTLIBRARIES = libSingular.la ${LIB_G} |
---|
29 | libSingulardir = $(libdir)/singular |
---|
30 | |
---|
31 | libSingular_la_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(WARNCFLAGS) |
---|
32 | libSingular_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(WARNCFLAGS) |
---|
33 | |
---|
34 | libSingular_la_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) $(WARNCFLAGS) |
---|
35 | libSingular_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) $(WARNCFLAGS) |
---|
36 | # -fdiagnostics-show-option |
---|
37 | |
---|
38 | |
---|
39 | libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DLIBSINGULAR |
---|
40 | libSingular_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DLIBSINGULAR |
---|
41 | |
---|
42 | SOURCES = Minor.cc\ |
---|
43 | MinorInterface.cc\ |
---|
44 | MinorProcessor.cc\ |
---|
45 | attrib.cc\ |
---|
46 | bbcone.cc\ |
---|
47 | bbfan.cc\ |
---|
48 | bigintm.cc\ |
---|
49 | blackbox.cc\ |
---|
50 | calcSVD.cc\ |
---|
51 | cntrlc.cc\ |
---|
52 | countedref.cc\ |
---|
53 | denom_list.cc\ |
---|
54 | eigenval_ip.cc\ |
---|
55 | extra.cc\ |
---|
56 | feOpt.cc\ |
---|
57 | fehelp.cc\ |
---|
58 | fevoices.cc\ |
---|
59 | fglm.cc\ |
---|
60 | gms.cc\ |
---|
61 | grammar.cc\ |
---|
62 | interpolation.cc\ |
---|
63 | iparith.cc\ |
---|
64 | ipassign.cc\ |
---|
65 | ipconv.cc\ |
---|
66 | ipid.cc\ |
---|
67 | iplib.cc\ |
---|
68 | ipprint.cc\ |
---|
69 | ipshell.cc\ |
---|
70 | janet.cc\ |
---|
71 | libparse.cc\ |
---|
72 | linearAlgebra_ip.cc\ |
---|
73 | lists.cc\ |
---|
74 | maps_ip.cc\ |
---|
75 | minpoly.cc\ |
---|
76 | misc_ip.cc\ |
---|
77 | links/ndbm.cc\ |
---|
78 | newstruct.cc\ |
---|
79 | pcv.cc\ |
---|
80 | links/pipeLink.cc\ |
---|
81 | scanner.cc\ |
---|
82 | sdb.cc\ |
---|
83 | links/s_buff.cc\ |
---|
84 | links/silink.cc\ |
---|
85 | links/sing_dbm.cc\ |
---|
86 | sing_win.cc\ |
---|
87 | slInit_Static.cc\ |
---|
88 | links/ssiLink.cc\ |
---|
89 | subexpr.cc\ |
---|
90 | walk.cc\ |
---|
91 | walk_ip.cc\ |
---|
92 | wrapper.cc\ |
---|
93 | fereadl.c mmstd.c claptmpl.cc |
---|
94 | |
---|
95 | # slInit_Dynamic.cc |
---|
96 | |
---|
97 | libSingular_la_SOURCES = $(SOURCES) feOpt.inc |
---|
98 | libSingular_g_la_SOURCES = $(SOURCES) feOpt.inc |
---|
99 | |
---|
100 | SingularHEADERS = Cache.h \ |
---|
101 | CacheImplementation.h \ |
---|
102 | Minor.h \ |
---|
103 | MinorInterface.h \ |
---|
104 | MinorProcessor.h \ |
---|
105 | attrib.h \ |
---|
106 | bigintm.h \ |
---|
107 | blackbox.h \ |
---|
108 | cntrlc.h \ |
---|
109 | countedref.h \ |
---|
110 | links/dbm_sl.h \ |
---|
111 | distrib.h \ |
---|
112 | eigenval_ip.h \ |
---|
113 | feOpt.h feOptTab.h fehelp.h \ |
---|
114 | fglm.h \ |
---|
115 | gms.h \ |
---|
116 | grammar.h \ |
---|
117 | interpolation.h \ |
---|
118 | idrec.h \ |
---|
119 | ipconv.h \ |
---|
120 | ipid.h \ |
---|
121 | ipprint.h \ |
---|
122 | ipshell.h \ |
---|
123 | janet.h \ |
---|
124 | libparse.h \ |
---|
125 | libsingular.h \ |
---|
126 | linearAlgebra_ip.h\ |
---|
127 | lists.h \ |
---|
128 | locals.h \ |
---|
129 | maps_ip.h \ |
---|
130 | minpoly.h \ |
---|
131 | misc_ip.h \ |
---|
132 | mmalloc.h \ |
---|
133 | omSingularConfig.h \ |
---|
134 | links/ndbm.h \ |
---|
135 | newstruct.h \ |
---|
136 | pcv.h \ |
---|
137 | links/pipeLink.h \ |
---|
138 | pyobject_setup.h \ |
---|
139 | run.h \ |
---|
140 | sdb.h \ |
---|
141 | silink.h \ |
---|
142 | links/s_buff.h \ |
---|
143 | links/sing_dbm.h \ |
---|
144 | sing_win.h \ |
---|
145 | slInit.h \ |
---|
146 | links/ssiLink.h \ |
---|
147 | stype.h \ |
---|
148 | subexpr.h \ |
---|
149 | table.h \ |
---|
150 | tok.h \ |
---|
151 | walk.h |
---|
152 | |
---|
153 | # plural_cmd.inc |
---|
154 | nodist_libSingular_la_SOURCES = iparith.inc |
---|
155 | nodist_libSingular_g_la_SOURCES = iparith.inc |
---|
156 | |
---|
157 | noinst_HEADERS = version.h |
---|
158 | |
---|
159 | |
---|
160 | libSingular_includedir = ${includedir}/singular/Singular/ |
---|
161 | nobase_libSingular_include_HEADERS = $(SingularHEADERS) |
---|
162 | |
---|
163 | if ENABLE_FACTORY |
---|
164 | USE_FACTORY = -L${top_builddir}/factory |
---|
165 | else |
---|
166 | USE_FACTORY = |
---|
167 | endif |
---|
168 | |
---|
169 | ######################################################### |
---|
170 | # handle all the generated *.inc |
---|
171 | |
---|
172 | noinst_PROGRAMS = gentable1 feOptGen feOptES feOptTS |
---|
173 | |
---|
174 | gentable1_SOURCES = gentable.cc grammar.h tok.h table.h |
---|
175 | gentable1_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
176 | gentable1_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
177 | gentable1_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
178 | |
---|
179 | feOptGen_SOURCES = feOptGen.cc feOptGen.h |
---|
180 | feOptGen_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
181 | feOptGen_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
182 | |
---|
183 | feOptES_SOURCES = feOptGen.cc feOptGen.h |
---|
184 | feOptES_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
185 | feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DESINGULAR |
---|
186 | |
---|
187 | feOptTS_SOURCES = feOptGen.cc feOptGen.h |
---|
188 | feOptTS_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
189 | feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DTSINGULAR |
---|
190 | |
---|
191 | ########################### Singular* ######################### |
---|
192 | |
---|
193 | if WANT_DEBUG |
---|
194 | EXTRA_PROGRAMS = Singulard Singulardg libparse |
---|
195 | else |
---|
196 | EXTRA_PROGRAMS = Singulard libparse |
---|
197 | endif |
---|
198 | |
---|
199 | # the "optional_programs" variable should be defined in the configure |
---|
200 | # script, and listed in an AC_SUBST macro |
---|
201 | optional_Singular_programs = |
---|
202 | |
---|
203 | if WANT_DEBUG |
---|
204 | bin_PROGRAMS = Singular Singularg ESingular TSingular $(optional_Singular_programs) |
---|
205 | else |
---|
206 | bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs) |
---|
207 | endif |
---|
208 | |
---|
209 | AMLDFLAGS = -L${abs_top_builddir}/Singular -L${abs_top_builddir}/numeric -L${abs_top_builddir}/kernel -L${abs_top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/findexec |
---|
210 | |
---|
211 | Singular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
212 | Singularg_CFLAGS = -g ${PIPE} |
---|
213 | |
---|
214 | Singular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
215 | Singularg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
216 | |
---|
217 | nodist_Singular_SOURCES = libSingular.la |
---|
218 | nodist_Singularg_SOURCES = libSingular_g.la |
---|
219 | |
---|
220 | Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
221 | Singularg_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
222 | |
---|
223 | Singular_LDADD = libSingular.la ${abs_top_builddir}/numeric/libnumeric.la ${abs_top_builddir}/kernel/libkernel.la ${abs_top_builddir}/libpolys/polys/libpolys.la -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
224 | Singularg_LDADD = libSingular_g.la ${abs_top_builddir}/numeric/libnumeric_g.la ${abs_top_builddir}/kernel/libkernel_g.la ${abs_top_builddir}/libpolys/polys/libpolys_g.la -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
225 | |
---|
226 | Singular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
227 | Singularg_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
228 | |
---|
229 | Singular_LDFLAGS = -static ${AMLDFLAGS} |
---|
230 | Singularg_LDFLAGS = -static ${AMLDFLAGS} |
---|
231 | |
---|
232 | |
---|
233 | Singulard_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
234 | Singulardg_CFLAGS = -g ${PIPE} |
---|
235 | |
---|
236 | Singulard_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
237 | Singulardg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
238 | |
---|
239 | Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
240 | nodist_Singulard_SOURCES = libSingular.la |
---|
241 | |
---|
242 | Singulardg_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
243 | nodist_Singulardg_SOURCES = libSingular_g.la |
---|
244 | |
---|
245 | Singulard_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
246 | Singulardg_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
247 | |
---|
248 | Singulard_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
249 | Singulardg_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
250 | |
---|
251 | Singulard_LDFLAGS = ${AMLDFLAGS} |
---|
252 | Singulardg_LDFLAGS = ${AMLDFLAGS} |
---|
253 | |
---|
254 | |
---|
255 | #### ESingular |
---|
256 | |
---|
257 | ESingular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
258 | ESingular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
259 | ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DESINGULAR -DPROTO |
---|
260 | ESingular_LDFLAGS = -static ${AMLDFLAGS} |
---|
261 | ESingular_LDADD = -lreporter -lmisc -lomalloc -lfindexec |
---|
262 | |
---|
263 | ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc |
---|
264 | |
---|
265 | #### same for TSingular |
---|
266 | |
---|
267 | TSingular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
268 | TSingular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
269 | TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DTSINGULAR -DPROTO |
---|
270 | TSingular_LDFLAGS = -static ${AMLDFLAGS} |
---|
271 | TSingular_LDADD = -lreporter -lmisc -lomalloc -lfindexec |
---|
272 | |
---|
273 | TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc |
---|
274 | # utils.cc utils.h |
---|
275 | |
---|
276 | |
---|
277 | #### libparse |
---|
278 | libparse_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DSTANDALONE_PARSER |
---|
279 | libparse_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
280 | libparse_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
281 | |
---|
282 | libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
283 | # nodist_libparse_SOURCES = libSingular.la |
---|
284 | |
---|
285 | # # libSingular.la -lnumeric |
---|
286 | libparse_LDADD = -lomalloc |
---|
287 | libparse_LDFLAGS = -static ${AMLDFLAGS} |
---|
288 | # TODO for libparse: |
---|
289 | # multiple definition of `category_out': libparse.cc v.s. utils.cc |
---|
290 | # undefined reference to `iiInitSingularProcinfo(procinfo*, char const*, char const*, int, long, int)' |
---|
291 | |
---|
292 | ######################################################### |
---|
293 | # the Singular library (*.lib files) |
---|
294 | |
---|
295 | include ${srcdir}/singular-libs |
---|
296 | |
---|
297 | singularlibrarydir = ${datadir}/singular |
---|
298 | singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) |
---|
299 | nobase_dist_singularlibrary_DATA = LIB/all.lib LIB/tst.lib LIB/help.cnf ${singularlibrary} |
---|
300 | EXTRA_DIST = make_alllib.sh LIB/all.lib.tmpl singular-libs LIB/help.cnf |
---|
301 | |
---|
302 | # ${nobase_dist_singularlibrary_DATA} |
---|
303 | |
---|
304 | LIB/all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary} |
---|
305 | $(MKDIR_P) LIB |
---|
306 | ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS} |
---|
307 | |
---|
308 | # [ -d ${builddir}/LIB ] || ( $(MKDIR_P) LIB ; cp ${srcdir}/LIB/*.lib ${builddir}/LIB/ ) |
---|
309 | |
---|
310 | ########################### TEST ######################### |
---|
311 | |
---|
312 | TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/Singular/LIB:${abs_top_srcdir}/Singular/LIB:${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables' |
---|
313 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}' |
---|
314 | |
---|
315 | if WANT_DEBUG |
---|
316 | TESTS=test-s-g test-s-r test-d-g test-d-r |
---|
317 | else |
---|
318 | TESTS=test-s-r test-d-r |
---|
319 | endif |
---|
320 | check_PROGRAMS=$(TESTS) |
---|
321 | |
---|
322 | # Static versions |
---|
323 | |
---|
324 | test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
325 | test_s_g_CFLAGS = ${PIPE} |
---|
326 | |
---|
327 | test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
328 | test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
329 | |
---|
330 | test_s_r_SOURCES = test.cc |
---|
331 | test_s_g_SOURCES = test.cc |
---|
332 | |
---|
333 | test_s_r_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
334 | test_s_g_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
335 | |
---|
336 | test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
337 | test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
338 | |
---|
339 | test_s_r_LDFLAGS = -static ${AMLDFLAGS} |
---|
340 | test_s_g_LDFLAGS = -static ${AMLDFLAGS} |
---|
341 | |
---|
342 | |
---|
343 | # Dynamic versions |
---|
344 | |
---|
345 | test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
346 | test_d_g_CFLAGS = ${PIPE} |
---|
347 | |
---|
348 | test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
349 | test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
350 | |
---|
351 | test_d_r_SOURCES = test.cc |
---|
352 | test_d_g_SOURCES = test.cc |
---|
353 | |
---|
354 | test_d_r_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
355 | test_d_g_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
356 | |
---|
357 | test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
358 | test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
359 | |
---|
360 | test_d_r_LDFLAGS = ${AMLDFLAGS} |
---|
361 | test_d_g_LDFLAGS = ${AMLDFLAGS} |
---|
362 | |
---|
363 | ######################################################### |
---|
364 | |
---|
365 | # These files are built first |
---|
366 | BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc LIB/all.lib plural_cmd.inc \ |
---|
367 | gftables MOD |
---|
368 | |
---|
369 | CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS) |
---|
370 | |
---|
371 | feOpt.inc: feOptGen |
---|
372 | ${abs_builddir}/feOptGen |
---|
373 | |
---|
374 | feOptES.inc: feOptES |
---|
375 | ${abs_builddir}/feOptES |
---|
376 | |
---|
377 | feOptTS.inc: feOptTS |
---|
378 | ${abs_builddir}/feOptTS |
---|
379 | |
---|
380 | plural_cmd.inc iparith.inc: gentable1 |
---|
381 | ${abs_builddir}/gentable1 |
---|
382 | |
---|
383 | # # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html |
---|
384 | # plural_cmd.inc: iparith.inc |
---|
385 | |
---|
386 | |
---|
387 | gftables: ${abs_top_srcdir}/factory/gftables |
---|
388 | ln -snf ${abs_top_srcdir}/factory/gftables ${abs_builddir}/gftables |
---|
389 | |
---|
390 | MOD: ${abs_top_builddir}/libpolys/polys/.libs |
---|
391 | ln -snf ${abs_top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD |
---|