source: git/Singular/makefile @ e8c8d5

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