source: git/Singular/Makefile.in @ f36635

spielwiese
Last change on this file since f36635 was f36635, checked in by Olaf Bachmann <obachman@…>, 24 years ago
* merged in changes from 1-2-3 git-svn-id: file:///usr/local/Singular/svn/trunk@3207 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 15.7 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 libparse
256        ${MKINSTALLDIRS} ${bindir}
257        ${INSTALL_PROGRAM} Singular ${bindir}/Singular-${SINGULAR_VERSION}
258        ${INSTALL_PROGRAM} libparse ${bindir}/libparse
259        chmod a+x ${bindir}/Singular-${SINGULAR_VERSION}
260        rm -f ${bindir}/Singular
261        cd ${bindir}; ${LN_S} Singular-${SINGULAR_VERSION} Singular;\
262        if test ! -x ${SINGULAR}; then \
263                ${LN_S} Singular-${SINGULAR_VERSION} ${SINGULAR};\
264        fi
265
266
267
268uninstall: uninstallbin
269
270uninstallbin:
271        rm -f ${bindir}/Singular rm -f ${bindir}/Singular-${SINGULAR_VERSION}
272        -rmdir ${bindir}
273
274##
275## clean targest
276##
277mostlyclean: clean
278
279clean:
280        -rm -f Singular Singularg Singularp Singularb libparse \
281            *.o *.og core *.op *.ob
282
283distclean: clean
284        -rm -f depend iparith.inc mpsr_Tok.inc stamp.h *.d *.dd
285        -rm -f Singular* *.gprof *.bprof *~ .\#* version.h
286        -rm -f mod2.h Makefile TAGS* config.status config.cache config.log
287
288srcclean:
289        @echo "This command is intended for maintainers to use;"
290        @echo "Rebuilding the deleted files requires flex"
291        @echo "bison, perl"
292        -rm -f scanner.cc grammar.h grammar.cc libparse.cc spSpolyLoop.inc
293
294maintainer-clean: distclean srcclean
295        @echo "This command is intended for maintainers to use;"
296        @echo "Rebuilding the deleted files requires flex"
297        @echo "bison, perl and autoconf"
298        -rm configure
299
300##
301## miscellanous targets
302##
303
304Singular-bindist: mod2.h Makefile version.h scanner.cc ${OBJS} iparith.o \
305                  mpsr_Tok.o tesths.cc libparse.cc si_paths.h depend
306        touch si_paths.h
307        ${MAKE} CXXFLAGS="${CXXFLAGS} -DMAKE_DISTRIBUTION" Singular
308        ${INSTALL} -s Singular Singular-bindist
309
310Singular-static-bindist: mod2.h Makefile version.h scanner.cc si_paths.h \
311                         ${OBJS} iparith.o mpsr_Tok.o tesths.cc \
312                         libparse.cc depend
313        touch si_paths.h
314        ${MAKE} CXXFLAGS="${CXXFLAGS} -DMAKE_DISTRIBUTION" Singular-static
315        strip Singular-static
316        mv Singular-static Singular-static-bindist
317
318tar:
319        tar cf Singular-${SINGULAR_VERSION}-src.tar ${DISTFILES}
320        gzip -f Singular-${SINGULAR_VERSION}-src.tar
321
322
323TAGS:
324        etags ${SOURCES} ${HEADERS}
325
326##
327## Below here is stuff for developpers
328#################################################################
329
330##
331## compiler and linker options for debug version
332##
333
334CCG             = gcc
335CXXG            = gcc
336CXXM            = gcc -MM
337CCM             = gcc -MM
338
339CFLAGSG         = -g -Wall -Wno-unused ${PIPE}
340CXXFLAGSG       = -g -Wall -Wno-unused ${PIPE}
341CXXTEMPLFLAGSG  = -fno-implicit-templates
342DEFSG           = -D@SING_UNAME@ @DEFS@
343
344##
345## .og files for having -O and -g object versions available at the same time
346##
347
348OBJG1=  grammar.og scanner.og matpol.og binom.og gnumpfl.og mpr_complex.og \
349     febase.og feread.og timer.og intvec.og attrib.og lists.og gnumpc.og\
350     longrat.og longrat0.og misc.og ring.og numbers.og maps.og\
351     hilb.og comm.og kstd1.og kstd2.og kutil.og khstd.og kstdfac.og modulop.og \
352     spolys.og ideals.og subexpr.og hdegree.og hutil.og ffields.og shortfl.og \
353     longalg.og spolys0.og syz.og syz0.og syz1.og weight.og \
354     ipid.og ipshell.og iplib.og ipassign.og ipconv.og ipprint.og\
355     polys.og polys0.og polys1.og polys-impl.og extra.og\
356     mminit.og sing_dld.og sing_dbm.og silink.og sparsmat.og\
357     sing_mp.og fglm.og fglmzero.og fglmvec.og fglmgauss.og fglmhom.og\
358     algmap.og clapconv.og  clapmem.og clapsing.og \
359     cntrlc.og  sdb.og\
360     mpsr_Error.og mpsr_Put.og mpsr_PutPoly.og mpsr_GetPoly.og \
361     mpsr_Get.og mpsr_GetMisc.og \
362     ndbm.og spSpolyLoop.og libparse.og  mod_raw.og \
363     mpr_inout.og mpr_base.og mpr_numeric.og \
364     pcv.og kbuckets.og kbPolyProcs.og
365
366OBJG2= mmalloc.og mmheap.og mmpage.og mmcheck.og mmbt.og page.og \
367     mmisc.og mmtables.og weight0.og find_exec.og getopt.og fereadl.og
368
369
370OBJG=$(OBJG1) $(OBJG2) claptmpl.og
371
372##
373## Debug Targets
374##
375
376claptmpl.og: claptmpl.cc mod2.h
377        $(CXXG)  ${CXXFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
378$(OBJG1): %.og: %.cc
379        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
380
381$(OBJG2) gmalloc.og: %.og: %.c
382        $(CCG)  ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
383
384Singularg: scanner.cc gmalloc.og $(OBJG) iparith.og mpsr_Tok.og tesths.cc version.h
385        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -o Singularg \
386        tesths.cc iparith.og mpsr_Tok.og $(OBJG) ${LDFLAGS} ${LIBS} \
387        ${LD_DYN_FLAGS} gmalloc.og
388
389iparith.og: iparith.inc iparith.cc
390        $(CXXG)  ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c iparith.cc -o iparith.og
391
392mpsr_Tok.og: iparith.inc mpsr_Tok.cc
393        $(CXXG) ${CXXFLAGSG} ${CPPFLAGS} ${CXXTEMPLFLAGSG} ${DEFSG} -c mpsr_Tok.cc -o mpsr_Tok.og
394
395installg: Singularg
396        ${MKINSTALLDIRS} ${bindir}
397        ${INSTALL_PROGRAM} Singularg ${bindir} 
398
399##
400## compiler and linker options for profile version
401##
402
403CCP             = gcc
404CXXP            = gcc
405
406CFLAGSP         = -pg -O3 ${PIPE} 
407CXXFLAGSP       = -pg -O3 ${PIPE}
408CXXTEMPLFLAGSP  = -fno-implicit-templates
409DEFSP           = -DNDEBUG -DDO_PROFILE -D@SING_UNAME@
410LDFLAGSP        = -static @LDFLAGS@
411
412CFLAGSB         = -g -O3 ${PIPE} 
413CXXFLAGSB       = -g -O3 ${PIPE}
414CXXTEMPLFLAGSB  = -fno-implicit-templates
415DEFSB           = -DNDEBUG -D@SING_UNAME@
416LDFLAGSB        = -static @LDFLAGS@
417# bprof object  file to link with
418BPROFOBJ        = /usr/local/lib/bmon.o
419
420
421##
422## .op files for gprof
423##
424
425OBJP1=  grammar.op scanner.op matpol.op binom.op gnumpfl.op mpr_complex.op \
426     febase.op feread.op timer.op intvec.op attrib.op lists.op gnumpc.op \
427     longrat.op longrat0.op misc.op ring.op numbers.op maps.op\
428     hilb.op comm.op kstd1.op kstd2.op kutil.op khstd.op kstdfac.op modulop.op \
429     spolys.op ideals.op subexpr.op hdegree.op hutil.op ffields.op shortfl.op \
430     longalg.op spolys0.op syz.op syz0.op syz1.op weight.op \
431     ipid.op ipshell.op iplib.op ipassign.op ipconv.op ipprint.op\
432     polys.op polys0.op polys1.op polys-impl.op extra.op\
433     mminit.op sing_dld.op sing_dbm.op silink.op sparsmat.op\
434     sing_mp.op fglm.op fglmzero.op fglmvec.op fglmgauss.op fglmhom.op\
435     algmap.op clapconv.op  clapmem.op clapsing.op \
436     cntrlc.op  sdb.op\
437     mpsr_Error.op mpsr_Put.op mpsr_PutPoly.op mpsr_GetPoly.op \
438     mpsr_Get.op mpsr_GetMisc.op \
439     ndbm.op spSpolyLoop.op libparse.op  mod_raw.op \
440     mpr_inout.op mpr_base.op mpr_numeric.op \
441     pcv.op kbuckets.op kbPolyProcs.op
442
443OBJP2= mmalloc.op mmheap.op mmpage.op mmcheck.op mmbt.op page.op \
444     mmisc.op mmtables.op weight0.op find_exec.op getopt.op fereadl.op
445
446OBJP=$(OBJP1) $(OBJP2) claptmpl.op
447
448##
449## profile targets
450##
451
452## for gprof
453claptmpl.op: claptmpl.cc mod2.h
454        $(CXXP)  ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
455
456$(OBJP1): %.op: %.cc
457        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
458
459$(OBJP2) gmalloc.op: %.op: %.c
460        $(CCP)  ${CFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
461
462Singularp: scanner.cc  gmalloc.op $(OBJP) iparith.op mpsr_Tok.op tesths.cc version.h
463        $(CXXP) ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -o Singularp \
464        tesths.cc iparith.op mpsr_Tok.op $(OBJP) ${LDFLAGSP} ${LIBS} \
465        ${LD_DYN_FLAGS} gmalloc.op
466
467iparith.op: iparith.inc iparith.cc
468        $(CXXP)  ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -c iparith.cc -o iparith.op
469
470mpsr_Tok.op: iparith.inc mpsr_Tok.cc
471        $(CXXP) ${CXXFLAGSP} ${CPPFLAGS} ${DEFSP} -c mpsr_Tok.cc -o mpsr_Tok.op
472
473## for brof
474
475Singularb: scanner.cc gmalloc.op $(OBJP) iparith.op mpsr_Tok.op tesths.cc version.h
476        $(CXXP) ${CXXFLAGSB} ${CPPFLAGS} ${DEFSB} -o Singularb \
477        tesths.cc iparith.op mpsr_Tok.op $(OBJP)  $(BPROFOBJ) \
478        ${LDFLAGSB} ${LD_DYN_FLAGS} ${LIBS} gmalloc.op
479
480installp: Singularp
481        ${MKINSTALLDIRS} ${bindir}
482        ${INSTALL_PROGRAM} Singularp ${bindir} 
483
484
485##
486## dependencies
487##
488%.dd: %.cc mod2.h
489        echo $(@:.dd=.og) $(@:.dd=.op) $(@:.dd=.ob) " " \\ > $@
490        $(CXXM) -DGENTABLE ${CPPFLAGS} ${DEFSG} $< >> $@
491
492%.d: %.c mod2.h
493        echo $(@:.d=.og) $(@:.d=.op) $(@:.d=.ob) " " \\ > $@
494        $(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@
495
496depend: $(CXXSOURCES:.cc=.dd) $(CSOURCES:.c=.d) mod2.h
497        cat *.d *.dd >depend
498
499#include $(SOURCES:.cc=.dd) $(CSOURCES:.c=.d)
500#include *.d *.dd
501ifeq (depend,$(wildcard depend))
502include depend
503endif
504
505
Note: See TracBrowser for help on using the repository browser.