source: git/Singular/makefile @ 8b3ccf

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