source: git/Singular/Makefile.in @ 0f5091

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