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

Annotation of OpenXM/src/gmp/Makefile, Revision 1.14

1.14    ! ohara       1: # $OpenXM: OpenXM/src/gmp/Makefile,v 1.13 2007/02/18 05:31:58 ohara Exp $
1.1       takayama    2: OpenXM_HOME=../..
1.7       takayama    3: PREFIX=${OpenXM_HOME}
                      4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
1.10      ohara       5: RM = /bin/rm
1.8       ohara       6: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.14    ! ohara       7: DISTNAME=gmp-4.2.1
        !             8: DISTFILES=${DISTNAME}.tar.gz
        !             9: WRKSRC=work/${DISTNAME}
        !            10: PATCHFILES = gmp.diff
1.7       takayama   11:
                     12: all : build
                     13:
                     14: fetch:
1.10      ohara      15:        -mkdir work
                     16:        @if [ ! -f work/.fetch_done ]; then \
1.8       ohara      17:                ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
1.7       takayama   18:        fi
1.10      ohara      19:        @touch work/.fetch_done
1.7       takayama   20:
1.8       ohara      21: extract: fetch
1.10      ohara      22:        @if [ ! -f work/.extract_done ]; then \
1.8       ohara      23:            cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
1.7       takayama   24:        fi
1.10      ohara      25:        @touch work/.extract_done
1.8       ohara      26:
                     27: patch: extract
1.14    ! ohara      28:        @if [ ! -f work/.patch_done ]; then \
        !            29:         for i in ${PATCHFILES} ; do \
        !            30:                cat $$i | (cd ${WRKSRC}; patch -p0) ; \
        !            31:         done ; \
        !            32:         if [ `uname` = Darwin -a `uname -m` = i386 ]; then \
        !            33:             (cd ${WRKSRC}/mpn/x86; ${RM} *dive_1* */*dive_1* */*/*dive_1* */*mode1o* */*/*mode1o*) ; \
        !            34:         fi ; \
        !            35:        fi
1.10      ohara      36:        @touch work/.patch_done
1.7       takayama   37:
1.9       takayama   38: configure: patch
1.10      ohara      39:        @if [ ! -f work/.configure_done ]; then \
1.11      ohara      40:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.14    ! ohara      41:                (cd ${WRKSRC} ; CC=${CC} ./configure --prefix="$$prefix" --enable-cxx) ; \
1.9       takayama   42:        fi
1.10      ohara      43:        @touch work/.configure_done
1.9       takayama   44:
                     45: build : configure
1.10      ohara      46:        @if [ ! -f work/.build_done ]; then \
1.14    ! ohara      47:                (cd ${WRKSRC} ; ${MAKE} CC=${CC}) ; \
1.7       takayama   48:        fi
1.10      ohara      49:        @touch work/.build_done
1.7       takayama   50:
1.8       ohara      51: install: build
                     52:        -mkdir ${PREFIX}/bin ${PREFIX}/lib
1.10      ohara      53:        @if [ ! -f work/.install_done ]; then \
1.14    ! ohara      54:                (cd ${WRKSRC} ; ${MAKE} install) ; \
1.13      ohara      55:                for i in config.h gmp-impl.h gmp-mparam.h fib_table.h mp_bases.h; do \
1.14    ! ohara      56:                        cp ${WRKSRC}/$$i ${OpenXM_HOME}/include ; \
1.8       ohara      57:                done ; \
1.7       takayama   58:        fi
1.10      ohara      59:        @touch work/.install_done
1.7       takayama   60:
                     61: clean:
1.14    ! ohara      62:        -${RM} -rf work
1.8       ohara      63:
                     64: distclean: clean

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