1 | # Generated automatically from Makefile.in by configure.- |
---|
2 | ################################################################# |
---|
3 | ### |
---|
4 | ### Makefile for Singular |
---|
5 | ### |
---|
6 | ################################################################# |
---|
7 | |
---|
8 | SHELL = /bin/sh |
---|
9 | |
---|
10 | ## |
---|
11 | ## version |
---|
12 | ## |
---|
13 | SINGULAR_VERSION = spielwiese |
---|
14 | ## |
---|
15 | ## various paths |
---|
16 | ## |
---|
17 | srcdir = . |
---|
18 | includedir = ../libpolys |
---|
19 | |
---|
20 | ## |
---|
21 | ## various programs |
---|
22 | ## |
---|
23 | |
---|
24 | CC = gcc |
---|
25 | LD = ld |
---|
26 | CXX = g++ |
---|
27 | PERL = perl |
---|
28 | INSTALL = /usr/bin/install -c |
---|
29 | INSTALL_PROGRAM = ${INSTALL} |
---|
30 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
31 | MKINSTALLDIRS = ./mkinstalldirs |
---|
32 | LN_S = ln -s |
---|
33 | |
---|
34 | ## |
---|
35 | ## compiler and linker options |
---|
36 | ## |
---|
37 | LIBPOLYS_INCLUDES = -I.. -I../libpolys |
---|
38 | LIBPOLYS_CFLAGS = ${LIBPOLYS_INCLUDES} |
---|
39 | LIBPOLYS_LIBS = -L../factory -L../omalloc -L../libpolys/misc -L../libpolys/reporter -L../libpolys/resources -L../libpolys/coeffs -L../libpolys/polys -lpolys -lcoeffs -lresources -lreporter -lmisc -lfactory -lomalloc |
---|
40 | LIBPOLYS_LIBSG = -L../factory -L../omalloc -L../libpolys/misc -L../libpolys/reporter -L../libpolys/resources -L../libpolys/coeffs -L../libpolys/polys -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g -lfactory -lomalloc_g |
---|
41 | |
---|
42 | |
---|
43 | PYTHON_INCLUDES = `python-config --includes` |
---|
44 | PYTHON_CFLAGS = `python-config --cflags` |
---|
45 | PYTHON_LIBS = `python-config --libs` |
---|
46 | |
---|
47 | PIPE = -pipe |
---|
48 | CFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS} |
---|
49 | CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS} |
---|
50 | CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions |
---|
51 | CPPFLAGS = -I${srcdir} -I.. -I${includedir} ${LIBPOLYS_INCLUDES} ${PYTHON_INCLUDES} |
---|
52 | DEFS = -DNDEBUG -DOM_NDEBUG |
---|
53 | LDFLAGS = -L${srcdir}/lib |
---|
54 | LD_DYN_FLAGS = -ldl -rdynamic |
---|
55 | SFLAGS = -fpic -DPIC |
---|
56 | SLDFLAGS = -shared |
---|
57 | |
---|
58 | LD_LIBC = -lc |
---|
59 | STATIC_LDFLAGS = -static |
---|
60 | LIBS = -lm -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lm -lnsl -lomalloc_ndebug ${PYTHON_LIBS} |
---|
61 | MP_LIBS = -lMPT -lMP -lnsl |
---|
62 | |
---|
63 | ## End configuration dependend stuff |
---|
64 | ################################################################# |
---|
65 | |
---|
66 | ### |
---|
67 | ### file sets |
---|
68 | ### |
---|
69 | |
---|
70 | # normal C++ source files |
---|
71 | CXXSOURCES=\ |
---|
72 | Minor.cc\ |
---|
73 | MinorInterface.cc\ |
---|
74 | MinorProcessor.cc\ |
---|
75 | attrib.cc\ |
---|
76 | bbcone.cc\ |
---|
77 | bbfan.cc\ |
---|
78 | bigintm.cc\ |
---|
79 | blackbox.cc\ |
---|
80 | calcSVD.cc\ |
---|
81 | cntrlc.cc\ |
---|
82 | denom_list.cc\ |
---|
83 | eigenval_ip.cc\ |
---|
84 | extra.cc\ |
---|
85 | feOpt.cc\ |
---|
86 | fehelp.cc\ |
---|
87 | fevoices.cc \ |
---|
88 | fglm.cc\ |
---|
89 | gentable.cc\ |
---|
90 | gentable2.cc\ |
---|
91 | gms.cc\ |
---|
92 | grammar.cc\ |
---|
93 | interpolation.cc\ |
---|
94 | iparith.cc\ |
---|
95 | ipassign.cc\ |
---|
96 | ipconv.cc\ |
---|
97 | ipid.cc\ |
---|
98 | iplib.cc\ |
---|
99 | ipprint.cc\ |
---|
100 | ipshell.cc\ |
---|
101 | janet.cc\ |
---|
102 | libparse.cc\ |
---|
103 | linearAlgebra_ip.cc\ |
---|
104 | lists.cc\ |
---|
105 | maps_ip.cc\ |
---|
106 | minpoly.cc\ |
---|
107 | misc_ip.cc\ |
---|
108 | mpsr_Error.cc\ |
---|
109 | mpsr_Get.cc\ |
---|
110 | mpsr_GetMisc.cc\ |
---|
111 | mpsr_GetPoly.cc\ |
---|
112 | mpsr_Put.cc\ |
---|
113 | mpsr_PutPoly.cc\ |
---|
114 | mpsr_Timer.cc\ |
---|
115 | mpsr_Tok.cc\ |
---|
116 | mpsr_sl.cc\ |
---|
117 | ndbm.cc\ |
---|
118 | newstruct.cc\ |
---|
119 | pcv.cc\ |
---|
120 | pipeLink.cc\ |
---|
121 | pyobject.cc\ |
---|
122 | pyobject_setup.cc\ |
---|
123 | scanner.cc\ |
---|
124 | sdb.cc\ |
---|
125 | silink.cc\ |
---|
126 | sing_dbm.cc\ |
---|
127 | sing_win.cc\ |
---|
128 | slInit_Dynamic.cc\ |
---|
129 | slInit_Static.cc\ |
---|
130 | ssiLink.cc\ |
---|
131 | subexpr.cc\ |
---|
132 | tesths.cc\ |
---|
133 | utils.cc\ |
---|
134 | walk.cc\ |
---|
135 | walk_ip.cc\ |
---|
136 | wrapper.cc |
---|
137 | |
---|
138 | CXXSOURCES2 = SingularBuilder.cpp |
---|
139 | |
---|
140 | # special C++ source files (need extra compiling and/or linking), for which |
---|
141 | # dependencies should be generated |
---|
142 | ESOURCES=claptmpl.cc |
---|
143 | |
---|
144 | SOURCES=${CSOURCES} ${CXXSOURCES} \ |
---|
145 | kInline.h |
---|
146 | |
---|
147 | HEADERS=\ |
---|
148 | Cache.h \ |
---|
149 | CacheImplementation.h \ |
---|
150 | Minor.h \ |
---|
151 | MinorInterface.h \ |
---|
152 | MinorProcessor.h \ |
---|
153 | attrib.h \ |
---|
154 | bbcone.h \ |
---|
155 | bigintm.h \ |
---|
156 | blackbox.h \ |
---|
157 | cntrlc.h \ |
---|
158 | dbm_sl.h \ |
---|
159 | distrib.h \ |
---|
160 | eigenval_ip.h \ |
---|
161 | feOpt.h \ |
---|
162 | gms.h \ |
---|
163 | grammar.h \ |
---|
164 | interpolation.h \ |
---|
165 | ipconv.h \ |
---|
166 | ipid.h \ |
---|
167 | ipprint.h \ |
---|
168 | ipshell.h \ |
---|
169 | janet.h \ |
---|
170 | libparse.h \ |
---|
171 | libsingular.h \ |
---|
172 | lists.h \ |
---|
173 | locals.h \ |
---|
174 | maps_ip.h \ |
---|
175 | minpoly.h \ |
---|
176 | misc_ip.h \ |
---|
177 | mpsr.h \ |
---|
178 | mpsr_Get.h \ |
---|
179 | mpsr_Put.h \ |
---|
180 | mpsr_Timer.h \ |
---|
181 | mpsr_Tok.h \ |
---|
182 | mpsr_sl.h \ |
---|
183 | ndbm.h \ |
---|
184 | newstruct.h \ |
---|
185 | omSingularConfig.h \ |
---|
186 | pcv.h \ |
---|
187 | pipeLink.h \ |
---|
188 | pyobject_setup.h \ |
---|
189 | run.h \ |
---|
190 | sdb.h \ |
---|
191 | silink.h \ |
---|
192 | sing_dbm.h \ |
---|
193 | sing_win.h \ |
---|
194 | slInit.h \ |
---|
195 | ssiLink.h \ |
---|
196 | static.h \ |
---|
197 | stype.h \ |
---|
198 | subexpr.h \ |
---|
199 | table.h \ |
---|
200 | tok.h \ |
---|
201 | utils.h \ |
---|
202 | walk.h |
---|
203 | |
---|
204 | |
---|
205 | OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o) #$(CXXSOURCES2:.cpp=.o) |
---|
206 | OBJS2 := $(ESOURCES:.cc=.o) |
---|
207 | OBJSG2 := $(ESOURCES:.cc=.og) |
---|
208 | OBJSP2 := $(ESOURCES:.cc=.op) |
---|
209 | |
---|
210 | ## |
---|
211 | ## Build Targets |
---|
212 | ## |
---|
213 | .cc.o: |
---|
214 | ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $< |
---|
215 | .c.o: |
---|
216 | ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< |
---|
217 | |
---|
218 | OBJG= $(CXXSOURCES:.cc=.og) $(CSOURCES:.c=.og) |
---|
219 | |
---|
220 | OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og) |
---|
221 | OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) |
---|
222 | |
---|
223 | all: Singular |
---|
224 | |
---|
225 | Singular: ${OBJS} |
---|
226 | |
---|
227 | ## |
---|
228 | ## clean targest |
---|
229 | ## |
---|
230 | mostlyclean: |
---|
231 | -rm -f *.o *.og core *.op |
---|
232 | |
---|
233 | clean: mostlyclean |
---|
234 | -rm -f *.bak *.d *.dd depend *.a *.so* |
---|
235 | |
---|
236 | distclean: clean |
---|
237 | -rm -f *~ .\#* |
---|
238 | -rm -f Makefile TAGS* tags config.status config.cache config.log |
---|
239 | |
---|
240 | srcclean: |
---|
241 | @echo "This command is intended for maintainers to use;" |
---|
242 | @echo "Rebuilding the deleted files requires flex" |
---|
243 | @echo "bison, perl" |
---|
244 | |
---|
245 | maintainer-clean: distclean srcclean |
---|
246 | @echo "This command is intended for maintainers to use;" |
---|
247 | @echo "Rebuilding the deleted files requires flex" |
---|
248 | @echo "bison, perl and autoconf" |
---|
249 | |
---|
250 | #dep. |
---|
251 | feOpt.h: feOpt.inc |
---|
252 | misc_ip.cc: feOpt.h |
---|
253 | |
---|
254 | ## |
---|
255 | ## miscellanous targets |
---|
256 | ## |
---|
257 | |
---|
258 | TAGS: ${SOURCES} ${ESOURCES} ${HEADERS} |
---|
259 | etags ${SOURCES} ${ESOURCES} ${HEADERS} |
---|
260 | |
---|
261 | tags: |
---|
262 | ctags *.c *.h *.cc *.inc |
---|
263 | |
---|
264 | ## |
---|
265 | ## Below here is stuff for developpers |
---|
266 | ################################################################# |
---|
267 | |
---|
268 | |
---|
269 | ## |
---|
270 | ## .og files for having -O and -g object versions available at the same time |
---|
271 | ## |
---|
272 | |
---|
273 | OBJG1 := $(CXXSOURCES:.cc=.og) |
---|
274 | OBJG2 := $(CSOURCES:.c=.og) |
---|
275 | |
---|
276 | ## |
---|
277 | ## compiler and linker options for debug version |
---|
278 | ## |
---|
279 | |
---|
280 | CCG = ${CC} |
---|
281 | CXXG = ${CXX} -Wall |
---|
282 | CXXM = gcc -MM -MG -DGENERATE_DEPEND |
---|
283 | CCM = gcc -MM -MG -DGENERATE_DEPEND |
---|
284 | |
---|
285 | CFLAGSG = -g ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
286 | CXXFLAGSG = -g ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
287 | DEFSG = |
---|
288 | |
---|
289 | ## |
---|
290 | ## Debug Targets |
---|
291 | ## |
---|
292 | |
---|
293 | %.og: %.cc |
---|
294 | $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSG} -c $< -o $@ |
---|
295 | |
---|
296 | $(OBJG2) : %.og: %.c |
---|
297 | $(CCG) ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@ |
---|
298 | |
---|
299 | libkernel_g.a: ${OBJG} ${OBJSG2} |
---|
300 | -rm -f libkernel_g.a |
---|
301 | ar cr $@ ${OBJG} |
---|
302 | |
---|
303 | |
---|
304 | |
---|
305 | ## |
---|
306 | ## .op files for profiling |
---|
307 | ## |
---|
308 | |
---|
309 | OBJP1 := $(CXXSOURCES:.cc=.op) |
---|
310 | OBJP2 := $(CSOURCES:.c=.op) |
---|
311 | |
---|
312 | OBJP=$(OBJP1) $(OBJP2) |
---|
313 | |
---|
314 | OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) |
---|
315 | |
---|
316 | ## |
---|
317 | ## compiler and linker options for profiling version |
---|
318 | ## |
---|
319 | |
---|
320 | CCP = ${CC} |
---|
321 | CXXP = ${CXX} |
---|
322 | |
---|
323 | CFLAGSP = -g -pg -O ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
324 | CXXFLAGSP = -g -pg -O ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
325 | DEFSP = |
---|
326 | |
---|
327 | |
---|
328 | |
---|
329 | |
---|
330 | ## |
---|
331 | ## Profiling Targets |
---|
332 | ## |
---|
333 | |
---|
334 | %.op: %.cc |
---|
335 | $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSP} -c $< -o $@ |
---|
336 | |
---|
337 | $(OBJP2) : %.op: %.c |
---|
338 | $(CCP) ${CFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@ |
---|
339 | |
---|
340 | libkernel_p.a: ${OBJP} ${OBJSP2} |
---|
341 | -rm -f libkernel_p.a |
---|
342 | ar cr $@ ${OBJP} |
---|
343 | |
---|
344 | ## |
---|
345 | ## dependencies |
---|
346 | ## |
---|
347 | |
---|
348 | %.dd: %.cc |
---|
349 | echo $(@:.dd=.og) $(@:.dd=.op) " " \\ > $@ |
---|
350 | $(CXXM) -DGENTABLE ${CPPFLAGS} ${DEFSG} $< >> $@ |
---|
351 | |
---|
352 | %.d: %.c |
---|
353 | echo $(@:.d=.og) $(@:.d=.op) " " \\ > $@ |
---|
354 | $(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@ |
---|
355 | |
---|
356 | depend: $(CXXSOURCES:.cc=.dd) $(ESOURCES:.cc=.dd) $(CSOURCES:.c=.d) |
---|
357 | cat *.d *.dd >depend |
---|
358 | |
---|
359 | ifeq (depend,$(wildcard depend)) |
---|
360 | include depend |
---|
361 | endif |
---|
362 | |
---|
363 | |
---|
364 | # My headers test |
---|
365 | # test: test.o |
---|
366 | |
---|
367 | test.o: test.cc feOpt.inc |
---|
368 | $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSG} -c $< -o $@ |
---|
369 | |
---|
370 | feOpt.inc: feOpt.cc |
---|
371 | $(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX ${CPPFLAGS} feOpt.cc -o feOpt |
---|
372 | ./feOpt |
---|
373 | /bin/rm -f feOpt feOpt.exe |
---|
374 | |
---|
375 | feOptES.inc: feOpt.cc |
---|
376 | $(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX ${CPPFLAGS} -DESINGULAR -I../kernel feOpt.cc -o feOptES |
---|
377 | ./feOptES |
---|
378 | rm -f feOptES feOptES.exe |
---|
379 | |
---|
380 | feOptTS.inc: feOpt.cc |
---|
381 | $(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX ${CPPFLAGS} -DTSINGULAR -I../kernel feOpt.cc -o feOptTS |
---|
382 | ./feOptTS |
---|
383 | rm -f feOptTS feOptTS.exe |
---|
384 | |
---|
385 | iparith.inc: gentable.cc grammar.h tok.h table.h |
---|
386 | ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} gentable.cc \ |
---|
387 | -o gentable1 |
---|
388 | ./gentable1 |
---|
389 | /bin/rm -f gentable1 gentable1.exe |
---|