################################################################ ### ### Makefile for Singular ### ################################################################# SHELL = /bin/sh ## ## version ## SINGULAR_VERSION = @SINGULAR_VERSION@ SINGULAR = @SINGULAR@ SINGUNAME = @SINGUNAME@ EXEC_EXT = @EXEC_EXT@ HAVE_PLURAL = @PLURAL@ ## ## various paths ## srcdir = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ libdir = @libdir@ # program executable goes here bindir = @bindir@ # includes are taken from here includedir = @includedir@ slibdir = ${prefix}/LIB install_bindir = ${install_prefix}/${SINGUNAME} install_slibdir = ${install_prefix}/LIB ## ## various programs ## @SET_MAKE@ CC = @CC@ LD = @LD@ CXX = @CXX@ LEX = sh flexer.sh PERL = @PERL@ BISON = bison INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = ./mkinstalldirs LN_S = @LN_S@ ## ## compiler and linker options ## PIPE = @PIPE@ CFLAGS = @CFLAGS@ ${PIPE} CXXFLAGS = @CXXFLAGS@ ${PIPE} CXXTEMPLFLAGS = @CXXTEMPLFLAGS@ CPPFLAGS = -I${srcdir} -I../kernel @CPPFLAGS@ DEFS = -DNDEBUG -DOM_NDEBUG -D@SING_UNAME@ @DEFS@ LDFLAGS2 = @LDFLAGS@ LDFLAGS = -L../kernel -lkernel @LDFLAGS@ LDFLAGSG = -L../kernel -lkernel-g @LDFLAGS@ LD_DYN_FLAGS = @LD_DYN_FLAGS@ SFLAGS = @SFLAGS@ SLDFLAGS = @SLDFLAGS@ LD_LIBC = -lc STATIC_LDFLAGS = @STATIC_LDFLAGS@ # under cygwin, do not explicitly link against -lm, for it is the cygwin # lib -- if you really want to do this, use -lm as the _last_ thing on the # arguments to link ifneq ($(SINGUNAME),ix86-Win) LIBS = -lm @NEED_LIBS@ else LIBS = -lsingfac -lsingcf -lntl -lgmp -static -lreadline -lncurses endif MP_LIBS = @MP_LIBS@ DL_KERNEL = @DL_KERNEL@ HAVE_MPSR = @HAVE_MPSR@ ifdef LD_STATIC LDFLAGS := ${STATIC_LDFLAGS} ${LDFLAGS} SING_EXEC = Singular-static LIBS := ${MP_LIBS} ${LIBS} DL_KERNEL = else LDFLAGS := ${LD_DYN_FLAGS} ${LDFLAGS} SING_EXEC = Singular endif # CXXFLAGS = -g -Wall -Wno-unused # CFLAGS = -g -Wall -Wno-unused ## ## End configuration dependend stuff ################################################################# ### ### file sets ### # normal C++ source files CXXSOURCES=grammar.cc scanner.cc attrib.cc \ eigenval_ip.cc\ extra.cc fehelp.cc feOpt.cc \ ipassign.cc ipconv.cc ipid.cc iplib.cc \ ipprint.cc ipshell.cc \ lists.cc \ sdb.cc \ fglm.cc \ p_polys.cc \ silink.cc \ subexpr.cc \ janet.cc wrapper.cc\ libparse.cc sing_win.cc\ gms.cc pcv.cc maps_ip.cc\ tgb.cc\ pShallowCopyDelete.cc fast_maps.cc cntrlc.cc misc.cc # stuff for MP MPSR_SOURCES = mpsr_Put.cc mpsr_PutPoly.cc mpsr_GetPoly.cc mpsr_sl.cc\ mpsr_Get.cc mpsr_GetMisc.cc mpsr_Error.cc \ # stuff for dbm DBMSR_SOURCES = ndbm.cc sing_dbm.cc # normal C source files CSOURCES= # C++ sources which are used if part of the kernel are dynamically linked DL_KERNEL_SOURCES=slInit_Dynamic.cc # C++ sources which are used for dynamic libraries if part of the kernel is # dynamically linked DL_LIB_SOURCES= # C++ sources which are used if no parts of the kernel are dynamically linked STATIC_SOURCES=slInit_Static.cc # C++ sources for which both, shared and static object files are needed COMMON_SOURCES = $(MPSR_SOURCES) $(DBMSR_SOURCES) # special C++ source files (need extra compiling and/or linking), for which # dependencies should be generated ESOURCES=mmalloc.cc iparith.cc $(COMMON_SOURCES) \ $(DL_KERNEL_SOURCES) $(DL_LIB_SOURCES) $(STATIC_SOURCES) SOURCES=${CSOURCES} ${CXXSOURCES} \ grammar.y scanner.l libparse.l prCopyTemplate.cc \ p_Delete__T.cc p_ShallowCopyDelete__T.cc \ p_Copy__T.cc p_Mult_nn__T.cc pp_Mult_nn__T.cc \ pp_Mult_mm__T.cc p_Mult_mm__T.cc \ p_Minus_mm_Mult_qq__T.cc p_Add_q__T.cc \ p_Neg__T.cc pp_Mult_Coeff_mm_DivSelect__T.cc \ pp_Mult_Coeff_mm_DivSelectMult__T.cc \ p_Merge_q__T.cc pp_Mult_mm_Noether__T.cc\ p_kBucketSetLm__T.cc \ kInline.cc utils.cc utils.h \ tesths.cc mpsr_Tok.cc claptmpl.cc HEADERS=lists.h attrib.h \ mpsr_Tok.h \ ipconv.h \ subexpr.h ipid.h \ cntrlc.h ipprint.h sdb.h \ ipshell.h tok.h \ fast_maps.h \ silink.h \ fglm.h sing_dbm.h \ mpsr.h mpsr_sl.h\ mpsr_Get.h kmatrix.h janet.h\ mpsr_Put.h\ dbm_sl.h libparse.h \ gms.h pcv.h eigenval_ip.h \ feOpt.h fegetopt.h distrib.h walk.h \ static.h\ omSingularConfig.h DISTFILES=${SOURCES} ${HEADERS} ${ESOURCES} \ Makefile.in configure.in configure \ mod2.h.in grammar.h testgh install-sh mkinstalldirs \ check_aso.pl prCopy.pl OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o) ifeq ($(SINGUNAME),ix86-Win) OBJS := $(OBJS) Singular_res.o endif P_PROCS_MODULES = FieldZp FieldIndep FieldQ FieldGeneral ifeq ($(DL_KERNEL),1) OBJS := $(OBJS) $(DL_KERNEL_SOURCES:.cc=.o) DBMSR_SO= dbmsr.so DL_LIBS := $(DBMSR_SO) ifeq ($(HAVE_MPSR), 1) MPSR_SO = mpsr.so DL_LIBS := $(DL_LIBS) $(MPSR_SO) endif else ifndef LD_STATIC LIBS := $(MP_LIBS) $(LIBS) endif OBJS := $(OBJS) $(STATIC_SOURCES:.cc=.o) $(COMMON_SOURCES:.cc=.o) DL_LIBS= endif # # Singular libraries which go into distribution # MAKE SURE THAT THIS IS UP_TO_DATE # SLIB0 = COPYING \ ainvar.lib alexpoly.lib algebra.lib all.lib brnoeth.lib \ classify.lib control.lib \ deform.lib elim.lib equising.lib finvar.lib gmspoly.lib \ gmssing.lib \ general.lib graphics.lib groups.lib hnoether.lib homolog.lib \ inout.lib \ intprog.lib latex.lib linalg.lib makedbm.lib matrix.lib \ mprimdec.lib \ mondromy.lib mregular.lib normal.lib ntsolve.lib \ poly.lib presolve.lib primdec.lib primitiv.lib qhmoduli.lib \ random.lib reesclos.lib ring.lib rinvar.lib sing.lib \ solve.lib spcurve.lib spectrum.lib standard.lib stratify.lib \ surf.lib toric.lib triang.lib zeroset.lib help.cnf PLIBS = center.lib gkdim.lib involution.lib ncall.lib ncalg.lib ncdecomp.lib nctools.lib qmatrix.lib ifdef HAVE_PLURAL SLIBS = ${SLIB0} ${PLIBS} else SLIBS = ${SLIB0} endif SLIBS_FILES = $(addprefix LIB/,${SLIBS}) GFTABLES = $(wildcard LIB/gftables/[1-9]*) ## ## Build Targets ## .l.cc: @if test "x${LEX}" = x; then \ echo Error: no lex given, could not rebuilt scanner.cc;\ exit 1; \ fi ${LEX} -s -I -t $< > scanner.cc.lmp cp scanner.cc.lmp scanner.cc .y.cc: @if test "x${BISON}" = x; then \ echo Error: no bison given, could not rebuilt grammar.cc;\ exit 1; \ fi ${BISON} -d -t -o grammar.cc $< chmod +x testgh ./testgh .cc.o: ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $< .c.o: ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< %.dl_o : %.cc ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -c $< -o $@ all: $(SING_EXEC) Singular-static: version.h sleep 1 echo "#define HAVE_STATIC" > static.h (cd ../kernel;${MAKE} LD_STATIC=1 install-bindist;cd ..//Singular) ${MAKE} LD_STATIC=1 S_EXT="-static" Singular-static echo "#undef HAVE_STATIC" > static.h Singular${S_EXT}: mod2.h Makefile version.h scanner.cc ${OBJS} mmalloc.o \ iparith.o tesths.cc libparse.cc claptmpl.o mpsr_Tok.o $(DL_LIBS) ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} \ -o Singular${S_EXT} \ tesths.cc iparith.o mpsr_Tok.o claptmpl.o\ ${OBJS} ${LDFLAGS} ${LIBS} -lomalloc_ndebug mmalloc.o %.static: version.h ${MAKE} DL_KERNEL=0 S_EXT=".static" $@ iparith.o mpsr_Tok.o : iparith.inc mpsr_Tok.inc cntrlc.o cntrlc.og : feOptES.inc feOptTS.inc feOpt.inc claptmpl.o: claptmpl.cc mod2.h ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${DEFS} -c $< iparith.inc mpsr_Tok.inc: claptmpl.o iparith.cc mmalloc.o\ ipconv.cc tok.h mpsr_Tok.cc grammar.h mod2.h ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} -DGENTABLE \ -o gentable claptmpl.o iparith.cc tesths.cc mpsr_Tok.cc \ ${OBJS} ${LDFLAGS} ${LIBS} -lomalloc_ndebug mmalloc.o ./gentable /bin/rm -f gentable gentable.exe version.h: ${SOURCES} ${HEADERS} Makefile.in mod2.h.in \ configure.in echo "#define feVersionId " `date '+%Y%m%d%H'` >version.h libparse: libparse_main.o utils.o fegetopt.o ${CXX} ${CPPFLAGS} -DSTANDALONE_PARSER -o libparse libparse_main.o utils.o fegetopt.o ${LDFLAGS2} -lomalloc_ndebug libparse_main.o: libparse.cc ${CXX} ${CPPFLAGS} -c -o libparse_main.o libparse.cc -DSTANDALONE_PARSER libparse.cc: libparse.l @if test "x${LEX}" = x; then \ echo Error: no lex given, could not rebuilt libparse.cc;\ exit 1; \ fi ${LEX} -I -Pyylp -t libparse.l >libparse.cc.lmp cp libparse.cc.lmp libparse.cc # Hmm compiling with -fomit-frame-pointer resulted in access violation # under cygwin ESingular: fegetopt.o mod2.h feOpt.cc version.h emacs.cc \ feOptES.inc mmalloc.o ${CXX} -O2 ${CPPFLAGS} ${DEFS} -DESINGULAR -o ESingular emacs.cc fegetopt.o \ ${LDFLAGS} -lomalloc_ndebug mmalloc.o TSingular: fegetopt.o mod2.h feOpt.cc version.h emacs.cc \ feOptTS.inc mmalloc.o ${CXX} -O2 ${CPPFLAGS} ${DEFS} -DTSINGULAR -o TSingular emacs.cc fegetopt.o \ ${LDFLAGS} -lomalloc_ndebug mmalloc.o feOpt.o: feOpt.inc feOptES.inc feOptTS.inc extra.o: feOpt.inc feOpt.inc: feOpt.cc mod2.h feOpt.h $(CXX) -DGENERATE_OPTION_INDEX feOpt.cc -o feOpt ./feOpt /bin/rm -f feOpt feOpt.exe feOptES.inc: feOpt.cc mod2.h feOpt.h $(CXX) -DGENERATE_OPTION_INDEX -DESINGULAR feOpt.cc -o feOpt ./feOpt rm -f feOpt feOpt.exe feOptTS.inc: feOpt.cc mod2.h feOpt.h $(CXX) -DGENERATE_OPTION_INDEX -DTSINGULAR feOpt.cc -o feOpt ./feOpt rm -f feOpt feOpt.exe mpsr.so: $(MPSR_SOURCES:.cc=.dl_o) $(LD) ${SLDFLAGS} -o $@ $^ -L${libdir} ${MP_LIBS} dbmsr.so: $(DBMSR_SOURCES:.cc=.dl_o) $(LD) ${SLDFLAGS} -o $@ $^ src: scanner.cc grammar.h grammar.cc libparse.cc mod2.h: stamp-h stamp-h : config.status mod2.h.in CONFIG_FILES= CONFIG_HEADERS="mod2.h" ./config.status Makefile: Makefile.in config.status CONFIG_FILES="Makefile" CONFIG_HEADERS= ./config.status config.status: configure ./config.status --recheck configure: configure.in @echo "WARNING: You need to rerun autoconf. I am proceeding, for now." @touch configure # autoconf ifeq ($(SINGUNAME),ix86-Win) ## ## windows only targets ## ## resources Singular.rc: Singular.rc.in config.status CONFIG_FILES="Singular.rc" CONFIG_HEADERS= ./config.status ESingular_res.o: Singular.rc windres -DESINGULAR -i Singular.rc -o ESingular_res.o TSingular_res.o: Singular.rc windres -DTSINGULAR -i Singular.rc -o TSingular_res.o Singular_res.o: Singular.rc windres -DSINGULAR -i Singular.rc -o Singular_res.o ## run run.o: run.c run.h gcc -c -I. -O2 run.c -o run.o runTSingular : run.o TSingular_res.o gcc -mwindows -e _mainCRTStartup run.o TSingular_res.o -o runTSingular.exe runESingular : run.o ESingular_res.o gcc -mwindows -e _mainCRTStartup run.o ESingular_res.o -o runESingular.exe RUN_SINGULARS=runESingular runTSingular endif ## ## install targets ## install: all installbin installslib installbin: ${SING_EXEC} libparse ESingular TSingular ${RUN_SINGULARS} ${MKINSTALLDIRS} ${bindir} ${INSTALL_PROGRAM} ${SING_EXEC} ${SINGULAR} -${INSTALL_PROGRAM} *.so ${bindir} ${INSTALL_PROGRAM} libparse ${RUN_SINGULARS} ${bindir} ${INSTALL_PROGRAM} ESingular TSingular ${DL_LIBS} ${bindir} chmod a+x ${SINGULAR} rm -f ${bindir}/${SING_EXEC}${EXEC_EXT} cd ${bindir}; ${LN_S} ${SINGULAR} Singular${EXEC_EXT}; installslib: LIB test -r ${slibdir} || ${LN_S} `pwd`/LIB ${slibdir} uninstall: uninstallbin uninstallbin: rm -f ${bindir}/Singular${EXEC_EXT} rm -f ${SINGULAR} -rmdir ${bindir} ## ## clean targest ## mostlyclean: -rm -f Singular Singular-static Singulara Singularg Singularp Singularb libparse feOpt*.inc -rm -f *.o *.og core *.op *.ob *.ot Singulart *.od *_d.cc *_d.c *.so* -rm -f ESingular* TSingular* clean: mostlyclean -rm -f *.bak *.d *.dd depend -rm -f ${slibdir} distclean: clean -rm -f iparith.inc mpsr_Tok.inc stamp.h -rm -f Singular* *.gprof *.bprof *~ .\#* version.h -rm -f mod2.h Makefile TAGS* tags config.status config.cache config.log srcclean: @echo "This command is intended for maintainers to use;" @echo "Rebuilding the deleted files requires flex" @echo "bison, perl" -rm -f scanner.cc grammar.h grammar.cc libparse.cc maintainer-clean: distclean srcclean @echo "This command is intended for maintainers to use;" @echo "Rebuilding the deleted files requires flex" @echo "bison, perl and autoconf" -rm configure ## ## miscellanous targets ## install-bindist: $(HEADERS) $(SOURCES) Makefile depend echo "#define MAKE_DISTRIBUTION " > distrib.h sleep 1 ${MAKE} ${SING_EXEC} ESingular TSingular libparse ${RUN_SINGULARS} ${MKINSTALLDIRS} ${install_bindir} ${INSTALL_PROGRAM} -s ${SING_EXEC} ${install_bindir}/Singular -${INSTALL_PROGRAM} *.so ${install_bindir} ${INSTALL_PROGRAM} -s libparse ${RUN_SINGULARS} ESingular TSingular ${DL_LIBS} ${install_bindir} echo "#undef MAKE_DISTRIBUTION " > distrib.h install-bindist-plural: install-bindist install-sharedist-plural: install-sharedist install-sharedist: ${SLIBS_FILES} LIB/gftables ${MKINSTALLDIRS} ${install_slibdir} cp ${SLIBS_FILES} ${install_slibdir} ${MKINSTALLDIRS} ${install_slibdir}/gftables cp ${GFTABLES} ${install_slibdir}/gftables chmod -R +rX ${install_slibdir}/* tar: tar cf Singular-${SINGULAR_VERSION}-src.tar ${DISTFILES} gzip -f Singular-${SINGULAR_VERSION}-src.tar backup: tar mcopy -o Singular-${SINGULAR_VERSION}-src.tar.gz a: TAGS: ${SOURCES} ${ESOURCES} ${HEADERS} etags ${SOURCES} ${ESOURCES} ${HEADERS} tags: ctags *.y *.[lch] *.cc *.inc ../kernel/*.[ch] ../kernel/*.cc ../kernel/*.inc echoLIBS: @echo ${SLIBS} ## ## Below here is stuff for developpers ################################################################# ## ## .og files for having -O and -g object versions available at the same time ## OBJG1 := $(CXXSOURCES:.cc=.og) OBJG2 := $(CSOURCES:.c=.og) OBJP1 := $(CXXSOURCES:.cc=.op) OBJP2 := $(CSOURCES:.c=.op) OBJB1 := $(CXXSOURCES:.cc=.ob) OBJB2 := $(CSOURCES:.c=.ob) OBJT1 := $(CXXSOURCES:.cc=.ot) OBJT2 := $(CSOURCES:.c=.ot) OBJA1 := $(CXXSOURCES:.cc=.oa) OBJA2 := $(CSOURCES:.c=.oa) OBJG=$(OBJG1) $(OBJG2) OBJP=$(OBJP1) $(OBJP2) OBJB=$(OBJB1) $(OBJB2) OBJT=$(OBJT1) $(OBJT2) OBJA=$(OBJA1) $(OBJA2) DL_TAILG=\"sog\" DL_TAILP=\"sop\" DL_TAILB=\"sob\" DL_TAILT=\"sot\" DL_TAILA=\"soa\" ifeq ($(DL_KERNEL),1) OBJG := $(OBJG) $(DL_KERNEL_SOURCES:.cc=.og) DL_LIBSG := $(MPSR_SO:%.so=%.sog) $(DBMSR_SO:%.so=%.sog) OBJP := $(OBJP) $(DL_KERNEL_SOURCES:.cc=.op) DL_LIBSP := $(MPSR_SO:%.so=%.sop) $(DBMSR_SO:%.so=%.sop) OBJB := $(OBJB) $(DL_KERNEL_SOURCES:.cc=.ob) DL_LIBSB := $(MPSR_SO:%.so=%.sob) $(DBMSR_SO:%.so=%.sob) OBJT := $(OBJT) $(DL_KERNEL_SOURCES:.cc=.ot) DL_LIBST := $(MPSR_SO:%.so=%.sot) $(DBMSR_SO:%.so=%.sot) OBJA := $(OBJA) $(DL_KERNEL_SOURCES:.cc=.oa) DL_LIBSA := $(MPSR_SO:%.so=%.soa) $(DBMSR_SO:%.so=%.soa) else OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og) $(COMMON_SOURCES:.cc=.og) DL_LIBSG= OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) $(COMMON_SOURCES:.cc=.op) DL_LIBSP= OBJB := $(OBJB) $(STATIC_SOURCES:.cc=.ob) $(COMMON_SOURCES:.cc=.ob) DL_LIBSB= OBJT := $(OBJT) $(STATIC_SOURCES:.cc=.ot) $(COMMON_SOURCES:.cc=.ot) DL_LIBST= OBJA := $(OBJA) $(STATIC_SOURCES:.cc=.oa) $(COMMON_SOURCES:.cc=.oa) DL_LIBST= endif ## ## compiler and linker options for debug version ## CCG = gcc CXXG = @CXX@ CXXM = gcc -MM -MG -DGENERATE_DEPEND CCM = gcc -MM -MG -DGENERATE_DEPEND CFLAGSG = -g -Wall -Wno-unused ${PIPE} CXXFLAGSG = -g -Wall -Wno-unused ${PIPE} CXXTEMPLFLAGSG = -fno-implicit-templates DEFSG = -D@SING_UNAME@ @DEFS@ -DDL_TAIL=$(DL_TAILG) ## ## Debug Targets ## %.dl_og: %.cc ${CXXG} ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} ${SFLAGS} -c $< -o $@ mpsr.sog: $(MPSR_SOURCES:.cc=.dl_og) ${CXXG} ${CXXFLAGSG} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} dbmsr.sog: $(DBMSR_SOURCES:.cc=.dl_og) ${CXXG} ${CXXFLAGSG} ${SFLAGS} ${SLDFLAGS} ${LDFLAGS} -o $@ $^ ${MP_LIBS} claptmpl.og: claptmpl.cc mod2.h $(CXXG) ${CXXFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@ %.og: %.cc $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@ $(OBJG2) : %.og: %.c $(CCG) ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@ Singularg${S_EXT}: scanner.cc $(OBJG) mmalloc.og $(DL_LIBSG)\ iparith.og mpsr_Tok.og claptmpl.og tesths.cc version.h $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -o Singularg${S_EXT} \ tesths.cc iparith.og mpsr_Tok.og claptmpl.og $(OBJG) ${LDFLAGSG} ${LIBS} -lomalloc mmalloc.og \ ${LD_DYN_FLAGS} ${LD_LIBC} iparith.og: iparith.inc iparith.cc $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGS} ${DEFSG} -c iparith.cc -o iparith.og mpsr_Tok.og: iparith.inc mpsr_Tok.cc $(CXXG) ${CXXFLAGSG} ${CPPFLAGS} ${CXXTEMPLFLAGSG} ${DEFSG} -c mpsr_Tok.cc -o mpsr_Tok.og installg: Singularg ${MKINSTALLDIRS} ${bindir} ${INSTALL_PROGRAM} Singularg ${bindir} ESingularg: fegetopt.og mod2.h feOpt.cc version.h emacs.cc \ feOptES.inc mmalloc.og ${CXXG} ${CXXFLAGSG} ${CPPFLAGS} -DESINGULAR -g ${DEFSG} -o ESingularg emacs.cc fegetopt.og ${LDFLAGS} ${LIBS} -lomalloc mmalloc.og ## ## compiler and linker options for profile version ## CCP = gcc CXXP = @CXX@ CFLAGSP = -pg -O3 ${PIPE} CXXFLAGSP = -pg -O3 ${PIPE} CXXTEMPLFLAGSP = -fno-implicit-templates DEFSP = -DNDEBUG -DOM_NDEBUG -DDO_PROFILE -D@SING_UNAME@ @DEFS@ -DDL_TAIL=$(DL_TAILP) LDFLAGSP = -static @LDFLAGS@ CFLAGSB = -g -O3 ${PIPE} CXXFLAGSB = -g -O3 ${PIPE} CXXTEMPLFLAGSB = -fno-implicit-templates DEFSB = -D@SING_UNAME@ -DOM_NDEBUG -DNDEBUG @DEFS@ -DDL_TAIL=$(DL_TAILB) LDFLAGSB = -static @LDFLAGS@ # bprof object file to link with BPROFOBJ = /usr/local/lib/bmon.o DEFST = -DNO_INLINE -DNDEBUG -D@SING_UNAME@ -DOM_TRACK=2 -DOM_CHECK=0 @DEFS@ -DDL_TAIL=$(DL_TAILT) LDFLAGST = @LDFLAGS@ CFLAGST = -g -O2 -w ${PIPE} CXXFLAGST = -g -O2 -w ${PIPE} ## ## op and ob files for gprof and bprof, ot for mtrack, oc for OMCHECK=1 ## ## ## check_aso ## check_aso: ${PERL} check_aso.pl $(SOURCES) ## ## dependencies ## %.dd: %.cc mod2.h 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)" " \\ > $@ $(CXXM) -DGENTABLE ${CPPFLAGS} ${DEFSG} $< >> $@ %.d: %.c mod2.h echo $(@:.d=.og) $(@:.d=.od) $(@:.dd=_d.c) $(@:.d=.op) $(@:.d=.ob) $(@:.d=.ot) $(@:.d=.oa)" " \\ > $@ $(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@ depend: $(CXXSOURCES:.cc=.dd) $(ESOURCES:.cc=.dd) $(CSOURCES:.c=.d) mod2.h claptmpl.dd -cat *.d >depend -cat *.dd >>depend ifeq (depend,$(wildcard depend)) include depend endif