source: git/Singular/Makefile.in @ 460c1e1

spielwiese
Last change on this file since 460c1e1 was 460c1e1, checked in by Olaf Bachmann <obachman@…>, 24 years ago
* increased version 1o 1-3-4 * parsing of help strings by doc2tex * much better texi2html * new directory layout for install in source tree git-svn-id: file:///usr/local/Singular/svn/trunk@3292 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 15.8 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@
56STATIC_LDFLAGS  = @STATIC_LDFLAGS@
57LIBS            = -lm @NEED_LIBS@
58
59##
60## End configuration dependend stuff
61#################################################################
62
63###
64### file sets
65###
66
67CXXSOURCES=grammar.cc scanner.cc algmap.cc attrib.cc binom.cc clapconv.cc \
68    clapmem.cc clapsing.cc claptmpl.cc cntrlc.cc \
69    extra.cc febase.cc feread.cc \
70    ffields.cc hdegree.cc hilb.cc hutil.cc \
71    ideals.cc intvec.cc iparith.cc \
72    ipassign.cc ipconv.cc ipid.cc iplib.cc \
73    ipprint.cc ipshell.cc khstd.cc kstdfac.cc \
74    comm.cc kstd1.cc kstd2.cc kutil.cc lists.cc \
75    longalg.cc longrat.cc longrat0.cc \
76    maps.cc matpol.cc misc.cc sdb.cc gnumpfl.cc gnumpc.cc \
77    mminit.cc modulop.cc mpr_complex.cc sparsmat.cc \
78    fglm.cc fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \
79    numbers.cc polys.cc polys0.cc polys1.cc polys-impl.cc \
80    ring.cc shortfl.cc silink.cc sing_mp.cc\
81    sing_dld.cc sing_dbm.cc spolys.cc spolys0.cc \
82    subexpr.cc syz.cc syz0.cc syz1.cc \
83    tesths.cc timer.cc weight.cc \
84    mpsr_Put.cc mpsr_PutPoly.cc mpsr_Tok.cc mpsr_GetPoly.cc \
85    mpsr_Get.cc mpsr_GetMisc.cc mpsr_Error.cc \
86    ndbm.cc spSpolyLoop.cc libparse.cc mod_raw.cc\
87        pcv.cc kbuckets.cc kbPolyProcs.cc \
88    mpr_inout.cc mpr_base.cc mpr_numeric.cc
89
90CSOURCES=gmalloc.c mmalloc.c mmheap.c mmpage.c mmcheck.c  mmisc.c mmtables.c \
91    mmbt.c weight0.c find_exec.c getopt.c fereadl.c page.c
92
93SOURCES=${CSOURCES} ${CXXSOURCES} grammar.y scanner.l libparse.l spSpolyLoop.pl generate.pl
94
95HEADERS=algmap.h hutil.h lists.h stairc.h attrib.h ideals.h \
96        longalg.h mpsr_Tok.h structs.h binom.h intvec.h longrat.h \
97        numbers.h stype.h clapconv.h ipconv.h maps.h page.h \
98        subexpr.h clapsing.h ipid.h matpol.h polys.h syz.h \
99        cntrlc.h ipprint.h ring.h timer.h sdb.h \
100        febase.h ipshell.h shortfl.h tok.h mpr_complex.h mpr_global.h \
101        mmemory.h mmprivate.h mmheap.h mmpage.h page.h \
102        ffields.h khstd.h silink.h sparsmat.h gnumpfl.h gnumpc.h \
103        fglm.h comm.h kstd1.h modulop.h sing_dbm.h weight.h \
104        fglmgauss.h fglmvec.h kstd2.h mpsr.h sing_mp.h \
105        kstdfac.h mpsr_Get.h spolys.h \
106        kutil.h mpsr_Put.h spolys0.h sing_dld.h\
107        ndbm.h spSpolyLoop.h polys-impl.h polys-comp.h getopt.h libparse.h \
108        pcv.h mod_raw.h kbuckets.h kbPolyProcs.h \
109        mpr_global.h mpr_inout.h mpr_base.h mpr_numeric.h       
110
111INCS=febase.inc polys.inc iparith.inc mpsr_Tok.inc spSpolyLoop.inc
112
113TESTS=${testdir}/comparecheck ${testdir}/fac_test.in ${testdir}/fac_test.out\
114        ${testdir}/general_test.in ${testdir}/general_test.out \
115        ${testdir}/mpcheck ${testdir}/mpcheck.data \
116        ${testdir}/dbm_test.in ${testdir}/dbm_test.out
117
118DISTFILES=${SOURCES} ${HEADERS} Makefile.in configure.in configure \
119        mod2.h.in si_paths.h.in grammar.h testgh install-sh mkinstalldirs \
120        ${INCS}
121
122OBJS=grammar.o scanner.o matpol.o binom.o mpr_complex.o gnumpfl.o gnumpc.o \
123     febase.o feread.o timer.o intvec.o attrib.o lists.o\
124     longrat.o longrat0.o misc.o ring.o numbers.o maps.o\
125     hilb.o comm.o kstd1.o kstd2.o kutil.o khstd.o kstdfac.o modulop.o spolys.o\
126     ideals.o subexpr.o hdegree.o hutil.o ffields.o shortfl.o \
127     longalg.o spolys0.o syz.o syz0.o syz1.o weight.o weight0.o \
128     ipid.o ipshell.o iplib.o ipassign.o ipconv.o ipprint.o\
129     polys.o polys0.o polys1.o polys-impl.o extra.o sparsmat.o\
130     mminit.o mmtables.o mmalloc.o mmheap.o mmpage.o page.o \
131     mmisc.o mmcheck.o mmbt.o sing_dld.o sing_dbm.o silink.o \
132     sing_mp.o fglm.o fglmzero.o fglmvec.o fglmhom.o fglmgauss.o cntrlc.o \
133     algmap.o clapconv.o  clapmem.o clapsing.o claptmpl.o\
134     mpsr_Error.o mpsr_Put.o mpsr_PutPoly.o mpsr_GetPoly.o \
135     mpsr_Get.o mpsr_GetMisc.o ndbm.o spSpolyLoop.o libparse.o \
136     find_exec.o getopt.o fereadl.o  mod_raw.o sdb.o \
137        pcv.o kbuckets.o kbPolyProcs.o \
138     mpr_inout.o mpr_base.o mpr_numeric.o
139
140##
141## Build Targets
142##
143.l.cc:
144        @if test "x${LEX}" = x; then \
145                echo Error: no lex given, could not rebuilt scanner.cc;\
146                exit 1; \
147        fi
148        ${LEX} -s -I -t $< > scanner.cc
149.y.cc:
150        @if test "x${BISON}" = x; then \
151                echo Error: no bison given, could not rebuilt grammar.cc;\
152                exit 1; \
153        fi
154        ${BISON} -d -t -o grammar.cc $<
155        chmod +x testgh
156        ./testgh
157
158.cc.o: 
159        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
160.c.o:
161        ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
162
163all:    Singular
164
165Singular: mod2.h si_paths.h Makefile version.h scanner.cc gmalloc.o \
166          ${OBJS} iparith.o mpsr_Tok.o tesths.cc libparse.cc
167        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} -o Singular \
168        tesths.cc iparith.o mpsr_Tok.o ${OBJS} ${LDFLAGS} ${LIBS} \
169        ${LD_DYN_FLAGS} gmalloc.o
170
171Singular-static: mod2.h si_paths.h Makefile version.h scanner.cc  gmalloc.o \
172                ${OBJS} iparith.o mpsr_Tok.o tesths.cc
173        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} \
174        -o Singular-static \
175        tesths.cc iparith.o mpsr_Tok.o \
176        ${OBJS} ${STATIC_LDFLAGS} ${LDFLAGS} ${LIBS} ${LD_DYN_FLAGS} gmalloc.o
177
178iparith.o mpsr_Tok.o : iparith.inc mpsr_Tok.inc
179
180claptmpl.o: claptmpl.cc mod2.h
181        ${CXX} ${CXXFLAGS}  ${CPPFLAGS} ${DEFS} -c $<   
182
183iparith.inc mpsr_Tok.inc: gmalloc.o iparith.cc ipconv.cc tok.h mpsr_Tok.cc grammar.h mod2.h
184        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} -DGENTABLE \
185             -o gentable iparith.cc tesths.cc mpsr_Tok.cc \
186             ${OBJS} ${LDFLAGS} ${LIBS} gmalloc.o
187        ./gentable
188        /bin/rm -f gentable gentable.exe
189
190
191mmtables.inc: mmtables.c mmprivate.h mod2.h
192        ${CXX} ${CXXFLAGS}  ${CPPFLAGS}\
193               -DGENERATE_INDEX_TABLE -DHAVE_INDEX_TABLE mmtables.c -o mmtables
194        ./mmtables > mmtables.inc
195        rm -f mmtables mmtables.exe
196
197mmtables.o mmtables.d: mmtables.inc
198
199version.h: ${SOURCES} ${HEADERS} Makefile.in mod2.h.in si_paths.h.in \
200           configure.in
201        echo "#define SINGULAR_VERSION_ID " `date '+%y%m%d%H'` >version.h
202
203kbPolyProcs.cc kbPolyProcs.dd : kbPolyProcs.pin
204
205kbPolyProcs.pin : generate.pl
206        @if test "x${PERL5}" = x; then \
207                echo Error: no perl5 given. Can not rebuild $@;\
208                exit 1;\
209        fi
210        ${PERL5} generate.pl kb_n_Mult_p kb_p_Mult_m kb_p_Add_q kb_p_Minus_m_Mult_q > $@
211
212spSpolyLoop.cc spSpolyLoop.dd : spSpolyLoop.inc
213
214spSpolyLoop.inc: spSpolyLoop.pl
215        @if test "x${PERL5}" = x; then \
216                echo Error: no perl5 given. Can not rebuild spSpolyLoop.inc;\
217                exit 1;\
218        fi
219        ${PERL5} spSpolyLoop.pl > spSpolyLoop.inc
220
221libparse: libparse_main.o utils.o getopt.o
222        ${CXX} -o libparse libparse_main.o utils.o getopt.o
223
224libparse_main.o: libparse.cc
225        ${CXX} -c -o libparse_main.o libparse.cc -DSTANDALONE_PARSER
226
227libparse.cc: libparse.l
228        @if test "x${LEX}" = x; then \
229                echo Error: no lex given, could not rebuilt libparse.cc;\
230                exit 1; \
231        fi
232        ${LEX} -I -Pyylp -olibparse.cc libparse.l
233
234src: scanner.cc grammar.h grammar.cc libparse.cc spSpolyLoop.inc
235
236mod2.h si_paths.h: stamp-h
237
238stamp-h : config.status mod2.h.in  si_paths.h.in
239        CONFIG_FILES= CONFIG_HEADERS="mod2.h si_paths.h" ./config.status
240
241Makefile: Makefile.in config.status
242        CONFIG_FILES="Makefile" CONFIG_HEADERS= ./config.status
243
244config.status: configure
245        ./config.status --recheck
246
247configure: configure.in
248        @echo "WARNING: You need to rerun autoconf. I am proceeding, for now."
249        @touch configure
250#       autoconf
251
252##
253## install targets
254##
255install: all installbin installslib
256
257installbin: Singular libparse
258        ${MKINSTALLDIRS} ${bindir}
259        ${INSTALL_PROGRAM} Singular ${bindir}/Singular-${SINGULAR_VERSION}
260        ${INSTALL_PROGRAM} libparse ${bindir}/libparse
261        chmod a+x ${bindir}/Singular-${SINGULAR_VERSION}
262        rm -f ${bindir}/Singular
263        cd ${bindir}; ${LN_S} Singular-${SINGULAR_VERSION} Singular;\
264        if test ! -x ${SINGULAR}; then \
265                ${LN_S} Singular-${SINGULAR_VERSION} ${SINGULAR};\
266        fi
267
268installslib: LIB
269        test -L ${slibdir} || (rm -rf ${slibdir}; ln -s  `pwd`/LIB ${slibdir})
270
271
272uninstall: uninstallbin
273
274uninstallbin:
275        rm -f ${bindir}/Singular rm -f ${bindir}/Singular-${SINGULAR_VERSION}
276        -rmdir ${bindir}
277
278##
279## clean targest
280##
281mostlyclean: clean
282
283clean:
284        -rm -f Singular Singularg Singularp Singularb libparse \
285            *.o *.og core *.op *.ob
286
287distclean: clean
288        -rm -f depend iparith.inc mpsr_Tok.inc stamp.h *.d *.dd
289        -rm -f Singular* *.gprof *.bprof *~ .\#* version.h
290        -rm -f mod2.h Makefile TAGS* config.status config.cache config.log
291
292srcclean:
293        @echo "This command is intended for maintainers to use;"
294        @echo "Rebuilding the deleted files requires flex"
295        @echo "bison, perl"
296        -rm -f scanner.cc grammar.h grammar.cc libparse.cc spSpolyLoop.inc
297
298maintainer-clean: distclean srcclean
299        @echo "This command is intended for maintainers to use;"
300        @echo "Rebuilding the deleted files requires flex"
301        @echo "bison, perl and autoconf"
302        -rm configure
303
304##
305## miscellanous targets
306##
307
308Singular-bindist: mod2.h Makefile version.h scanner.cc ${OBJS} iparith.o \
309                  mpsr_Tok.o tesths.cc libparse.cc si_paths.h depend
310        touch si_paths.h
311        ${MAKE} CXXFLAGS="${CXXFLAGS} -DMAKE_DISTRIBUTION" Singular
312        ${INSTALL} -s Singular Singular-bindist
313
314Singular-static-bindist: mod2.h Makefile version.h scanner.cc si_paths.h \
315                         ${OBJS} iparith.o mpsr_Tok.o tesths.cc \
316                         libparse.cc depend
317        touch si_paths.h
318        ${MAKE} CXXFLAGS="${CXXFLAGS} -DMAKE_DISTRIBUTION" Singular-static
319        strip Singular-static
320        mv Singular-static Singular-static-bindist
321
322tar:
323        tar cf Singular-${SINGULAR_VERSION}-src.tar ${DISTFILES}
324        gzip -f Singular-${SINGULAR_VERSION}-src.tar
325
326
327TAGS:
328        etags ${SOURCES} ${HEADERS}
329
330##
331## Below here is stuff for developpers
332#################################################################
333
334##
335## compiler and linker options for debug version
336##
337
338CCG             = gcc
339CXXG            = gcc
340CXXM            = gcc -MM
341CCM             = gcc -MM
342
343CFLAGSG         = -g -Wall -Wno-unused ${PIPE}
344CXXFLAGSG       = -g -Wall -Wno-unused ${PIPE}
345CXXTEMPLFLAGSG  = -fno-implicit-templates
346DEFSG           = -D@SING_UNAME@ @DEFS@
347
348##
349## .og files for having -O and -g object versions available at the same time
350##
351
352OBJG1=  grammar.og scanner.og matpol.og binom.og gnumpfl.og mpr_complex.og \
353     febase.og feread.og timer.og intvec.og attrib.og lists.og gnumpc.og\
354     longrat.og longrat0.og misc.og ring.og numbers.og maps.og\
355     hilb.og comm.og kstd1.og kstd2.og kutil.og khstd.og kstdfac.og modulop.og \
356     spolys.og ideals.og subexpr.og hdegree.og hutil.og ffields.og shortfl.og \
357     longalg.og spolys0.og syz.og syz0.og syz1.og weight.og \
358     ipid.og ipshell.og iplib.og ipassign.og ipconv.og ipprint.og\
359     polys.og polys0.og polys1.og polys-impl.og extra.og\
360     mminit.og sing_dld.og sing_dbm.og silink.og sparsmat.og\
361     sing_mp.og fglm.og fglmzero.og fglmvec.og fglmgauss.og fglmhom.og\
362     algmap.og clapconv.og  clapmem.og clapsing.og \
363     cntrlc.og  sdb.og\
364     mpsr_Error.og mpsr_Put.og mpsr_PutPoly.og mpsr_GetPoly.og \
365     mpsr_Get.og mpsr_GetMisc.og \
366     ndbm.og spSpolyLoop.og libparse.og  mod_raw.og \
367     mpr_inout.og mpr_base.og mpr_numeric.og \
368     pcv.og kbuckets.og kbPolyProcs.og
369
370OBJG2= mmalloc.og mmheap.og mmpage.og mmcheck.og mmbt.og page.og \
371     mmisc.og mmtables.og weight0.og find_exec.og getopt.og fereadl.og
372
373
374OBJG=$(OBJG1) $(OBJG2) claptmpl.og
375
376##
377## Debug Targets
378##
379
380claptmpl.og: claptmpl.cc mod2.h
381        $(CXXG)  ${CXXFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
382$(OBJG1): %.og: %.cc
383        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
384
385$(OBJG2) gmalloc.og: %.og: %.c
386        $(CCG)  ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
387
388Singularg: scanner.cc gmalloc.og $(OBJG) iparith.og mpsr_Tok.og tesths.cc version.h
389        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -o Singularg \
390        tesths.cc iparith.og mpsr_Tok.og $(OBJG) ${LDFLAGS} ${LIBS} \
391        ${LD_DYN_FLAGS} gmalloc.og
392
393iparith.og: iparith.inc iparith.cc
394        $(CXXG)  ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c iparith.cc -o iparith.og
395
396mpsr_Tok.og: iparith.inc mpsr_Tok.cc
397        $(CXXG) ${CXXFLAGSG} ${CPPFLAGS} ${CXXTEMPLFLAGSG} ${DEFSG} -c mpsr_Tok.cc -o mpsr_Tok.og
398
399installg: Singularg
400        ${MKINSTALLDIRS} ${bindir}
401        ${INSTALL_PROGRAM} Singularg ${bindir} 
402
403##
404## compiler and linker options for profile version
405##
406
407CCP             = gcc
408CXXP            = gcc
409
410CFLAGSP         = -pg -O3 ${PIPE} 
411CXXFLAGSP       = -pg -O3 ${PIPE}
412CXXTEMPLFLAGSP  = -fno-implicit-templates
413DEFSP           = -DNDEBUG -DDO_PROFILE -D@SING_UNAME@
414LDFLAGSP        = -static @LDFLAGS@
415
416CFLAGSB         = -g -O3 ${PIPE} 
417CXXFLAGSB       = -g -O3 ${PIPE}
418CXXTEMPLFLAGSB  = -fno-implicit-templates
419DEFSB           = -D@SING_UNAME@
420LDFLAGSB        = -static @LDFLAGS@
421# bprof object  file to link with
422BPROFOBJ        = /usr/local/lib/bmon.o
423
424
425##
426## .op files for gprof
427##
428
429OBJP1=  grammar.op scanner.op matpol.op binom.op gnumpfl.op mpr_complex.op \
430     febase.op feread.op timer.op intvec.op attrib.op lists.op gnumpc.op \
431     longrat.op longrat0.op misc.op ring.op numbers.op maps.op\
432     hilb.op comm.op kstd1.op kstd2.op kutil.op khstd.op kstdfac.op modulop.op \
433     spolys.op ideals.op subexpr.op hdegree.op hutil.op ffields.op shortfl.op \
434     longalg.op spolys0.op syz.op syz0.op syz1.op weight.op \
435     ipid.op ipshell.op iplib.op ipassign.op ipconv.op ipprint.op\
436     polys.op polys0.op polys1.op polys-impl.op extra.op\
437     mminit.op sing_dld.op sing_dbm.op silink.op sparsmat.op\
438     sing_mp.op fglm.op fglmzero.op fglmvec.op fglmgauss.op fglmhom.op\
439     algmap.op clapconv.op  clapmem.op clapsing.op \
440     cntrlc.op  sdb.op\
441     mpsr_Error.op mpsr_Put.op mpsr_PutPoly.op mpsr_GetPoly.op \
442     mpsr_Get.op mpsr_GetMisc.op \
443     ndbm.op spSpolyLoop.op libparse.op  mod_raw.op \
444     mpr_inout.op mpr_base.op mpr_numeric.op \
445     pcv.op kbuckets.op kbPolyProcs.op
446
447OBJP2= mmalloc.op mmheap.op mmpage.op mmcheck.op mmbt.op page.op \
448     mmisc.op mmtables.op weight0.op find_exec.op getopt.op fereadl.op
449
450OBJP=$(OBJP1) $(OBJP2) claptmpl.op
451
452##
453## profile targets
454##
455
456## for gprof
457claptmpl.op: claptmpl.cc mod2.h
458        $(CXXP)  ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
459
460$(OBJP1): %.op: %.cc
461        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
462
463$(OBJP2) gmalloc.op: %.op: %.c
464        $(CCP)  ${CFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
465
466Singularp: scanner.cc  gmalloc.op $(OBJP) iparith.op mpsr_Tok.op tesths.cc version.h
467        $(CXXP) ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -o Singularp \
468        tesths.cc iparith.op mpsr_Tok.op $(OBJP) ${LDFLAGSP} ${LIBS} \
469        ${LD_DYN_FLAGS} gmalloc.op
470
471iparith.op: iparith.inc iparith.cc
472        $(CXXP)  ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -c iparith.cc -o iparith.op
473
474mpsr_Tok.op: iparith.inc mpsr_Tok.cc
475        $(CXXP) ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -c mpsr_Tok.cc -o mpsr_Tok.op
476
477## for brof
478
479Singularb: scanner.cc gmalloc.og $(OBJG) iparith.op mpsr_Tok.op tesths.cc version.h
480        $(CXXG) ${CXXFLAGSB} ${CPPFLAGS} ${DEFSG} ${DEFSB} -o Singularb \
481        tesths.cc iparith.og mpsr_Tok.og $(OBJG)  $(BPROFOBJ) \
482        ${LDFLAGSB} ${LD_DYN_FLAGS} ${LIBS} gmalloc.og
483
484installp: Singularp
485        ${MKINSTALLDIRS} ${bindir}
486        ${INSTALL_PROGRAM} Singularp ${bindir} 
487
488
489##
490## dependencies
491##
492%.dd: %.cc mod2.h
493        echo $(@:.dd=.og) $(@:.dd=.op) $(@:.dd=.ob) " " \\ > $@
494        $(CXXM) -DGENTABLE ${CPPFLAGS} ${DEFSG} $< >> $@
495
496%.d: %.c mod2.h
497        echo $(@:.d=.og) $(@:.d=.op) $(@:.d=.ob) " " \\ > $@
498        $(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@
499
500depend: $(CXXSOURCES:.cc=.dd) $(CSOURCES:.c=.d) mod2.h
501        cat *.d *.dd >depend
502
503#include $(SOURCES:.cc=.dd) $(CSOURCES:.c=.d)
504#include *.d *.dd
505ifeq (depend,$(wildcard depend))
506include depend
507endif
508
509
Note: See TracBrowser for help on using the repository browser.