source: git/Singular/Makefile.in @ f345ed

spielwiese
Last change on this file since f345ed was f345ed, checked in by Hans Schönemann <hannes@…>, 24 years ago
* hannes: C/C++ fix git-svn-id: file:///usr/local/Singular/svn/trunk@3876 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 16.2 KB
Line 
1#################################################################
2###
3### Makefile for Singular
4###
5#################################################################
6
7SHELL           = /bin/sh
8
9##
10## version
11##
12SINGULAR_VERSION        = @SINGULAR_VERSION@
13SINGULAR                = @SINGULAR@
14SINGUNAME               = @SINGUNAME@
15
16##
17## various paths
18##
19srcdir          = @srcdir@
20prefix          = @prefix@
21exec_prefix     = @exec_prefix@
22libdir          = @libdir@
23# program executable goes here
24bindir          = @bindir@
25# includes are taken from here
26includedir      = @includedir@
27slibdir         = ${prefix}/LIB
28
29
30##
31## various programs
32##
33@SET_MAKE@
34CC              = @CC@
35CXX             = @CXX@
36LEX             = @LEX@
37PERL5           = @PERL5@
38BISON           = bison
39INSTALL         = ./install-sh -c
40INSTALL_PROGRAM = ${INSTALL}
41INSTALL_DATA    = ${INSTALL} -m 644
42MKINSTALLDIRS   = ./mkinstalldirs
43LN_S            = @LN_S@
44
45##
46## compiler and linker options
47##
48PIPE            = @PIPE@
49CFLAGS          = @CFLAGS@ ${PIPE}
50CXXFLAGS        = @CXXFLAGS@ ${PIPE}
51CXXTEMPLFLAGS   = @CXXTEMPLFLAGS@
52CPPFLAGS        = -I${srcdir} @CPPFLAGS@
53DEFS            = -DNDEBUG -D@SING_UNAME@ @DEFS@
54LDFLAGS         = @LDFLAGS@
55LD_DYN_FLAGS    = @LD_DYN_FLAGS@
56LD_LIBC         = @LD_LIBC@
57STATIC_LDFLAGS  = @STATIC_LDFLAGS@
58LIBS            = -lm @NEED_LIBS@
59
60##
61## End configuration dependend stuff
62#################################################################
63
64###
65### file sets
66###
67
68# normal C++ source files
69CXXSOURCES=grammar.cc scanner.cc algmap.cc attrib.cc binom.cc clapconv.cc \
70    clapmem.cc clapsing.cc cntrlc.cc\
71    extra.cc febase.cc feread.cc fehelp.cc feResource.cc feOpt.cc\
72    ffields.cc hdegree.cc hilb.cc hutil.cc \
73    ideals.cc intvec.cc \
74    ipassign.cc ipconv.cc ipid.cc iplib.cc \
75    ipprint.cc ipshell.cc khstd.cc kstdfac.cc \
76    kstd1.cc kstd2.cc kutil.cc lists.cc \
77    longalg.cc longrat.cc longrat0.cc \
78    maps.cc matpol.cc misc.cc sdb.cc gnumpfl.cc gnumpc.cc \
79    mminit.cc modulop.cc mpr_complex.cc sparsmat.cc \
80    fglm.cc fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \
81    numbers.cc polys.cc polys0.cc polys1.cc polys-impl.cc \
82    ring.cc shortfl.cc silink.cc sing_mp.cc\
83    sing_dld.cc sing_dbm.cc kspoly.cc \
84    subexpr.cc syz.cc syz0.cc syz1.cc syz2.cc\
85    timer.cc weight.cc \
86    mpsr_Put.cc mpsr_PutPoly.cc mpsr_GetPoly.cc \
87    mpsr_Get.cc mpsr_GetMisc.cc mpsr_Error.cc \
88    GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \
89    ndbm.cc  libparse.cc mod_raw.cc\
90    pcv.cc kbuckets.cc prProcs.cc \
91    mpr_inout.cc mpr_base.cc mpr_numeric.cc \
92    prCopy.cc
93
94
95# normal C source files
96CSOURCES=mmalloc.c mmheap.c mmpage.c mmcheck.c  mmisc.c mmtables.c \
97    mmbt.c weight0.c find_exec.c fegetopt.c fereadl.c page.c
98
99# special source files (need extra compiling and/or linking)
100ESOURCES=iparith.cc gmalloc.c tesths.cc mpsr_Tok.cc claptmpl.cc
101
102SOURCES=${CSOURCES} ${CXXSOURCES} ${ESOURCES} \
103        grammar.y scanner.l libparse.l syz2.cc
104
105# ASO_SOURCES
106ASO_SOURCES = structs.aso.cc ipid.aso.cc mmprivate.aso.cc silink.aso.cc \
107              matpol.aso.cc longrat.aso.cc kbuckets.aso.cc mpsr_Get.aso.cc \
108              mpr_base.aso.cc attrib.aso.cc lists.aso.cc kutil.aso.cc \
109              syz.aso.cc subexpr.aso.cc
110
111HEADERS=algmap.h hutil.h lists.h stairc.h attrib.h ideals.h \
112        longalg.h mpsr_Tok.h structs.h binom.h intvec.h longrat.h \
113        numbers.h stype.h clapconv.h ipconv.h maps.h page.h \
114        subexpr.h clapsing.h ipid.h matpol.h polys.h syz.h \
115        cntrlc.h ipprint.h ring.h timer.h sdb.h \
116        febase.h ipshell.h shortfl.h tok.h mpr_complex.h mpr_global.h \
117        mmemory.h mmprivate.h mmpage.h page.h \
118        ffields.h khstd.h silink.h sparsmat.h gnumpfl.h gnumpc.h \
119        fglm.h kstd1.h modulop.h sing_dbm.h weight.h \
120        fglmgauss.h fglmvec.h mpsr.h sing_mp.h \
121        kstdfac.h mpsr_Get.h mmbt.h \
122        kutil.h mpsr_Put.h sing_dld.h\
123        ndbm.h polys-impl.h polys-comp.h libparse.h \
124        GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h multicnt.h \
125        pcv.h mod_raw.h kbuckets.h prProcs.h \
126        mpr_global.h mpr_inout.h mpr_base.h mpr_numeric.h \
127        feOpt.h fegetopt.h distrib.h walk.h \
128        prCopy.h
129
130INCS=febase.inc polys.inc iparith.inc mpsr_Tok.inc feOpt.inc
131
132DISTFILES=${SOURCES} ${HEADERS} Makefile.in configure.in configure \
133        mod2.h.in grammar.h testgh install-sh mkinstalldirs \
134        ${INCS} $(ASO_SOURCES) check_aso.pl aso.h
135
136OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o)
137
138ASO_OBJS := $(ASO_SOURCES:.aso.cc=.aso)
139
140# Singular libraries which go into distribution
141SLIBS = algebra.lib        all.lib            classify.lib       deform.lib  \
142        elim.lib           factor.lib         finvar.lib         general.lib \
143        graphics.lib       hnoether.lib       homolog.lib        inout.lib   \
144        invar.lib          jordan.lib         latex.lib          linalg.lib  \
145        matrix.lib         mondromy.lib       normal.lib                     \
146        poly.lib           presolve.lib       primdec.lib                    \
147        primitiv.lib       random.lib         ring.lib           sing.lib    \
148        solve.lib          solver.lib         spcurve.lib        standard.lib\
149        surf.lib           template.lib
150
151##
152## Build Targets
153##
154.l.cc:
155        @if test "x${LEX}" = x; then \
156                echo Error: no lex given, could not rebuilt scanner.cc;\
157                exit 1; \
158        fi
159        ${LEX} -s -I -t $< > scanner.cc
160.y.cc:
161        @if test "x${BISON}" = x; then \
162                echo Error: no bison given, could not rebuilt grammar.cc;\
163                exit 1; \
164        fi
165        ${BISON} -d -t -o grammar.cc $<
166        chmod +x testgh
167        ./testgh
168
169.cc.o: 
170        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
171.c.o:
172        ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
173
174%.aso.o: %.aso.cc mmtables.inc
175        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} $< -o $@
176.PRECIOUS: %.aso.o
177
178%.aso: %.aso.o
179        ./$< > $@
180
181all:    Singular
182
183Singular: mod2.h Makefile version.h scanner.cc gmalloc.o \
184          ${ASO_OBJS} ${OBJS} \
185          iparith.o tesths.cc libparse.cc claptmpl.o mpsr_Tok.o
186        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} \
187          -o Singular \
188          tesths.cc iparith.o mpsr_Tok.o claptmpl.o\
189          ${OBJS} ${LDFLAGS} ${LIBS} ${LD_DYN_FLAGS} \
190          gmalloc.o ${LD_LIBC}
191
192Singular-static: mod2.h Makefile version.h scanner.cc  gmalloc.o \
193                ${ASO_OBJS}  ${OBJS} \
194                iparith.o mpsr_Tok.o tesths.cc claptmpl.o
195        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} \
196          -o Singular-static \
197          tesths.cc iparith.o mpsr_Tok.o claptmpl.o\
198          ${OBJS} ${STATIC_LDFLAGS} ${LDFLAGS} ${LIBS} ${LD_DYN_FLAGS} \
199          gmalloc.o ${LD_LIBC}
200
201iparith.o mpsr_Tok.o : iparith.inc mpsr_Tok.inc
202
203claptmpl.o: claptmpl.cc mod2.h
204        ${CXX} ${CXXFLAGS}  ${CPPFLAGS} ${DEFS} -c $<   
205
206iparith.inc mpsr_Tok.inc: gmalloc.o claptmpl.o iparith.cc \
207                          ipconv.cc tok.h mpsr_Tok.cc grammar.h mod2.h
208        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} -DGENTABLE \
209             -o gentable claptmpl.o iparith.cc tesths.cc mpsr_Tok.cc \
210             ${OBJS} ${LDFLAGS} ${LIBS} gmalloc.o ${LD_LIBC}
211        ./gentable
212        /bin/rm -f gentable gentable.exe
213
214
215mmtables.inc: mmtables.c mmprivate.h mmemory.h mod2.h
216        ${CC} ${CFLAGS}  ${CPPFLAGS}\
217               -DGENERATE_INDEX_TABLE  -DHAVE_ASO=0 -DHAVE_INDEX_TABLE mmtables.c -o mmtables
218        ./mmtables > mmtables.inc
219        rm -f mmtables mmtables.exe
220
221mmtables.o mmtables.d: mmtables.inc
222
223version.h: ${SOURCES} ${HEADERS} Makefile.in mod2.h.in \
224           configure.in
225        echo unsigned long feVersionId =  `date '+%Y%m%d%H'`\; >version.h
226
227libparse: libparse_main.o utils.o fegetopt.o
228        ${CXX}  -DHAVE_ASO=0  -o libparse libparse_main.o utils.o fegetopt.o
229
230libparse_main.o: libparse.cc
231        ${CXX} -c -o libparse_main.o libparse.cc  -DHAVE_ASO=0 -DSTANDALONE_PARSER
232
233libparse.cc: libparse.l
234        @if test "x${LEX}" = x; then \
235                echo Error: no lex given, could not rebuilt libparse.cc;\
236                exit 1; \
237        fi
238        ${LEX} -I -Pyylp -olibparse.cc libparse.l
239
240ESingular: fegetopt.o feResource.cc mod2.h feOpt.cc version.h emacs.cc \
241           feOptES.inc
242        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${DEFS} -o ESingular emacs.cc fegetopt.o ${LDFLAGS} ${LIBS}
243
244feOpt.h: feOpt.inc feOptES.inc
245
246feOpt.inc: feOpt.cc mod2.h
247        $(CXX) -DGENERATE_OPTION_INDEX -DHAVE_ASO=0 feOpt.cc -o feOpt
248        ./feOpt
249        /bin/rm -f feOpt feOpt.exe
250
251feOptES.inc: feOpt.cc
252        $(CXX) -DGENERATE_OPTION_INDEX  -DHAVE_ASO=0 -DESINGULAR feOpt.cc
253        ./a.out
254        rm a.out
255
256prCopy.cc : prCopy.inc
257
258prCopy.inc : prCopyMacros.h prCopyTemplate.cc prCopy.pl
259        $(PERL5) prCopy.pl > prCopy.inc
260
261src: scanner.cc grammar.h grammar.cc libparse.cc
262
263mod2.h: stamp-h
264
265stamp-h : config.status mod2.h.in
266        CONFIG_FILES= CONFIG_HEADERS="mod2.h" ./config.status
267
268Makefile: Makefile.in config.status
269        CONFIG_FILES="Makefile" CONFIG_HEADERS= ./config.status
270
271config.status: configure
272        ./config.status --recheck
273
274configure: configure.in
275        @echo "WARNING: You need to rerun autoconf. I am proceeding, for now."
276        @touch configure
277#       autoconf
278
279##
280## install targets
281##
282install: all installbin installslib
283
284installbin: Singular libparse ESingular
285        ${MKINSTALLDIRS} ${bindir}
286        ${INSTALL_PROGRAM} Singular ${bindir}/Singular-${SINGULAR_VERSION}
287        ${INSTALL_PROGRAM} libparse ${bindir}/libparse
288        ${INSTALL_PROGRAM} ESingular ${bindir}/ESingular
289        chmod a+x ${bindir}/Singular-${SINGULAR_VERSION}
290        rm -f ${bindir}/Singular
291        cd ${bindir}; ${LN_S} Singular-${SINGULAR_VERSION} Singular;\
292        if test ! -x ${SINGULAR}; then \
293                ${LN_S} Singular-${SINGULAR_VERSION} ${SINGULAR};\
294        fi
295
296installslib: LIB
297        test -r ${slibdir} || ${LN_S} `pwd`/LIB ${slibdir}
298
299
300uninstall: uninstallbin
301
302uninstallbin:
303        rm -f ${bindir}/Singular rm -f ${bindir}/Singular-${SINGULAR_VERSION}
304        -rmdir ${bindir}
305
306##
307## clean targest
308##
309mostlyclean:
310        -rm -f Singular Singularg Singularp Singularb libparse feOpt*.inc
311        -rm -f *.o *.og core *.op *.ob *.ot Singulart
312
313clean: mostlyclean
314         -rm -f *.aso *.bak *.d *.dd depend
315
316distclean: clean
317        -rm -f iparith.inc mpsr_Tok.inc stamp.h
318        -rm -f Singular* *.gprof *.bprof *~ .\#* version.h
319        -rm -f mod2.h Makefile TAGS* tags config.status config.cache config.log
320
321srcclean:
322        @echo "This command is intended for maintainers to use;"
323        @echo "Rebuilding the deleted files requires flex"
324        @echo "bison, perl"
325        -rm -f scanner.cc grammar.h grammar.cc libparse.cc
326
327maintainer-clean: distclean srcclean
328        @echo "This command is intended for maintainers to use;"
329        @echo "Rebuilding the deleted files requires flex"
330        @echo "bison, perl and autoconf"
331        -rm configure
332
333##
334## miscellanous targets
335##
336
337Singular-bindist: ${OBJS} Makefile
338        echo "#define MAKE_DISTRIBUTION " > distrib.h
339        ${MAKE} Singular ESingular
340        strip Singular ESingular
341        ${INSTALL} -s Singular Singular-bindist
342        ${INSTALL} -s ESingular ESingular-bindist
343        echo "#undef MAKE_DISTRIBUTION " > distrib.h
344
345Singular-static-bindist: ${OBJS} Makefile
346        echo "#define MAKE_DISTRIBUTION " > distrib.h
347        ${MAKE} Singular-static ESingular
348        strip Singular-static ESingular
349        mv Singular-static Singular-static-bindist
350        ${INSTALL} -s ESingular ESingular-bindist
351        echo "#undef MAKE_DISTRIBUTION " > distrib.h
352
353tar:
354        tar cf Singular-${SINGULAR_VERSION}-src.tar ${DISTFILES}
355        gzip -f Singular-${SINGULAR_VERSION}-src.tar
356
357
358TAGS:   ${SOURCES} ${HEADERS} ${INCS}
359        etags ${SOURCES} ${HEADERS}
360
361tags:   
362        ctags *.y *.l *.c *.h *.cc *.inc
363
364echoLIBS:
365        @echo ${SLIBS}
366
367##
368## Below here is stuff for developpers
369#################################################################
370
371##
372## compiler and linker options for debug version
373##
374
375CCG             = gcc
376CXXG            = gcc
377CXXM            = gcc -MM -MG -DGENERATE_DEPEND
378CCM             = gcc -MM -MG -DGENERATE_DEPEND
379
380CFLAGSG         = -g -Wall -Wno-unused ${PIPE}
381CXXFLAGSG       = -g -Wall -Wno-unused ${PIPE}
382CXXTEMPLFLAGSG  = -fno-implicit-templates
383DEFSG           = -D@SING_UNAME@ @DEFS@
384
385##
386## .og files for having -O and -g object versions available at the same time
387##
388
389OBJG1 := $(CXXSOURCES:.cc=.og)
390OBJG2 := $(CSOURCES:.c=.og)
391
392
393OBJG=$(OBJG1) $(OBJG2)
394
395##
396## Debug Targets
397##
398
399claptmpl.og: claptmpl.cc mod2.h
400        $(CXXG)  ${CXXFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
401
402$(OBJG1) : %.og: %.cc
403        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
404
405$(OBJG2) gmalloc.og: %.og: %.c
406        $(CCG)  ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
407
408Singularg: scanner.cc gmalloc.og \
409           $(ASO_OBJS) $(OBJG)  \
410           iparith.og mpsr_Tok.og claptmpl.og tesths.cc version.h
411        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -o Singularg \
412        tesths.cc iparith.og mpsr_Tok.og claptmpl.og $(OBJG) ${LDFLAGS} ${LIBS} \
413        ${LD_DYN_FLAGS} gmalloc.og
414
415iparith.og: iparith.inc iparith.cc
416        $(CXXG)  ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c iparith.cc -o iparith.og
417
418mpsr_Tok.og: iparith.inc mpsr_Tok.cc
419        $(CXXG) ${CXXFLAGSG} ${CPPFLAGS} ${CXXTEMPLFLAGSG} ${DEFSG} -c mpsr_Tok.cc -o mpsr_Tok.og
420
421installg: Singularg
422        ${MKINSTALLDIRS} ${bindir}
423        ${INSTALL_PROGRAM} Singularg ${bindir} 
424
425##
426## compiler and linker options for profile version
427##
428
429CCP             = gcc
430CXXP            = gcc
431
432CFLAGSP         = -pg -O3 ${PIPE}
433CXXFLAGSP       = -pg -O3 ${PIPE}
434CXXTEMPLFLAGSP  = -fno-implicit-templates
435DEFSP           = -DNDEBUG -DDO_PROFILE -D@SING_UNAME@ @DEFS@
436LDFLAGSP        = -static @LDFLAGS@
437
438CFLAGSB         = -g -O3 ${PIPE}
439CXXFLAGSB       = -g -O3 ${PIPE}
440CXXTEMPLFLAGSB  = -fno-implicit-templates
441DEFSB           = -D@SING_UNAME@ -DNDEBUG @DEFS@
442LDFLAGSB        = -static @LDFLAGS@
443
444# bprof object  file to link with
445BPROFOBJ        = /usr/local/lib/bmon.o
446
447DEFST           = -DNDEBUG -D@SING_UNAME@ -DMTRACK @DEFS@
448LDFLAGST        = @LDFLAGS@
449CFLAGST         = -g  -w ${PIPE}
450CXXFLAGST       = -g  -w ${PIPE}
451
452##
453## op and ob files for gprof and bprof, ot for mtrack
454##
455
456OBJP1 := $(CXXSOURCES:.cc=.op)
457OBJP2 := $(CSOURCES:.c=.op)
458OBJP=$(OBJP1) $(OBJP2)
459
460OBJB1 := $(CXXSOURCES:.cc=.ob)
461OBJB2 := $(CSOURCES:.c=.ob)
462OBJB=$(OBJB1) $(OBJB2)
463
464OBJT1 := $(CXXSOURCES:.cc=.ot)
465OBJT2 := $(CSOURCES:.c=.ot)
466OBJT=$(OBJT1) $(OBJT2)
467
468##
469## profile targets
470##
471
472## for gprof
473claptmpl.op: claptmpl.cc mod2.h
474        $(CXXP)  ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
475
476$(OBJP1): %.op: %.cc
477        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
478
479$(OBJP2) gmalloc.op: %.op: %.c
480        $(CCP)  ${CFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
481
482Singularp: scanner.cc  gmalloc.op \
483           $(ASO_OBJS) $(OBJP) \
484           iparith.op mpsr_Tok.op claptmpl.op tesths.cc version.h
485        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -o Singularp \
486        tesths.cc iparith.op mpsr_Tok.op claptmpl.op $(OBJP) ${LDFLAGSP} ${LIBS} \
487        ${LD_DYN_FLAGS} gmalloc.op
488
489iparith.op: iparith.inc iparith.cc
490        $(CXXP)  ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -c iparith.cc -o iparith.op
491
492mpsr_Tok.op: iparith.inc mpsr_Tok.cc
493        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -c mpsr_Tok.cc -o mpsr_Tok.op
494
495
496## for bprof
497claptmpl.ob: claptmpl.cc mod2.h
498        $(CXXP)  ${CXXFLAGSP} ${CPPFLAGS} ${DEFSB} -c $< -o $@
499
500$(OBJB1): %.ob: %.cc
501        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSB} -c $< -o $@
502
503$(OBJB2) gmalloc.ob: %.ob: %.c
504        $(CCP)  ${CFLAGSP} ${CPPFLAGS} ${DEFSB} -c $< -o $@
505
506Singularb: scanner.cc  gmalloc.ob $(OBJB) iparith.ob mpsr_Tok.ob claptmpl.ob tesths.cc version.h
507        $(CXXP) ${CXXFLAGSP} ${CPPFLAGS} ${DEFSB} -o Singularb \
508        tesths.cc iparith.ob mpsr_Tok.ob claptmpl.ob $(OBJB) $(BPROFOBJ) \
509        ${LDFLAGSP} ${LIBS} ${LD_DYN_FLAGS} gmalloc.ob
510
511iparith.ob: iparith.inc iparith.cc
512        $(CXXP)  ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSB} -c iparith.cc -o iparith.ob
513
514mpsr_Tok.ob: iparith.inc mpsr_Tok.cc
515        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSB} -c mpsr_Tok.cc -o mpsr_Tok.ob
516
517#
518# for mtrack
519#
520claptmpl.ot: claptmpl.cc mod2.h
521        $(CXXP)  ${CXXFLAGST} ${CPPFLAGS} ${DEFST} -c $< -o $@
522
523$(OBJT1): %.ot: %.cc
524        $(CXXP) ${CXXFLAGST} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFST} -c $< -o $@
525
526$(OBJT2) gmalloc.ot: %.ot: %.c
527        $(CCP)  ${CFLAGST} ${CPPFLAGS} ${DEFST} -c $< -o $@
528
529Singulart: scanner.cc  gmalloc.ot $(OBJT) iparith.ot mpsr_Tok.ot claptmpl.ot tesths.cc version.h
530        $(CXXP) ${CXXFLAGST} ${CPPFLAGS} ${DEFST} -o Singulart \
531        tesths.cc iparith.ot mpsr_Tok.ot claptmpl.ot $(OBJT) ${LDFLAGST} ${LIBS} \
532        ${LD_DYN_FLAGS} gmalloc.ot
533
534iparith.ot: iparith.inc iparith.cc
535        $(CXXP)  ${CXXFLAGST} ${CXXTEMPLFLAGSB} ${CPPFLAGS} ${DEFST} -c iparith.cc -o iparith.ot
536
537mpsr_Tok.ot: iparith.inc mpsr_Tok.cc
538        $(CXXP) ${CXXFLAGST} ${CXXTEMPLFLAGSB} ${CPPFLAGS} ${DEFST} -c mpsr_Tok.cc -o mpsr_Tok.ot
539
540
541##
542## check_aso
543##
544check_aso:
545        ${PERL5} check_aso.pl $(SOURCES)
546##
547## dependencies
548##
549
550%.aso.dd: %.aso.cc mod2.h aso.h
551        $(CXXM) ${CPPFLAGS} ${DEFS} $< >> $@
552
553%.dd: %.cc mod2.h
554        echo $(@:.dd=.og) $(@:.dd=.op) $(@:.dd=.ob) $(@:.dd=.ot)" " \\ > $@
555        $(CXXM) -DGENTABLE ${CPPFLAGS} ${DEFSG} $< >> $@
556
557%.d: %.c mod2.h
558        echo $(@:.d=.og) $(@:.d=.op) $(@:.d=.ob) $(@:.d=.ot)" " \\ > $@
559        $(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@
560
561depend:   $(ASO_SOURCES:.cc=.dd) $(CXXSOURCES:.cc=.dd) $(CSOURCES:.c=.d) mod2.h
562        cat *.d *.dd >depend
563
564ifeq (depend,$(wildcard depend))
565include depend
566endif
567
568
569
Note: See TracBrowser for help on using the repository browser.