[BACK]Return to GEN_Make.SH CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari-2.2 / config

Annotation of OpenXM_contrib/pari-2.2/config/GEN_Make.SH, Revision 1.1

1.1     ! noro        1: dir=examples
        !             2: name=Makefile.$osname-$arch
        !             3: file=$dir/$name
        !             4: lnfile=Makefile
        !             5:
        !             6: echo Extracting $file
        !             7: rm -f $file $dir/$lnfile
        !             8:
        !             9: case "$runpathprefix" in
        !            10:   -R)       RUNPTH="-R$runpath";;
        !            11:   *-rpath*) RUNPTH="$runpathprefix $runpath";;
        !            12: esac
        !            13:
        !            14: if test -z "$DLLD"; then static=y; fi
        !            15: case "$static" in
        !            16:   n) dft=dyn ;;
        !            17:   y) dft=sta ;;
        !            18: esac
        !            19:
        !            20: # remove soname imformation
        !            21: MYDLLDFLAGS=`echo $DLLDFLAGS | sed -e 's/-[hsoname]* \\$(LIBPARI.*)//'`
        !            22:
        !            23: cat > $file << EOT
        !            24: # Generic Makefile for PARI programs -- $pretty
        !            25: #
        !            26: #  This file was created by Configure. Any change made to it will be
        !            27: #  lost when Configure is run.
        !            28: #
        !            29: # make all will create
        !            30: #  matexp-dyn (linked dynamically with libpari)
        !            31: #  matexp-sta (linked statically)
        !            32: #  libmatexp.so (to be used by "install" under GP)
        !            33: #
        !            34: # Under GP: install(matexp, Gp, mexp, "./libmatexp.so") enables you to
        !            35: # subsequently use mexp to call matexp (see the reference manual).
        !            36: #
        !            37:
        !            38: # change this TARGET to compile your own programs
        !            39: TARGET = matexp
        !            40: SHELL  = $make_sh
        !            41:
        !            42: DBGFLAGS   = $DBGFLAGS $CFLAGS
        !            43: CFLAGS     = $OPTFLAGS $CFLAGS
        !            44: #CFLAGS    = \$(DBGFLAGS)
        !            45:
        !            46: # Various linkers use different flags to force static compilation. Choose
        !            47: # the one which is relevant for your installation.
        !            48: #
        !            49: # Solaris ld (global)
        !            50: #STATIC    = -dn
        !            51:
        !            52: # Solaris ld (toggle: no shared object accepted until -B dynamic is seen
        !            53: #STATIC    = -B static
        !            54:
        !            55: # gcc
        !            56: #STATIC    = -static
        !            57:
        !            58: CC         = $CC
        !            59: CPPFLAGS   = -I. -I$includedir
        !            60: LD         = $LD
        !            61: LDFLAGS    = $LDFLAGS
        !            62: DLLD       = $DLLD
        !            63: DLLDFLAGS  = $MYDLLDFLAGS
        !            64: EXTRADLLDFLAGS  = $EXTRADLLDFLAGS
        !            65: EXTRALIBS  =
        !            66:
        !            67: RUNPTH     = $RUNPTH
        !            68: LIBDIR     = -L$libdir
        !            69: DLCFLAGS   = $DLCFLAGS
        !            70: LIBS       = $LIBS -lpari
        !            71:
        !            72: RM = rm -f
        !            73:
        !            74:
        !            75: OBJS = \$(TARGET).o
        !            76: DYN = lib\$(TARGET).$DLSUFFIX
        !            77: ALL = \$(TARGET)-sta \$(TARGET)-dyn \$(DYN)
        !            78:
        !            79: dft: \$(TARGET)-$dft
        !            80:
        !            81: all: \$(ALL)
        !            82:
        !            83: sta: \$(TARGET)-sta
        !            84:
        !            85: dyn: \$(TARGET)-dyn
        !            86:
        !            87: dynlib: \$(DYN)
        !            88:
        !            89: \$(DYN): \$(OBJS)
        !            90:        \$(DLLD) -o \$@ \$(DLLDFLAGS) \$(OBJS) \$(EXTRADLLDFLAGS)
        !            91:
        !            92: \$(TARGET)-sta: \$(OBJS)
        !            93:        \$(LD) -o \$@ \$(LDFLAGS) \$< \$(LIBDIR) \$(EXTRALIBS) \$(STATIC) \$(LIBS)
        !            94:
        !            95: \$(TARGET)-dyn: \$(OBJS)
        !            96:        \$(LD) -o \$@ \$(LDFLAGS) \$< \$(RUNPTH) \$(LIBDIR) \$(LIBS)
        !            97:
        !            98: %.o: %.c
        !            99:        \$(CC) -c \$(CFLAGS) \$(CPPFLAGS) \$<
        !           100: clean:
        !           101:        -\$(RM) *.o \$(ALL)
        !           102: EOT
        !           103:
        !           104: ( cd $dir ; $ln_s $name $lnfile )
        !           105:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>