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

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

1.27    ! ohara       1: # $OpenXM: OpenXM/src/gc/Makefile,v 1.26 2015/09/28 05:52:13 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.27    ! ohara      14: PATCHFILES = ${OpenXM_HOME}/../OpenXM_contrib2/asir2018/gc-7.diff gc-cygwin64.diff
1.7       takayama   15:
1.9       ohara      16: all : build
1.7       takayama   17:
                     18: fetch:
1.9       ohara      19:        -mkdir work
                     20:        @if [ ! -f work/.fetch_done ]; then \
1.24      ohara      21:                for i in ${DISTFILES}; do ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}$$i ${DISTDIR}; done ; \
1.9       ohara      22:        fi
                     23:        @touch work/.fetch_done
1.3       takayama   24:
1.8       ohara      25: extract: fetch
1.9       ohara      26:        @if [ ! -f work/.extract_done ]; then \
1.24      ohara      27:                for i in ${DISTFILES}; do cat ${DISTDIR}/$$i | (cd work; tar xzvf -) ; done ; \
1.18      ohara      28:                chmod +x ${WRKSRC}/install-sh ; \
1.9       ohara      29:        fi
1.25      takayama   30:        -(cd ${WRKSRC}; ln -sf ../${ATOMIC} libatomic_ops)
1.9       ohara      31:        @touch work/.extract_done
1.8       ohara      32:
                     33: patch: extract
1.9       ohara      34:        @if [ ! -f work/.patch_done ]; then \
1.15      ohara      35:         for i in ${PATCHFILES} ; do \
1.27    ! ohara      36:                cat $$i | (cd ${WRKSRC}; patch -p1) ; \
1.15      ohara      37:         done ; \
1.9       ohara      38:        fi
                     39:        @touch work/.patch_done
                     40:
                     41: configure : patch
                     42:        @if [ ! -f work/.configure_done ]; then \
1.10      ohara      43:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.25      takayama   44:                if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.26      takayama   45:                  make configure-cygwin ; \
1.25      takayama   46:                elif [  "`uname | sed -e 's/_.*$$//'`" = "MSYS" ];  then \
                     47:                  make configure-msys ; \
                     48:                else \
                     49:                  make configure-others ; \
                     50:                fi ; \
1.8       ohara      51:        fi
1.9       ohara      52:        @touch work/.configure_done
1.1       takayama   53:
1.25      takayama   54: configure-cygwin:
                     55:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
1.26      takayama   56:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix )
1.25      takayama   57: configure-msys:
                     58:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
1.26      takayama   59:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix --build=x86_64-w64-mingw32  )
1.25      takayama   60: configure-others:
                     61:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
                     62:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix )
                     63:
1.9       ohara      64: build : configure
                     65:        @if [ ! -f work/.build_done ]; then \
1.12      ohara      66:                (cd ${WRKSRC}; ${MAKE}) ; \
1.1       takayama   67:        fi
1.9       ohara      68:        @touch work/.build_done
1.6       ohara      69:
1.8       ohara      70: install: build
1.9       ohara      71:        @if [ ! -f work/.install_done ]; then \
1.12      ohara      72:                (cd ${WRKSRC}; ${MAKE} install) ; \
1.6       ohara      73:        fi
1.9       ohara      74:        @touch work/.install_done
1.6       ohara      75:
1.7       takayama   76: clean:
1.8       ohara      77:        -$(RM) -rf work
                     78:
                     79: distclean: clean

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