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

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

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

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