1 | # ACLOCAL_AMFLAGS = -I m4 |
---|
2 | # PIPE = -pipe |
---|
3 | # ??? |
---|
4 | #LD_DYN_FLAGS = -ldl -rdynamic |
---|
5 | #SFLAGS = -fpic -DPIC |
---|
6 | #SLDFLAGS = -shared |
---|
7 | #LD_LIBC = -lc |
---|
8 | #STATIC_LDFLAGS = -static |
---|
9 | |
---|
10 | |
---|
11 | NODEBUGCFLAGS = -O3 -w -fomit-frame-pointer |
---|
12 | NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti |
---|
13 | NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG |
---|
14 | |
---|
15 | CXXTEMPLFLAGS = --no-exceptions ## -fno-implicit-templates |
---|
16 | |
---|
17 | 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) |
---|
18 | |
---|
19 | ########################### libSingular* ######################### |
---|
20 | |
---|
21 | lib_LIBRARIES = libSingular.a libSingular_g.a |
---|
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_Dynamic.cc\ |
---|
86 | slInit_Static.cc\ |
---|
87 | ssiLink.cc\ |
---|
88 | subexpr.cc\ |
---|
89 | utils.cc\ |
---|
90 | walk.cc\ |
---|
91 | walk_ip.cc\ |
---|
92 | wrapper.cc\ |
---|
93 | fereadl.c mmstd.c claptmpl.cc |
---|
94 | |
---|
95 | |
---|
96 | libSingular_a_SOURCES = $(SOURCES) |
---|
97 | libSingular_g_a_SOURCES = $(SOURCES) |
---|
98 | |
---|
99 | libSingular_a_includedir =${includedir}/Singular/ |
---|
100 | libSingular_g_a_includedir=${includedir}/Singular/ |
---|
101 | |
---|
102 | SingularHEADERS = Cache.h \ |
---|
103 | CacheImplementation.h \ |
---|
104 | Minor.h \ |
---|
105 | MinorInterface.h \ |
---|
106 | MinorProcessor.h \ |
---|
107 | attrib.h \ |
---|
108 | bbcone.h \ |
---|
109 | bigintm.h \ |
---|
110 | blackbox.h \ |
---|
111 | cntrlc.h \ |
---|
112 | dbm_sl.h \ |
---|
113 | distrib.h \ |
---|
114 | eigenval_ip.h \ |
---|
115 | feOpt.h \ |
---|
116 | fglm.h \ |
---|
117 | gms.h \ |
---|
118 | grammar.h \ |
---|
119 | interpolation.h \ |
---|
120 | ipconv.h \ |
---|
121 | ipid.h \ |
---|
122 | ipprint.h \ |
---|
123 | ipshell.h \ |
---|
124 | janet.h \ |
---|
125 | libparse.h \ |
---|
126 | libsingular.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 | mpsr.h \ |
---|
135 | mpsr_Get.h \ |
---|
136 | mpsr_Put.h \ |
---|
137 | mpsr_Timer.h \ |
---|
138 | mpsr_Tok.h \ |
---|
139 | mpsr_sl.h \ |
---|
140 | ndbm.h \ |
---|
141 | newstruct.h \ |
---|
142 | pcv.h \ |
---|
143 | pipeLink.h \ |
---|
144 | pyobject_setup.h \ |
---|
145 | run.h \ |
---|
146 | sdb.h \ |
---|
147 | silink.h \ |
---|
148 | sing_dbm.h \ |
---|
149 | sing_win.h \ |
---|
150 | slInit.h \ |
---|
151 | ssiLink.h \ |
---|
152 | static.h \ |
---|
153 | stype.h \ |
---|
154 | subexpr.h \ |
---|
155 | table.h \ |
---|
156 | tok.h \ |
---|
157 | utils.h \ |
---|
158 | walk.h \ |
---|
159 | feOpt.h feOpt.inc \ |
---|
160 | mpsr_Tok.inc iparith.inc feOptTS.inc feOptES.inc |
---|
161 | |
---|
162 | |
---|
163 | libSingular_a_include_HEADERS = $(SingularHEADERS) |
---|
164 | libSingular_g_a_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${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 |
---|
180 | |
---|
181 | EXTRA_PROGRAMS = gentable2 gentable1 feOpt feOptES feOptTS |
---|
182 | |
---|
183 | gentable2_SOURCES = gentable2.cc grammar.h tok.h table.h |
---|
184 | # gentable2_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
185 | gentable2_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
186 | gentable2_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
187 | gentable2_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
188 | |
---|
189 | |
---|
190 | gentable1_SOURCES = gentable.cc grammar.h tok.h table.h |
---|
191 | # gentable1_LDADD = -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
192 | gentable1_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
193 | gentable1_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
194 | gentable1_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
195 | |
---|
196 | # plural_cmd.inc: iparith.inc |
---|
197 | |
---|
198 | feOpt_SOURCES = feOptGen.cc feOptGen.h |
---|
199 | feOpt_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
200 | feOpt_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
201 | |
---|
202 | feOptES_SOURCES = feOptGen.cc feOptGen.h |
---|
203 | feOptES_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
204 | feOptES_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DESINGULAR |
---|
205 | |
---|
206 | feOptTS_SOURCES = feOptGen.cc feOptGen.h |
---|
207 | feOptTS_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
208 | feOptTS_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DTSINGULAR |
---|
209 | |
---|
210 | ########################### Singular* ######################### |
---|
211 | |
---|
212 | bin_PROGRAMS = Singular Singularg |
---|
213 | |
---|
214 | Singular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
215 | Singularg_CFLAGS = -g ${PIPE} |
---|
216 | |
---|
217 | Singular_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
218 | Singularg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
219 | |
---|
220 | Singular_SOURCES = tesths.cc |
---|
221 | Singularg_SOURCES = tesths.cc |
---|
222 | |
---|
223 | Singular_LDADD = libSingular.a -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
224 | 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} |
---|
225 | |
---|
226 | Singular_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
227 | # Singularg_CPPFLAGS = |
---|
228 | |
---|
229 | ########################### TEST ######################### |
---|
230 | |
---|
231 | TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/libpolys/tests' |
---|
232 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}' |
---|
233 | |
---|
234 | TESTS=testg testr |
---|
235 | check_PROGRAMS=$(TESTS) |
---|
236 | |
---|
237 | testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
238 | testg_CFLAGS = ${PIPE} |
---|
239 | |
---|
240 | testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
241 | testg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
242 | |
---|
243 | testr_SOURCES = test.cc |
---|
244 | testg_SOURCES = test.cc |
---|
245 | |
---|
246 | testr_LDADD = libSingular.a -lnumeric -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
247 | 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} |
---|
248 | |
---|
249 | testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
250 | # testg_CPPFLAGS = |
---|
251 | |
---|
252 | ######################################################### |
---|
253 | |
---|
254 | BUILT_SOURCES = feOpt.inc mpsr_Tok.inc iparith.inc feOptTS.inc feOptES.inc # files are built first |
---|
255 | # plural_cmd.inc |
---|
256 | |
---|
257 | CLEANFILES = $(TESTS) $(EXTRA_PROGRAMS) $(BUILT_SOURCES) |
---|
258 | |
---|
259 | feOpt.inc: feOpt |
---|
260 | ./feOpt |
---|
261 | |
---|
262 | feOptES.inc: feOptES |
---|
263 | ./feOptES |
---|
264 | |
---|
265 | feOptTS.inc: feOptTS |
---|
266 | ./feOptTS |
---|
267 | |
---|
268 | iparith.inc: gentable1 |
---|
269 | ./gentable1 |
---|
270 | |
---|
271 | mpsr_Tok.inc: gentable2 |
---|
272 | ./gentable2 |
---|
273 | |
---|