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

Annotation of OpenXM/src/gc/Makefile, Revision 1.26

1.26    ! takayama    1: # $OpenXM: OpenXM/src/gc/Makefile,v 1.25 2015/09/27 10:50:23 takayama Exp $
1.1       takayama    2: OpenXM_HOME=../..
1.7       takayama    3: PREFIX=${OpenXM_HOME}
                      4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
1.8       ohara       5: RM = /bin/rm
1.22      ohara       6: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.14      takayama    7: # Original. http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
1.24      ohara       8: #DISTNAME=gc-20150803-git
                      9: DISTNAME=gc-7.4.2
                     10: ATOMIC=libatomic_ops-7.4.0
                     11: DISTFILES=${DISTNAME}.tar.gz ${ATOMIC}.tar.gz
                     12: WRKSRC=work/${DISTNAME}
                     13: # WRKSRC=work/gc-20150803-git/bdwgc
1.23      takayama   14: #PATCHFILES = ${OpenXM_HOME}/../OpenXM_contrib2/asir2000/gc-7.diff
1.26    ! takayama   15: PATCHFILES = gc-cygwin64.diff
1.7       takayama   16:
1.9       ohara      17: all : build
1.7       takayama   18:
                     19: fetch:
1.9       ohara      20:        -mkdir work
                     21:        @if [ ! -f work/.fetch_done ]; then \
1.24      ohara      22:                for i in ${DISTFILES}; do ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}$$i ${DISTDIR}; done ; \
1.9       ohara      23:        fi
                     24:        @touch work/.fetch_done
1.3       takayama   25:
1.8       ohara      26: extract: fetch
1.9       ohara      27:        @if [ ! -f work/.extract_done ]; then \
1.24      ohara      28:                for i in ${DISTFILES}; do cat ${DISTDIR}/$$i | (cd work; tar xzvf -) ; done ; \
1.18      ohara      29:                chmod +x ${WRKSRC}/install-sh ; \
1.9       ohara      30:        fi
1.25      takayama   31:        -(cd ${WRKSRC}; ln -sf ../${ATOMIC} libatomic_ops)
1.9       ohara      32:        @touch work/.extract_done
1.8       ohara      33:
                     34: patch: extract
1.9       ohara      35:        @if [ ! -f work/.patch_done ]; then \
1.15      ohara      36:         for i in ${PATCHFILES} ; do \
1.26    ! takayama   37:                cat $$i | (cd ${WRKSRC}; patch -p0) ; \
1.15      ohara      38:         done ; \
1.9       ohara      39:        fi
                     40:        @touch work/.patch_done
                     41:
                     42: configure : patch
                     43:        @if [ ! -f work/.configure_done ]; then \
1.10      ohara      44:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.25      takayama   45:                if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.26    ! takayama   46:                  make configure-cygwin ; \
1.25      takayama   47:                elif [  "`uname | sed -e 's/_.*$$//'`" = "MSYS" ];  then \
                     48:                  make configure-msys ; \
                     49:                else \
                     50:                  make configure-others ; \
                     51:                fi ; \
1.8       ohara      52:        fi
1.9       ohara      53:        @touch work/.configure_done
1.1       takayama   54:
1.25      takayama   55: configure-cygwin:
                     56:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
1.26    ! takayama   57:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix )
1.25      takayama   58: configure-msys:
                     59:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
1.26    ! takayama   60:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix --build=x86_64-w64-mingw32  )
1.25      takayama   61: configure-others:
                     62:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
                     63:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix )
                     64:
1.9       ohara      65: build : configure
                     66:        @if [ ! -f work/.build_done ]; then \
1.12      ohara      67:                (cd ${WRKSRC}; ${MAKE}) ; \
1.1       takayama   68:        fi
1.9       ohara      69:        @touch work/.build_done
1.6       ohara      70:
1.8       ohara      71: install: build
1.9       ohara      72:        @if [ ! -f work/.install_done ]; then \
1.12      ohara      73:                (cd ${WRKSRC}; ${MAKE} install) ; \
1.6       ohara      74:        fi
1.9       ohara      75:        @touch work/.install_done
1.6       ohara      76:
1.7       takayama   77: clean:
1.8       ohara      78:        -$(RM) -rf work
                     79:
                     80: distclean: clean

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