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

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

1.30    ! fujimoto    1: # $OpenXM: OpenXM/src/gc/Makefile,v 1.29 2020/01/09 12:15:00 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.30    ! fujimoto   43:                if [ -z $TARGET_TYPE ]; then \
        !            44:                        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
        !            45:                          make configure-cygwin ; \
        !            46:                        elif [  "`uname | sed -e 's/_.*$$//'`" = "MSYS" ];  then \
        !            47:                          make configure-msys ; \
        !            48:                        else \
        !            49:                          make configure-others ; \
        !            50:                        fi ; \
1.25      takayama   51:                else \
1.30    ! fujimoto   52:                  make configure-cross ; \
1.25      takayama   53:                fi ; \
1.8       ohara      54:        fi
1.9       ohara      55:        @touch work/.configure_done
1.1       takayama   56:
1.25      takayama   57: configure-cygwin:
                     58:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
1.26      takayama   59:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix )
1.25      takayama   60: configure-msys:
                     61:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
1.26      takayama   62:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix --build=x86_64-w64-mingw32  )
1.25      takayama   63: configure-others:
                     64:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
                     65:        (cd ${WRKSRC}; ./configure --disable-threads --prefix=$$prefix )
1.30    ! fujimoto   66: configure-cross:
        !            67:        prefix=`cd ${OpenXM_HOME}; pwd`  ; \
        !            68:        (cd ${WRKSRC}; ./configure --host=${TARGET_TYPE} --disable-threads --prefix=$$prefix )
1.25      takayama   69:
1.9       ohara      70: build : configure
                     71:        @if [ ! -f work/.build_done ]; then \
1.12      ohara      72:                (cd ${WRKSRC}; ${MAKE}) ; \
1.1       takayama   73:        fi
1.9       ohara      74:        @touch work/.build_done
1.6       ohara      75:
1.8       ohara      76: install: build
1.9       ohara      77:        @if [ ! -f work/.install_done ]; then \
1.12      ohara      78:                (cd ${WRKSRC}; ${MAKE} install) ; \
1.6       ohara      79:        fi
1.9       ohara      80:        @touch work/.install_done
1.6       ohara      81:
1.7       takayama   82: clean:
1.8       ohara      83:        -$(RM) -rf work
                     84:
                     85: distclean: clean

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