Annotation of OpenXM/src/mpc/Makefile, Revision 1.3
1.3 ! takayama 1: # $OpenXM: OpenXM/src/mpc/Makefile,v 1.2 2015/09/28 05:52:13 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.2 takayama 38: if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
39: make configure-cygwin ; \
40: elif [ "`uname | sed -e 's/_.*$$//'`" = "MSYS" ]; then \
41: make configure-msys ; \
42: else \
43: make configure-others ; \
44: fi ; \
1.1 noro 45: fi
46: @touch work/.configure_done
47:
1.2 takayama 48: configure-cygwin:
49: prefix=`cd ${OpenXM_HOME}; pwd` ; \
50: (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --enable-static --disable-shared)
51: configure-msys:
52: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.3 ! takayama 53: (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 54: configure-others:
55: prefix=`cd ${OpenXM_HOME}; pwd` ; \
56: (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" )
57:
1.1 noro 58: build : configure
59: @if [ ! -f work/.build_done ]; then \
60: (cd ${WRKSRC} ; ${MAKE} CC=${CC}) ; \
61: fi
62: @touch work/.build_done
63:
64: install: build
65: -mkdir ${PREFIX}/bin ${PREFIX}/lib
66: @if [ ! -f work/.install_done ]; then \
67: (cd ${WRKSRC} ; ${MAKE} install) ; \
68: fi
69: @touch work/.install_done
70:
71: clean:
72: -${RM} -rf work
73:
74: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>