source: git/Singular/makefile @ b787fb6

fieker-DuValspielwiese
Last change on this file since b787fb6 was 92d684, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: python - related changes FIX: removed C++-related heades (unused anyway) FIX: blackbox
  • Property mode set to 100644
File size: 7.7 KB
Line 
1# Generated automatically from Makefile.in by configure.-
2#################################################################
3###
4### Makefile for Singular
5###
6#################################################################
7
8SHELL           = /bin/sh
9
10##
11## version
12##
13SINGULAR_VERSION        = spielwiese
14##
15## various paths
16##
17srcdir          = .
18includedir      = ../libpolys
19
20##
21## various programs
22##
23
24CC              = gcc
25LD              = ld
26CXX             = g++
27PERL            = perl
28INSTALL         = /usr/bin/install -c
29INSTALL_PROGRAM = ${INSTALL}
30INSTALL_DATA    = ${INSTALL} -m 644
31MKINSTALLDIRS   = ./mkinstalldirs
32LN_S            = ln -s
33
34##
35## compiler and linker options
36##
37LIBPOLYS_INCLUDES = -I.. -I../libpolys
38LIBPOLYS_CFLAGS = ${LIBPOLYS_INCLUDES}
39LIBPOLYS_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
40LIBPOLYS_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
43PYTHON_INCLUDES = `python-config --includes`
44PYTHON_CFLAGS = `python-config --cflags`
45PYTHON_LIBS   = `python-config --libs`
46
47PIPE            = -pipe
48CFLAGS          = -O3 -fomit-frame-pointer ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS}
49CXXFLAGS        = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS}
50CXXTEMPLFLAGS   = -fno-implicit-templates --no-exceptions
51CPPFLAGS        = -I${srcdir} -I..  -I${includedir} ${LIBPOLYS_INCLUDES}  ${PYTHON_INCLUDES}
52DEFS            = -DNDEBUG -DOM_NDEBUG
53LDFLAGS         = -L${srcdir}/lib
54LD_DYN_FLAGS    = -ldl -rdynamic
55SFLAGS          = -fpic -DPIC
56SLDFLAGS        = -shared
57
58LD_LIBC         = -lc
59STATIC_LDFLAGS  = -static
60LIBS            = -lm -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lm  -lnsl  -lomalloc_ndebug ${PYTHON_LIBS}
61MP_LIBS         = -lMPT -lMP -lnsl
62
63## End configuration dependend stuff
64#################################################################
65
66###
67### file sets
68###
69
70# normal C++ source files
71CXXSOURCES=\
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
138CXXSOURCES2     = SingularBuilder.cpp
139
140# special C++ source files (need extra compiling and/or linking), for which
141# dependencies should be generated
142ESOURCES=claptmpl.cc
143
144SOURCES=${CSOURCES} ${CXXSOURCES} \
145        kInline.h
146
147HEADERS=\
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
205OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o) #$(CXXSOURCES2:.cpp=.o)
206OBJS2 := $(ESOURCES:.cc=.o)
207OBJSG2 := $(ESOURCES:.cc=.og)
208OBJSP2 := $(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
218OBJG= $(CXXSOURCES:.cc=.og) $(CSOURCES:.c=.og)
219
220OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og) 
221OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) 
222
223all:    Singular
224
225Singular:  ${OBJS}
226
227##
228## clean targest
229##
230mostlyclean: 
231        -rm -f *.o *.og core *.op
232
233clean: mostlyclean
234        -rm -f *.bak *.d *.dd depend *.a *.so*
235
236distclean: clean
237        -rm -f *~ .\#*
238        -rm -f Makefile TAGS* tags config.status config.cache config.log
239
240srcclean:
241        @echo "This command is intended for maintainers to use;"
242        @echo "Rebuilding the deleted files requires flex"
243        @echo "bison, perl"
244
245maintainer-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.
251feOpt.h: feOpt.inc
252misc_ip.cc: feOpt.h
253
254##
255## miscellanous targets
256##
257
258TAGS:   ${SOURCES} ${ESOURCES} ${HEADERS}
259        etags ${SOURCES} ${ESOURCES} ${HEADERS}
260
261tags:   
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
273OBJG1 := $(CXXSOURCES:.cc=.og) 
274OBJG2 := $(CSOURCES:.c=.og) 
275
276##
277## compiler and linker options for debug version
278##
279
280CCG             = ${CC}
281CXXG            = ${CXX} -Wall
282CXXM            = gcc -MM -MG -DGENERATE_DEPEND
283CCM             = gcc -MM -MG -DGENERATE_DEPEND
284
285CFLAGSG         = -g ${PIPE} ${LIBPOLYS_CFLAGS}
286CXXFLAGSG       = -g ${PIPE} ${LIBPOLYS_CFLAGS}
287DEFSG           = 
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
299libkernel_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
309OBJP1 := $(CXXSOURCES:.cc=.op) 
310OBJP2 := $(CSOURCES:.c=.op) 
311
312OBJP=$(OBJP1) $(OBJP2) 
313
314OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) 
315
316##
317## compiler and linker options for profiling version
318##
319
320CCP             = ${CC}
321CXXP            = ${CXX}
322
323CFLAGSP         = -g -pg -O ${PIPE} ${LIBPOLYS_CFLAGS}
324CXXFLAGSP       = -g -pg -O ${PIPE} ${LIBPOLYS_CFLAGS}
325DEFSP           = 
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
340libkernel_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
356depend:   $(CXXSOURCES:.cc=.dd) $(ESOURCES:.cc=.dd) $(CSOURCES:.c=.d)
357        cat *.d *.dd >depend
358
359ifeq (depend,$(wildcard depend))
360include depend
361endif
362
363
364# My headers test
365# test: test.o
366
367test.o: test.cc feOpt.inc
368        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSG} -c $< -o $@
369
370feOpt.inc: feOpt.cc
371        $(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX ${CPPFLAGS} feOpt.cc -o feOpt
372        ./feOpt
373        /bin/rm -f feOpt feOpt.exe
374
375feOptES.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
380feOptTS.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
385iparith.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
Note: See TracBrowser for help on using the repository browser.