source: git/Singular/Makefile.in @ 263824

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