1 | lib_LIBRARIES = libSingular.a libSingular_g.a |
---|
2 | |
---|
3 | all: libSingular.a libSingular_g.a Singular Singularg |
---|
4 | |
---|
5 | # ACLOCAL_AMFLAGS = -I m4 |
---|
6 | |
---|
7 | # PIPE = -pipe |
---|
8 | # ??? |
---|
9 | #LD_DYN_FLAGS = -ldl -rdynamic |
---|
10 | #SFLAGS = -fpic -DPIC |
---|
11 | #SLDFLAGS = -shared |
---|
12 | #LD_LIBC = -lc |
---|
13 | #STATIC_LDFLAGS = -static |
---|
14 | |
---|
15 | |
---|
16 | NODEBUGCFLAGS = -O3 -w -fomit-frame-pointer |
---|
17 | NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti |
---|
18 | NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | CXXTEMPLFLAGS = --no-exceptions ## -fno-implicit-templates |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | 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) |
---|
28 | AM_CPPFLAGS = -DHAVE_CONFIG_H |
---|
29 | |
---|
30 | ########################### liSingular* ######################### |
---|
31 | |
---|
32 | libSingular_a_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} |
---|
33 | libSingular_g_a_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} |
---|
34 | ## -pedantic |
---|
35 | |
---|
36 | libSingular_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
37 | libSingular_g_a_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
38 | # -fdiagnostics-show-option |
---|
39 | |
---|
40 | libSingular_a_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DLIBSINGULAR |
---|
41 | libSingular_g_a_CPPFLAGS = -DLIBSINGULAR |
---|
42 | |
---|
43 | SOURCES = Minor.cc\ |
---|
44 | MinorInterface.cc\ |
---|
45 | MinorProcessor.cc\ |
---|
46 | attrib.cc\ |
---|
47 | bbcone.cc\ |
---|
48 | bbfan.cc\ |
---|
49 | bigintm.cc\ |
---|
50 | blackbox.cc\ |
---|
51 | calcSVD.cc\ |
---|
52 | cntrlc.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 | mpsr_Error.cc\ |
---|
78 | mpsr_Get.cc\ |
---|
79 | mpsr_GetMisc.cc\ |
---|
80 | mpsr_GetPoly.cc\ |
---|
81 | mpsr_Put.cc\ |
---|
82 | mpsr_PutPoly.cc\ |
---|
83 | mpsr_Timer.cc\ |
---|
84 | mpsr_Tok.cc\ |
---|
85 | mpsr_sl.cc\ |
---|
86 | ndbm.cc\ |
---|
87 | newstruct.cc\ |
---|
88 | pcv.cc\ |
---|
89 | pipeLink.cc\ |
---|
90 | scanner.cc\ |
---|
91 | sdb.cc\ |
---|
92 | silink.cc\ |
---|
93 | sing_dbm.cc\ |
---|
94 | sing_win.cc\ |
---|
95 | slInit_Dynamic.cc\ |
---|
96 | slInit_Static.cc\ |
---|
97 | ssiLink.cc\ |
---|
98 | subexpr.cc\ |
---|
99 | utils.cc\ |
---|
100 | walk.cc\ |
---|
101 | walk_ip.cc\ |
---|
102 | wrapper.cc\ |
---|
103 | fereadl.c mmstd.c claptmpl.cc feOpt.h |
---|
104 | |
---|
105 | # tesths.cc |
---|
106 | |
---|
107 | |
---|
108 | libSingular_a_SOURCES = $(SOURCES) |
---|
109 | libSingular_g_a_SOURCES = $(SOURCES) |
---|
110 | |
---|
111 | libSingular_a_includedir =${includedir}/Singular/ |
---|
112 | libSingular_g_a_includedir=${includedir}/Singular/ |
---|
113 | |
---|
114 | SingularHEADERS = Cache.h \ |
---|
115 | CacheImplementation.h \ |
---|
116 | Minor.h \ |
---|
117 | MinorInterface.h \ |
---|
118 | MinorProcessor.h \ |
---|
119 | attrib.h \ |
---|
120 | bbcone.h \ |
---|
121 | bigintm.h \ |
---|
122 | blackbox.h \ |
---|
123 | cntrlc.h \ |
---|
124 | dbm_sl.h \ |
---|
125 | distrib.h \ |
---|
126 | eigenval_ip.h \ |
---|
127 | feOpt.h \ |
---|
128 | fglm.h \ |
---|
129 | gms.h \ |
---|
130 | grammar.h \ |
---|
131 | interpolation.h \ |
---|
132 | ipconv.h \ |
---|
133 | ipid.h \ |
---|
134 | ipprint.h \ |
---|
135 | ipshell.h \ |
---|
136 | janet.h \ |
---|
137 | libparse.h \ |
---|
138 | libsingular.h \ |
---|
139 | lists.h \ |
---|
140 | locals.h \ |
---|
141 | maps_ip.h \ |
---|
142 | minpoly.h \ |
---|
143 | misc_ip.h \ |
---|
144 | mmalloc.h \ |
---|
145 | omSingularConfig.h \ |
---|
146 | mpsr.h \ |
---|
147 | mpsr_Get.h \ |
---|
148 | mpsr_Put.h \ |
---|
149 | mpsr_Timer.h \ |
---|
150 | mpsr_Tok.h \ |
---|
151 | mpsr_sl.h \ |
---|
152 | ndbm.h \ |
---|
153 | newstruct.h \ |
---|
154 | pcv.h \ |
---|
155 | pipeLink.h \ |
---|
156 | pyobject_setup.h \ |
---|
157 | run.h \ |
---|
158 | sdb.h \ |
---|
159 | silink.h \ |
---|
160 | sing_dbm.h \ |
---|
161 | sing_win.h \ |
---|
162 | slInit.h \ |
---|
163 | ssiLink.h \ |
---|
164 | static.h \ |
---|
165 | stype.h \ |
---|
166 | subexpr.h \ |
---|
167 | table.h \ |
---|
168 | tok.h \ |
---|
169 | utils.h \ |
---|
170 | walk.h \ |
---|
171 | feOpt.inc mpsr_Tok.inc iparith.inc feOptTS.inc feOptES.inc |
---|
172 | |
---|
173 | |
---|
174 | libSingular_a_include_HEADERS = $(SingularHEADERS) |
---|
175 | libSingular_g_a_include_HEADERS = $(SingularHEADERS) |
---|
176 | |
---|
177 | if ENABLE_FACTORY |
---|
178 | USE_FACTORY = -L${top_builddir}/factory |
---|
179 | else |
---|
180 | USE_FACTORY = |
---|
181 | endif |
---|
182 | |
---|
183 | # noinst_HEADERS = feOpt.h |
---|
184 | ## TODO: install all the *.inc?! |
---|
185 | |
---|
186 | #EXTRA_libSingular_a_SOURCES = feOpt.h |
---|
187 | #EXTRA_libSingular_g_a_SOURCES = feOpt.h |
---|
188 | |
---|
189 | BUILT_SOURCES=feOpt.inc mpsr_Tok.inc iparith.inc feOptTS.inc feOptES.inc |
---|
190 | # plural_cmd.inc |
---|
191 | |
---|
192 | ######################################################### |
---|
193 | # handle all the generated *.inc |
---|
194 | |
---|
195 | AM_LDFLAGS = -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel -L${top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/resources -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${top_builddir}/omalloc |
---|
196 | |
---|
197 | EXTRA_PROGRAMS=feOpt gentable2 gentable1 feOptES feOptTS |
---|
198 | |
---|
199 | #mpsr_Tok.cc: mpsr_Tok.inc |
---|
200 | #iparith.cc: iparith.inc |
---|
201 | #cntrlc.cc: feOpt.inc |
---|
202 | #misc_ip.cc: feOpt.inc |
---|
203 | ## test.cc: iparith.inc |
---|
204 | |
---|
205 | |
---|
206 | gentable2_SOURCES = gentable2.cc grammar.h tok.h table.h |
---|
207 | # gentable2_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
208 | gentable2_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
209 | gentable2_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
210 | gentable2_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
211 | |
---|
212 | |
---|
213 | gentable1_SOURCES = gentable.cc grammar.h tok.h table.h |
---|
214 | # gentable1_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
215 | gentable1_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
216 | gentable1_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
217 | gentable1_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
218 | |
---|
219 | # plural_cmd.inc: iparith.inc |
---|
220 | |
---|
221 | feOpt_SOURCES = feOpt.cc |
---|
222 | # feOpt_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
223 | feOpt_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
224 | feOpt_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
225 | feOpt_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DGENERATE_OPTION_INDEX |
---|
226 | |
---|
227 | |
---|
228 | feOptES_SOURCES = feOpt.cc |
---|
229 | # feOptES_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
230 | feOptES_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
231 | feOptES_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
232 | feOptES_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DGENERATE_OPTION_INDEX -DESINGULAR |
---|
233 | |
---|
234 | |
---|
235 | feOptTS_SOURCES = feOpt.cc |
---|
236 | # feOptES_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
237 | feOptTS_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
238 | feOptTS_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
239 | feOptTS_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DGENERATE_OPTION_INDEX -DTSINGULAR |
---|
240 | |
---|
241 | |
---|
242 | ########################### Singular* ######################### |
---|
243 | |
---|
244 | bin_PROGRAMS = Singular Singularg |
---|
245 | |
---|
246 | ## Singular: libSingular.a |
---|
247 | ## Singularg: libSingular_g.a |
---|
248 | |
---|
249 | Singular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
250 | Singularg_CFLAGS = ${PIPE} |
---|
251 | |
---|
252 | Singular_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
253 | Singularg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
254 | |
---|
255 | Singular_SOURCES = tesths.cc |
---|
256 | Singularg_SOURCES = tesths.cc |
---|
257 | |
---|
258 | Singular_LDADD = libSingular.a -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
259 | Singularg_LDADD = libSingular_g.a -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
260 | |
---|
261 | Singular_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
262 | # Singularg_CPPFLAGS = |
---|
263 | |
---|
264 | ########################### TEST ######################### |
---|
265 | |
---|
266 | TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/libpolys/tests' |
---|
267 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}' |
---|
268 | |
---|
269 | TESTS=testg testr |
---|
270 | check_PROGRAMS=$(TESTS) |
---|
271 | |
---|
272 | testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
273 | testg_CFLAGS = ${PIPE} |
---|
274 | |
---|
275 | testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
276 | testg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
277 | |
---|
278 | testr_SOURCES = test.cc |
---|
279 | testg_SOURCES = test.cc |
---|
280 | |
---|
281 | ## testr: libSingular.a |
---|
282 | ## testg: libSingular_g.a |
---|
283 | |
---|
284 | testr_LDADD = libSingular.a -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
285 | testg_LDADD = libSingular_g.a -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
286 | |
---|
287 | testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
288 | # testg_CPPFLAGS = |
---|
289 | |
---|
290 | ######################################################### |
---|
291 | |
---|
292 | CLEANFILES = $(TESTS) $(EXTRA_PROGRAMS) |
---|
293 | |
---|
294 | |
---|
295 | ######################################################### |
---|
296 | |
---|
297 | |
---|
298 | feOpt.inc: feOpt |
---|
299 | ./feOpt |
---|
300 | |
---|
301 | feOptES.inc: feOptES |
---|
302 | ./feOptES |
---|
303 | |
---|
304 | feOptTS.inc: feOptTS |
---|
305 | ./feOptTS |
---|
306 | |
---|
307 | iparith.inc: gentable1 |
---|
308 | ./gentable1 |
---|
309 | |
---|
310 | mpsr_Tok.inc: gentable2 |
---|
311 | ./gentable2 |
---|
312 | |
---|