Annotation of OpenXM/src/mpc/Makefile, Revision 1.4
1.4 ! fujimoto 1: # $OpenXM: OpenXM/src/mpc/Makefile,v 1.3 2015/09/28 12:30:57 takayama Exp $
1.1 noro 2: OpenXM_HOME=../..
3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
5: RM = /bin/rm
6: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
7: DISTNAME=mpc-1.0.3
8: DISTFILES=${DISTNAME}.tar.gz
9: WRKSRC=work/${DISTNAME}
10: PATCHFILES =
11:
12: all : build
13:
14: fetch:
15: -mkdir work
16: @if [ ! -f work/.fetch_done ]; then \
17: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
18: fi
19: @touch work/.fetch_done
20:
21: extract: fetch
22: @if [ ! -f work/.extract_done ]; then \
23: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
24: fi
25: @touch work/.extract_done
26:
27: patch: extract
28: @if [ ! -f work/.patch_done ]; then \
29: for i in ${PATCHFILES} ; do \
30: cat $$i | (cd ${WRKSRC}; patch -p0) ; \
31: done ; \
32: fi
33: @touch work/.patch_done
34:
1.2 takayama 35: configure : patch
1.1 noro 36: @if [ ! -f work/.configure_done ]; then \
37: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.4 ! fujimoto 38: if [ -z $TARGET_TYPE ]; then \
! 39: if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
! 40: make configure-cygwin ; \
! 41: elif [ "`uname | sed -e 's/_.*$$//'`" = "MSYS" ]; then \
! 42: make configure-msys ; \
! 43: else \
! 44: make configure-others ; \
! 45: fi ; \
1.2 takayama 46: else \
1.4 ! fujimoto 47: make configure-cross ; \
1.2 takayama 48: fi ; \
1.1 noro 49: fi
50: @touch work/.configure_done
51:
1.2 takayama 52: configure-cygwin:
53: prefix=`cd ${OpenXM_HOME}; pwd` ; \
54: (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --enable-static --disable-shared)
55: configure-msys:
56: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.3 takayama 57: (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --build=x86_64-w64-mingw32 --enable-static --disable-shared )
1.2 takayama 58: configure-others:
59: prefix=`cd ${OpenXM_HOME}; pwd` ; \
60: (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" )
1.4 ! fujimoto 61: configure-cross:
! 62: prefix=`cd ${OpenXM_HOME}; pwd` ; \
! 63: (cd ${WRKSRC}; CC=${CC} ./configure --host=${TARGET_TYPE} --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" )
1.2 takayama 64:
1.1 noro 65: build : configure
66: @if [ ! -f work/.build_done ]; then \
67: (cd ${WRKSRC} ; ${MAKE} CC=${CC}) ; \
68: fi
69: @touch work/.build_done
70:
71: install: build
72: -mkdir ${PREFIX}/bin ${PREFIX}/lib
73: @if [ ! -f work/.install_done ]; then \
74: (cd ${WRKSRC} ; ${MAKE} install) ; \
75: fi
76: @touch work/.install_done
77:
78: clean:
79: -${RM} -rf work
80:
81: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>