[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / mpfr

Annotation of OpenXM/src/mpfr/Makefile, Revision 1.6

1.6     ! fujimoto    1: # $OpenXM: OpenXM/src/mpfr/Makefile,v 1.5 2015/09/28 12:30:57 takayama Exp $
1.1       takayama    2: OpenXM_HOME=../..
                      3: PREFIX=${OpenXM_HOME}
                      4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
                      5: RM = /bin/rm
1.2       ohara       6: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.3       noro        7: DISTNAME=mpfr-3.1.3
                      8: DISTFILES=${DISTNAME}.tar.bz2
1.1       takayama    9: WRKSRC=work/${DISTNAME}
                     10: #PATCHFILES = mpfr.diff
                     11: PATCHFILES =
                     12:
                     13: all : build
                     14:
                     15: fetch:
                     16:        -mkdir work
                     17:        @if [ ! -f work/.fetch_done ]; then \
                     18:                ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
                     19:        fi
                     20:        @touch work/.fetch_done
                     21:
                     22: extract: fetch
                     23:        @if [ ! -f work/.extract_done ]; then \
1.3       noro       24:            cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xjvf -) ; \
1.1       takayama   25:        fi
                     26:        @touch work/.extract_done
                     27:
                     28: patch: extract
                     29:        @if [ ! -f work/.patch_done ]; then \
                     30:         for i in ${PATCHFILES} ; do \
                     31:                cat $$i | (cd ${WRKSRC}; patch -p0) ; \
                     32:         done ; \
                     33:        fi
                     34:        @touch work/.patch_done
                     35:
1.4       takayama   36: configure : patch
1.1       takayama   37:        @if [ ! -f work/.configure_done ]; then \
                     38:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.6     ! fujimoto   39:                if [ -z $TARGET_TYPE ]; then \
        !            40:                        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
        !            41:                          make configure-cygwin ; \
        !            42:                        elif [  "`uname | sed -e 's/_.*$$//'`" = "MSYS" ];  then \
        !            43:                          make configure-msys ; \
        !            44:                        else \
        !            45:                          make configure-others ; \
        !            46:                        fi ; \
1.4       takayama   47:                else \
1.6     ! fujimoto   48:                  make configure-cross ; \
1.4       takayama   49:                fi ; \
1.1       takayama   50:        fi
                     51:        @touch work/.configure_done
                     52:
1.4       takayama   53: configure-cygwin:
                     54:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
                     55:        (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --disable-thread-safe --enable-static --disable-shared)
                     56: configure-msys:
                     57:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
1.5       takayama   58:        (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --disable-thread-safe --build=x86_64-w64-mingw32 --disable-thread-safe --enable-static --disable-shared )
1.4       takayama   59: configure-others:
                     60:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
                     61:        (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --disable-thread-safe)
1.6     ! fujimoto   62: configure-cross:
        !            63:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
        !            64:        (cd ${WRKSRC}; CC=${CC} ./configure --host=${TARGET_TYPE} --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --disable-thread-safe)
1.4       takayama   65:
1.1       takayama   66: build : configure
                     67:        @if [ ! -f work/.build_done ]; then \
                     68:                (cd ${WRKSRC} ; ${MAKE} CC=${CC}) ; \
                     69:        fi
                     70:        @touch work/.build_done
                     71:
                     72: install: build
                     73:        -mkdir ${PREFIX}/bin ${PREFIX}/lib
                     74:        @if [ ! -f work/.install_done ]; then \
                     75:                (cd ${WRKSRC} ; ${MAKE} install) ; \
                     76:        fi
                     77:        @touch work/.install_done
                     78:
                     79: clean:
                     80:        -${RM} -rf work
                     81:
                     82: distclean: clean

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