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_LIBRARIES = libSingular.a libSingular_g.a |
---|
21 | libSingulardir = $(libdir)/singular |
---|
22 | |
---|
23 | libSingular_a_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} |
---|
24 | libSingular_g_a_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} |
---|
25 | |
---|
26 | libSingular_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
27 | libSingular_g_a_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
28 | # -fdiagnostics-show-option |
---|
29 | |
---|
30 | libSingular_a_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DLIBSINGULAR |
---|
31 | libSingular_g_a_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_a_SOURCES = $(SOURCES) |
---|
97 | libSingular_g_a_SOURCES = $(SOURCES) |
---|
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 feOpt.inc \ |
---|
159 | mpsr_Tok.inc iparith.inc feOptTS.inc feOptES.inc |
---|
160 | |
---|
161 | libSingular_includedir = ${includedir}/singular/Singular/ |
---|
162 | nobase_libSingular_include_HEADERS = $(SingularHEADERS) |
---|
163 | |
---|
164 | if ENABLE_FACTORY |
---|
165 | USE_FACTORY = -L${top_builddir}/factory |
---|
166 | else |
---|
167 | USE_FACTORY = |
---|
168 | endif |
---|
169 | |
---|
170 | # noinst_HEADERS = feOpt.h |
---|
171 | ## TODO: install all the *.inc?! |
---|
172 | ## If not, move feOpt.h to SOURCES and remove *inc from HEADERS |
---|
173 | |
---|
174 | ######################################################### |
---|
175 | # handle all the generated *.inc |
---|
176 | |
---|
177 | 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 |
---|
178 | |
---|
179 | noinst_PROGRAMS = gentable2 gentable1 feOpt feOptES feOptTS |
---|
180 | |
---|
181 | gentable2_SOURCES = gentable2.cc grammar.h tok.h table.h |
---|
182 | # gentable2_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
183 | gentable2_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
184 | gentable2_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
185 | gentable2_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
186 | |
---|
187 | |
---|
188 | gentable1_SOURCES = gentable.cc grammar.h tok.h table.h |
---|
189 | # gentable1_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
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 |
---|
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 | Singular_SOURCES = tesths.cc |
---|
217 | Singularg_SOURCES = tesths.cc |
---|
218 | |
---|
219 | Singular_LDADD = libSingular.a -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
220 | 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} |
---|
221 | |
---|
222 | Singular_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
223 | # Singularg_CPPFLAGS = |
---|
224 | |
---|
225 | |
---|
226 | ######################################################### |
---|
227 | # the Singular library (*.lib files) |
---|
228 | |
---|
229 | include ${srcdir}/singular-libs |
---|
230 | |
---|
231 | singularlibrarydir = ${datadir}/singular |
---|
232 | singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) |
---|
233 | nobase_dist_singularlibrary_DATA = LIB/all.lib ${singularlibrary} |
---|
234 | EXTRA_DIST = make_alllib.sh LIB/all.lib.tmpl singular-libs |
---|
235 | |
---|
236 | # ${nobase_dist_singularlibrary_DATA} |
---|
237 | LIB/all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary} |
---|
238 | $(MKDIR_P) LIB |
---|
239 | ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS} |
---|
240 | |
---|
241 | ########################### TEST ######################### |
---|
242 | |
---|
243 | TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/libpolys/tests' |
---|
244 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}' |
---|
245 | |
---|
246 | TESTS=testg testr |
---|
247 | check_PROGRAMS=$(TESTS) |
---|
248 | |
---|
249 | testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
250 | testg_CFLAGS = ${PIPE} |
---|
251 | |
---|
252 | testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
253 | testg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
254 | |
---|
255 | testr_SOURCES = test.cc |
---|
256 | testg_SOURCES = test.cc |
---|
257 | |
---|
258 | testr_LDADD = libSingular.a -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
259 | 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} |
---|
260 | |
---|
261 | testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
262 | # testg_CPPFLAGS = |
---|
263 | |
---|
264 | ######################################################### |
---|
265 | |
---|
266 | # These files are built first |
---|
267 | BUILT_SOURCES = feOpt.inc mpsr_Tok.inc iparith.inc plural_cmd.inc feOptTS.inc feOptES.inc LIB/all.lib |
---|
268 | |
---|
269 | CLEANFILES = $(BUILT_SOURCES) |
---|
270 | |
---|
271 | feOpt.inc: feOpt |
---|
272 | ./feOpt |
---|
273 | |
---|
274 | feOptES.inc: feOptES |
---|
275 | ./feOptES |
---|
276 | |
---|
277 | feOptTS.inc: feOptTS |
---|
278 | ./feOptTS |
---|
279 | |
---|
280 | plural_cmd.inc iparith.inc: gentable1 |
---|
281 | ./gentable1 |
---|
282 | |
---|
283 | # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html |
---|
284 | plural_cmd.inc: iparith.inc |
---|
285 | |
---|
286 | mpsr_Tok.inc: gentable2 |
---|
287 | ./gentable2 |
---|
288 | |
---|