source: git/kernel/Makefile.in @ 854098

fieker-DuValspielwiese
Last change on this file since 854098 was 854098, checked in by Michael Brickenstein <bricken@…>, 19 years ago
*bricken: ringgb git-svn-id: file:///usr/local/Singular/svn/trunk@8428 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 16.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## various paths
17##
18srcdir          = @srcdir@
19prefix          = @prefix@
20exec_prefix     = @exec_prefix@
21libdir          = @libdir@
22# program executable goes here
23bindir          = @bindir@
24# includes are taken from here
25includedir      = @includedir@
26install_bindir  = ${install_prefix}/${SINGUNAME}
27
28##
29## various programs
30##
31@SET_MAKE@
32CC              = @CC@
33LD              = @LD@
34CXX             = @CXX@
35LEX             = @LEX@
36PERL            = @PERL@
37BISON           = bison
38INSTALL         = @INSTALL@
39INSTALL_PROGRAM = @INSTALL_PROGRAM@
40INSTALL_DATA    = @INSTALL_DATA@
41MKINSTALLDIRS   = ./mkinstalldirs
42LN_S            = @LN_S@
43
44##
45## compiler and linker options
46##
47PIPE            = @PIPE@
48CFLAGS          = @CFLAGS@ ${PIPE}
49CXXFLAGS        = @CXXFLAGS@ ${PIPE}
50CXXTEMPLFLAGS   = @CXXTEMPLFLAGS@
51CPPFLAGS        = -I${srcdir} @CPPFLAGS@
52DEFS            = -DNDEBUG  -D@SING_UNAME@ @DEFS@
53LDFLAGS         = @LDFLAGS@
54LD_DYN_FLAGS    = @LD_DYN_FLAGS@
55SFLAGS          = @SFLAGS@
56SLDFLAGS        = @SLDFLAGS@
57
58LD_LIBC         = -lc
59STATIC_LDFLAGS  = @STATIC_LDFLAGS@
60# under cygwin, do not explicitly link against -lm, for it is the cygwin
61# lib -- if you really want to do this, use -lm as the _last_ thing on the
62# arguments to link
63ifneq ($(SINGUNAME),ix86-Win)
64LIBS            = -lm @NEED_LIBS@
65else
66# for the 2-0-* versions under Windows, we don't need gdbm, readline and ncurses
67LIBS            = -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses
68#LIBS           = -lsingfac -lsingcf -lgmp
69endif
70MP_LIBS         = @MP_LIBS@
71DL_KERNEL       = @DL_KERNEL@
72
73ifdef LD_STATIC
74LDFLAGS  := ${STATIC_LDFLAGS} ${LDFLAGS}
75LIBS := ${MP_LIBS} ${LIBS}
76DL_KERNEL =
77else
78LDFLAGS  := ${LD_DYN_FLAGS} ${LDFLAGS}
79endif
80
81# CXXFLAGS =  -g -Wall -Wno-unused
82# CFLAGS =  -g -Wall -Wno-unused
83##
84## End configuration dependend stuff
85#################################################################
86
87###
88### file sets
89###
90
91# normal C++ source files
92CXXSOURCES=clapconv.cc \
93    clapsing.cc mminit.cc\
94    febase.cc feread.cc feResource.cc \
95    ffields.cc hdegree.cc hilb.cc hutil.cc \
96    gring.cc gr_kstd2.cc\
97    ideals.cc intvec.cc int64vec.cc \
98    khstd.cc kstdfac.cc \
99    kstd1.cc kstd2.cc kutil.cc \
100    longalg.cc longrat.cc longrat0.cc \
101    maps.cc matpol.cc misc.cc gnumpfl.cc gnumpc.cc \
102    modulop.cc mpr_complex.cc sparsmat.cc fast_maps.cc \
103    fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \
104    numbers.cc polys.cc p_polys.cc polys0.cc polys1.cc polys-impl.cc \
105    ring.cc shortfl.cc kspoly.cc \
106    syz.cc syz0.cc syz1.cc syz2.cc syz3.cc\
107    timer.cc weight.cc \
108    GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \
109    mod_raw.cc sing_win.cc walkProc.cc walkMain.cc walkSupport.cc\
110    eigenval.cc units.cc kbuckets.cc sbuckets.cc\
111    mpr_inout.cc mpr_base.cc mpr_numeric.cc \
112    prCopy.cc p_Mult_q.cc \
113    pDebug.cc pInline2.cc pInline1.cc pInline0.cc \
114    pShallowCopyDelete.cc fast_mult.cc digitech.cc\
115    tgb.cc tgbgauss.cc F4.cc ringgb.cc
116
117# normal C source files
118CSOURCES=weight0.c fegetopt.c fereadl.c dError.c mmstd.c
119
120# C++ sources which are used if part of the kernel are dynamically linked
121DL_KERNEL_SOURCES=p_Procs_Dynamic.cc
122
123# C++ sources which are used for dynamic libraries if part of the kernel is
124# dynamically linked
125DL_LIB_SOURCES=p_Procs_Lib.cc
126
127# C++ sources which are used if no parts of the kernel are dynamically linked
128STATIC_SOURCES=p_Procs_Static.cc
129
130# special C++ source files (need extra compiling and/or linking), for which
131# dependencies should be generated
132ESOURCES=mmalloc.cc $(DL_KERNEL_SOURCES) $(DL_LIB_SOURCES) $(STATIC_SOURCES)
133
134SOURCES=${CSOURCES} ${CXXSOURCES} \
135        syz2.cc prCopyTemplate.cc \
136        p_Delete__T.cc p_ShallowCopyDelete__T.cc \
137        p_Copy__T.cc p_Mult_nn__T.cc  pp_Mult_nn__T.cc \
138        pp_Mult_mm__T.cc p_Mult_mm__T.cc \
139        p_Minus_mm_Mult_qq__T.cc p_Add_q__T.cc \
140        p_Neg__T.cc pp_Mult_Coeff_mm_DivSelect__T.cc \
141        pp_Mult_Coeff_mm_DivSelectMult__T.cc \
142        p_Merge_q__T.cc pp_Mult_mm_Noether__T.cc\
143        p_kBucketSetLm__T.cc \
144        kInline.cc
145
146HEADERS=hutil.h stairc.h ideals.h \
147        longalg.h structs.h intvec.h int64vec.h longrat.h \
148        numbers.h stype.h clapconv.h ipconv.h maps.h \
149        clapsing.h matpol.h polys.h p_polys.h syz.h \
150        ring.h timer.h dError.h fast_maps.h \
151        febase.h shortfl.h mpr_complex.h mpr_global.h \
152        gring.h walkProc.h walkMain.h walkSupport.h\
153        ffields.h khstd.h sparsmat.h gnumpfl.h gnumpc.h \
154        fglm.h kstd1.h modulop.h sing_dbm.h weight.h \
155        fglmgauss.h fglmvec.h \
156        kstdfac.h kmatrix.h\
157        kutil.h \
158        dbm_sl.h polys-impl.h \
159        GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h multicnt.h \
160        eigenval.h units.h mod_raw.h kbuckets.h sbuckets.h\
161        mpr_global.h mpr_inout.h mpr_base.h mpr_numeric.h \
162        fegetopt.h distrib.h \
163        prCopy.h prCopyMacros.h \
164        p_MemAdd.h p_MemCopy.h p_MemCmp.h p_Numbers.h \
165        pInline2.h pInline1.h pInline0.h mmalloc.h static.h\
166        omSingularConfig.h pShallowCopyDelete.h \
167        p_Procs_Dynamic.h p_Procs_Impl.h p_Procs_Set.h \
168        p_Procs.h p_Procs_Static.h p_Mult_q.h
169
170DISTFILES=${SOURCES} ${HEADERS} ${ESOURCES} \
171        Makefile.in configure.in configure \
172        mod2.h.in testgh install-sh mkinstalldirs \
173        check_aso.pl prCopy.pl
174
175OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o)
176OBJS2 := $(ESOURCES:.cc=.o)
177OBJSG2 := $(ESOURCES:.cc=.og)
178
179P_PROCS_MODULES = FieldZp FieldIndep FieldQ FieldGeneral
180
181ifeq ($(DL_KERNEL),1)
182OBJS    := $(OBJS) $(DL_KERNEL_SOURCES:.cc=.o)
183DL_LIBS := $(P_PROCS_MODULES:%=p_Procs_%.so)
184else
185ifndef LD_STATIC
186LIBS := $(MP_LIBS) $(LIBS)
187endif
188OBJS := $(OBJS) $(STATIC_SOURCES:.cc=.o)
189DL_LIBS=
190endif
191
192#
193# Singular libraries which go into distribution
194# MAKE SURE THAT THIS IS UP_TO_DATE
195#
196SLIBS = COPYING \
197        ainvar.lib   algebra.lib   all.lib       brnoeth.lib    classify.lib \
198        deform.lib   elim.lib      equising.lib  finvar.lib     gaussman.lib \
199        general.lib  graphics.lib  groups.lib    hnoether.lib   homolog.lib  \
200        inout.lib    intprog.lib   latex.lib     linalg.lib     makedbm.lib  \
201        matrix.lib   mondromy.lib  mprimdec.lib \
202        mregular.lib normal.lib    ntsolve.lib   paramet.lib \
203        poly.lib     presolve.lib  primdec.lib   primitiv.lib   qhmoduli.lib \
204        random.lib   reesclos.lib  ring.lib      rinvar.lib     sing.lib \
205        solve.lib    spcurve.lib   spectrum.lib  standard.lib   stratify.lib \
206        surf.lib     teachstd.lib  template.lib  toric.lib      triang.lib \
207        weierst.lib  zeroset.lib   help.cnf
208
209SLIBS_FILES = $(addprefix LIB/,${SLIBS})
210
211GFTABLES = $(wildcard LIB/gftables/[1-9]*)
212
213##
214## Build Targets
215##
216.cc.o: 
217        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
218.c.o:
219        ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
220
221# building objects for shared libraries
222p_Procs_Lib_%.dl_o : p_Procs_Lib.cc p_Procs_Dynamic.o
223        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@
224
225%.dl_o : %.cc
226        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -c $< -o $@
227
228DL_TAILG=\"sog\"
229DL_TAILP=\"sop\"
230DL_TAILB=\"sob\"
231DL_TAILT=\"sot\"
232DL_TAILA=\"soa\"
233
234
235ifeq ($(DL_KERNEL),1)
236
237OBJG := $(OBJG) $(DL_KERNEL_SOURCES:.cc=.og)
238DL_LIBSG := $(P_PROCS_MODULES:%=p_Procs_%.sog)
239
240OBJP := $(OBJP) $(DL_KERNEL_SOURCES:.cc=.op)
241DL_LIBSP := $(P_PROCS_MODULES:%=p_Procs_%.sop)
242
243OBJB := $(OBJB) $(DL_KERNEL_SOURCES:.cc=.ob)
244DL_LIBSB := $(P_PROCS_MODULES:%=p_Procs_%.sob)
245
246OBJT := $(OBJT) $(DL_KERNEL_SOURCES:.cc=.ot)
247DL_LIBST := $(P_PROCS_MODULES:%=p_Procs_%.sot)
248
249OBJA := $(OBJA) $(DL_KERNEL_SOURCES:.cc=.oa)
250DL_LIBSA := $(P_PROCS_MODULES:%=p_Procs_%.soa)
251
252else
253
254OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og)
255DL_LIBSG=
256
257OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op)
258DL_LIBSP=
259
260OBJB := $(OBJB) $(STATIC_SOURCES:.cc=.ob)
261DL_LIBSB=
262
263OBJT := $(OBJT) $(STATIC_SOURCES:.cc=.ot)
264DL_LIBST=
265
266OBJA := $(OBJA) $(STATIC_SOURCES:.cc=.oa)
267DL_LIBST=
268
269endif
270
271all:    kversion.h libkernel.a libkernel-g.a ${DL_LIBS} ${DL_LIBSG} ${OBJS2} ${OBJSG2}
272
273libkernel.a: ${OBJS}
274        ar cr $@ $^
275
276p_Procs_Lib.o: p_Procs_Lib.inc
277
278kversion.h: ${SOURCES} ${HEADERS} Makefile.in mod2.h.in \
279           configure.in
280        echo "#define feVersionId0 "  `date '+%Y%m%d%H'` >kversion.h
281
282# Hmm compiling with -fomit-frame-pointer resulted in access violation
283# under cygwin
284prCopy.o: prCopy.inc
285
286prCopy.inc : prCopyMacros.h prCopyTemplate.cc prCopy.pl
287        $(PERL) prCopy.pl > prCopy.inc
288
289# additional dependencies for p_Procs_[Static|Dynamic|Lib].cc
290p_Procs_Static.o: p_Procs_Static.inc
291p_Procs_Static.inc: p_Procs_Static.h
292p_Procs_Dynamic.o p_Procs_Lib.o: p_Procs_Dynamic.inc
293p_Procs_Dynamic.inc p_Procs_Lib.inc: p_Procs_Dynamic.h
294
295# here is how p_Procs_[Static|Dynamic].inc is generated
296p_Procs_%.inc: p_Procs_Generate.cc p_Procs_Impl.h mod2.h
297        $(CXX) -g -Wall -Dp_Procs_$* p_Procs_Generate.cc -o p_Procs_$*
298        ./p_Procs_$* > p_Procs_$*.inc
299        -rm -f p_Procs_$* p_Procs_$*.exe
300
301p_Procs_%.so: p_Procs_Lib_%.dl_o
302        $(LD) ${SLDFLAGS} -o $@ $^
303
304##
305## install targets
306##
307install: all installbin
308
309installbin: ${DL_LIBS} ${DL_LIBSG}
310        ${MKINSTALLDIRS} ${bindir}
311        - ranlib libkernel.a
312        - ranlib libkernel-g.a
313ifeq (,${DL_LIBS})
314else
315
316ifeq (,${DL_LIBSG})
317else
318        -${INSTALL_PROGRAM} ${DL_LIBS} ${DL_LIBSG} ${bindir}
319        -${INSTALL_PROGRAM} ${DL_LIBS} ${DL_LIBSG} ../Singular
320endif
321endif
322
323
324install-bindist: ${DL_LIBS} libkernel.a
325        ${MKINSTALLDIRS} ${bindir}
326ifeq (,${DL_LIBS})
327else
328        -${INSTALL_PROGRAM} ${DL_LIBS} ${bindir}
329endif
330
331# compatibility
332
333install-bindist-plural: install-bindist
334
335##
336## clean targest
337##
338mostlyclean:
339        -rm -f p_Procs_*.inc
340        -rm -f *.o *.og core *.op *.ob *.ot *.od *_d.cc *_d.c p_Procs *.oa *.dl_o* *.so*
341
342clean: mostlyclean
343        -rm -f *.bak *.d *.dd depend
344
345distclean: clean
346        -rm -f *~ .\#* kversion.h
347        -rm -f mod2.h Makefile TAGS* tags config.status config.cache config.log
348
349srcclean:
350        @echo "This command is intended for maintainers to use;"
351        @echo "Rebuilding the deleted files requires flex"
352        @echo "bison, perl"
353
354maintainer-clean: distclean srcclean
355        @echo "This command is intended for maintainers to use;"
356        @echo "Rebuilding the deleted files requires flex"
357        @echo "bison, perl and autoconf"
358        -rm configure
359
360##
361## miscellanous targets
362##
363
364TAGS:   ${SOURCES} ${ESOURCES} ${HEADERS}
365        etags ${SOURCES} ${ESOURCES} ${HEADERS}
366
367tags:   
368        ctags *.y *.l *.c *.h *.cc *.inc
369
370echoLIBS:
371        @echo ${SLIBS}
372
373##
374## Below here is stuff for developpers
375#################################################################
376
377
378##
379## .og files for having -O and -g object versions available at the same time
380##
381
382OBJG1 := $(CXXSOURCES:.cc=.og)
383OBJG2 := $(CSOURCES:.c=.og)
384
385OBJP1 := $(CXXSOURCES:.cc=.op)
386OBJP2 := $(CSOURCES:.c=.op)
387
388OBJB1 := $(CXXSOURCES:.cc=.ob)
389OBJB2 := $(CSOURCES:.c=.ob)
390
391OBJT1 := $(CXXSOURCES:.cc=.ot)
392OBJT2 := $(CSOURCES:.c=.ot)
393
394OBJA1 := $(CXXSOURCES:.cc=.oa)
395OBJA2 := $(CSOURCES:.c=.oa)
396
397
398OBJG=$(OBJG1) $(OBJG2)
399OBJP=$(OBJP1) $(OBJP2)
400OBJB=$(OBJB1) $(OBJB2)
401OBJT=$(OBJT1) $(OBJT2)
402OBJA=$(OBJA1) $(OBJA2)
403
404ifeq ($(DL_KERNEL),1)
405OBJG    := $(OBJG) $(DL_KERNEL_SOURCES:.cc=.og)
406else
407OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og)
408endif
409
410##
411## compiler and linker options for debug version
412##
413
414CCG             = gcc
415CXXG            = gcc
416CXXM            = gcc -MM -MG -DGENERATE_DEPEND
417CCM             = gcc -MM -MG -DGENERATE_DEPEND
418
419CFLAGSG         = -g -Wall -Wno-unused ${PIPE}
420CXXFLAGSG       = -g -Wall -Wno-unused ${PIPE}
421CXXTEMPLFLAGSG  = -fno-implicit-templates
422DEFSG           = -D@SING_UNAME@ @DEFS@ -DDL_TAIL=$(DL_TAILG)
423
424##
425## Debug Targets
426##
427
428p_Procs_%.sog: p_Procs_Lib_%.dl_og
429        ${CXXG} ${CXXFLAGSG} ${SFLAGS} ${SLDFLAGS} $< -o $@
430
431p_Procs_Lib_%.dl_og : p_Procs_Lib.cc  p_Procs_Dynamic.og
432        ${CXXG} ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSG} ${SFLAGS} -Dp_Procs_$* -c $< -o $@
433
434%.dl_og: %.cc
435        ${CXXG} ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} ${SFLAGS} -c $< -o $@
436
437%.og: %.cc
438        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
439
440$(OBJG2) : %.og: %.c
441        $(CCG)  ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
442
443libkernel-g.a: ${OBJG}
444        ar cr $@ $^
445
446##
447## compiler and linker options for profile version
448##
449
450CCP             = gcc
451CXXP            = gcc
452
453CFLAGSP         = -pg -O3 ${PIPE}
454CXXFLAGSP       = -pg -O3 ${PIPE}
455CXXTEMPLFLAGSP  = -fno-implicit-templates
456DEFSP           = -DNDEBUG  -DDO_PROFILE -D@SING_UNAME@ @DEFS@ -DDL_TAIL=$(DL_TAILP)
457LDFLAGSP        = -static @LDFLAGS@
458
459CFLAGSB         = -g -O3 ${PIPE}
460CXXFLAGSB       = -g -O3 ${PIPE}
461CXXTEMPLFLAGSB  = -fno-implicit-templates
462DEFSB           = -D@SING_UNAME@  -DNDEBUG @DEFS@ -DDL_TAIL=$(DL_TAILB)
463LDFLAGSB        = -static @LDFLAGS@
464
465# bprof object  file to link with
466BPROFOBJ        = /usr/local/lib/bmon.o
467
468DEFST           = -DNO_INLINE -DNDEBUG -D@SING_UNAME@ -DOM_TRACK=2 -DOM_CHECK=0 @DEFS@ -DDL_TAIL=$(DL_TAILT)
469LDFLAGST        = @LDFLAGS@
470CFLAGST         = -g  -O2 -w ${PIPE}
471CXXFLAGST       = -g  -O2 -w ${PIPE}
472
473##
474## op and ob files for gprof and bprof, ot for mtrack, oc for OMCHECK=1
475##
476
477
478##
479## profile targets
480##
481
482## for gprof
483p_Procs_%.sop: p_Procs_Lib_%.dl_op
484        ${CXXP} ${CXXFLAGSP} ${SFLAGS} ${SLDFLAGS} $< -o $@
485
486p_Procs_Lib_%.dl_op : p_Procs_Lib.cc p_Procs_Dynamic.op
487        ${CXXP} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@
488
489%.dl_op: %.cc
490        ${CXXP} ${CXXFLAGSP} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSP} ${SFLAGS} -c $< -o $@
491
492
493%.op: %.cc
494        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
495
496$(OBJP2) : %.op: %.c
497        $(CCP)  ${CFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@
498
499## for bprof
500p_Procs_%.sob: p_Procs_Lib_%.dl_ob
501        ${CXXP} ${CXXFLAGSB} ${SFLAGS} ${SLDFLAGS} $< -o $@
502
503p_Procs_Lib_%.dl_ob : p_Procs_Lib.cc  p_Procs_Dynamic.ob
504        ${CXXP} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@
505
506%.dl_ob: %.cc
507        ${CXXP} ${CXXFLAGSB} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSB} ${SFLAGS} -c $< -o $@
508
509%.ob: %.cc
510        $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSB} -c $< -o $@
511
512$(OBJB2) : %.ob: %.c
513        $(CCP)  ${CFLAGSP} ${CPPFLAGS} ${DEFSB} -c $< -o $@
514
515iparith.ob: iparith.inc iparith.cc
516        $(CXXP)  ${CXXFLAGSP} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSB} -c iparith.cc -o iparith.ob
517
518#
519# for mtrack
520#
521p_Procs_%.sot: p_Procs_Lib_%.dl_ot
522        ${CXXP} ${CXXFLAGST} ${SFLAGS} ${SLDFLAGS} $< -o $@
523
524p_Procs_Lib_%.dl_ot : p_Procs_Lib.cc p_Procs_Dynamic.ot
525        ${CXXP} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@
526
527%.dl_ot: %.cc
528        ${CXXP} ${CXXFLAGST} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFST} ${SFLAGS} -c $< -o $@
529
530%.ot: %.cc
531        $(CXXP) ${CXXFLAGST} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFST} -c $< -o $@
532
533$(OBJT2) : %.ot: %.c
534        $(CCP)  ${CFLAGST} ${CPPFLAGS} ${DEFST} -c $< -o $@
535
536iparith.ot: iparith.inc iparith.cc
537        $(CXXP)  ${CXXFLAGST} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFST} -c iparith.cc -o iparith.ot
538
539#
540# for Singulara
541#
542DEFSA = -DOM_CHECK=1 -DHAVE_ASSUME -DNDEBUG -D@SING_UNAME@ @DEFS@ -DDL_TAIL=$(DL_TAILA)
543CFLAGSA         = -g  -O -Wall -Wno-unused ${PIPE}
544CXXFLAGSA       = -g  -O -Wall -Wno-unused ${PIPE}
545
546p_Procs_%.soa: p_Procs_Lib_%.dl_oa
547        ${CXX} ${CXXFLAGSA} ${SFLAGS} ${SLDFLAGS} $< -o $@
548
549p_Procs_Lib_%.dl_oa : p_Procs_Lib.cc p_Procs_Dynamic.oa
550        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -Dp_Procs_$* -c $< -o $@
551
552%.dl_oa: %.cc
553        ${CXX} ${CXXFLAGSA} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSA} ${SFLAGS} -c $< -o $@
554
555%.oa: %.cc
556        $(CXX) ${CXXFLAGSA} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSA} -c $< -o $@
557
558$(OBJA2) : %.oa: %.c
559        $(CC)  ${CFLAGSA} ${CPPFLAGS} ${DEFSA} -c $< -o $@
560
561iparith.oa: iparith.inc iparith.cc
562        $(CXX)  ${CXXFLAGSA} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSA} -c iparith.cc -o iparith.oa
563
564#
565# for Macro expansion
566#
567CXXSOURCESD := $(CXXSOURCES:%.cc=%_d.cc) $(STATIC_SOURCES:%.cc=%_d.cc)
568CSOURCESD := $(CSOURCES:%.c=%_d.c)
569OBJD1 := $(CXXSOURCESD:.cc=.od)
570OBJD2 := $(CSOURCESD:.c=.od)
571
572%_d.c : %.c
573        $(CCG) $(CFLAGSG) ${CPPFLAGS} ${DEFS}-E -P $< | $(PERL) -p -e 's/;/;\n/g' | $(PERL) -p -e 's/\{/\n\{/g' | $(PERL) -p -e 's/\}/\n\}/g' > $@
574
575%_d.cc : %.cc
576        $(CCG) $(CXXFLAGS) ${CPPFLAGS} ${DEFS} -E -P $< | $(PERL) -p -e 's/;/;\n/g' | $(PERL) -p -e 's/\{/\n\{/g' | $(PERL) -p -e 's/\}/\n\}/g' > $@
577
578.PRECIOUS: %_d.cc %_d.c
579
580%.od : %.c
581        $(CCG)  ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
582
583%.od : %.cc
584        $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@
585
586##
587## check_aso
588##
589check_aso:
590        ${PERL} check_aso.pl $(SOURCES)
591##
592## dependencies
593##
594
595%.dd: %.cc mod2.h
596        echo $(@:.dd=.og) $(@:.dd=.op) $(@:.dd=_d.cc) $(@:.dd=.od) $(@:.dd=.ob) $(@:.dd=.ot) $(@:.dd=.oa) $(@:.dd=.dl_o) $(@:.dd=.dl_og) $(@:.dd=.dl_op) $(@:.dd=.dl_od) $(@:.dd=.dl_ob) $(@:.dd=.dl_ot) $(@:.dd=.dl_oa)" " \\ > $@
597        $(CXXM) -DGENTABLE ${CPPFLAGS} ${DEFSG} $< >> $@
598
599%.d: %.c mod2.h
600        echo $(@:.d=.og) $(@:.d=.od) $(@:.dd=_d.c) $(@:.d=.op) $(@:.d=.ob) $(@:.d=.ot) $(@:.d=.oa)" " \\ > $@
601        $(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@
602
603depend:   $(CXXSOURCES:.cc=.dd) $(ESOURCES:.cc=.dd) $(CSOURCES:.c=.d) mod2.h
604        cat *.d *.dd >depend
605
606ifeq (depend,$(wildcard depend))
607include depend
608endif
609
610
Note: See TracBrowser for help on using the repository browser.