Return to Makefile.am CVS log | Up to [local] / OpenXM_contrib2 / asir2000 |
version 1.21, 2005/07/12 01:23:20 | version 1.25, 2007/08/06 08:15:25 | ||
---|---|---|---|
|
|
||
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.20 2004/06/25 13:41:33 ohara Exp $ | ## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.24 2007/02/18 08:46:47 ohara Exp $ | ||
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 | AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 | ||
if USE_PLOT | if USE_PLOT | ||
|
|
||
asir_LDADD = libasir.a libasir-gc.a | asir_LDADD = libasir.a libasir-gc.a | ||
CLEANFILES = ${asir_LDADD} asir-openxm-${VERSION}.tgz | CLEANFILES = ${asir_LDADD} asir-openxm-${VERSION}.tgz | ||
gc = gc6.5 | GC = gc6.8 | ||
GC_TAR_GZ = ${GC}.tar.gz | |||
GC_PATCH = gc6.5-risa.diff | |||
GC_DISTDIR = @GC_DISTDIR@ | |||
GC_MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/ | |||
OX_FETCH = ${bindir}/oxfetch.sh | |||
DEFS = @DEFS@ -DASIR_LIBDIR=\"${asirdir}\" | DEFS = @DEFS@ -DASIR_LIBDIR=\"${asirdir}\" | ||
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \ | INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \ | ||
-I${top_srcdir}/${gc}/include \ | -I${top_srcdir}/${GC}/include \ | ||
@PARIINC@ @MPIINC@ @X_CFLAGS@ | @PARIINC@ @MPIINC@ @X_CFLAGS@ | ||
GLIB = libasir-gc.a | GLIB = libasir-gc.a | ||
|
|
||
umain.o: parse/main.c | umain.o: parse/main.c | ||
${COMPILE} -DUINIT main.c -o umain.o | ${COMPILE} -DUINIT main.c -o umain.o | ||
libasir-gc.a: ${gc}.tar.gz ${gc}-risa.diff parse/gc_risa.c | libasir-gc.a: ${GC_PATCH} parse/gc_risa.c | ||
-if [ ! -f ${top_srcdir}/.gc-risa_done ]; then \ | -if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \ | ||
(cd ${top_srcdir}; tar xzvf ${gc}.tar.gz; patch -p0 < ${gc}-risa.diff) ; \ | if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \ | ||
touch ${top_srcdir}/.gc-risa_done ; \ | ${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \ | ||
fi ; \ | |||
touch ${top_srcdir}/.gc_fetch_done ; \ | |||
fi | fi | ||
-if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \ | |||
(cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \ | |||
(cd ${top_srcdir}/${GC}; patch -p1 < ../${GC_PATCH}) ; \ | |||
touch ${top_srcdir}/.gc_risa_done ; \ | |||
fi | |||
-if [ "${USE_GC_ZEROPAGE}" = yes \ | -if [ "${USE_GC_ZEROPAGE}" = yes \ | ||
-a ! -f ${top_srcdir}/${gc}/.patch_gc_zeropage_done ]; then \ | -a ! -f ${top_srcdir}/${GC}/.patch_gc_zeropage_done ]; then \ | ||
(cd ${top_srcdir}/${gc}; patch < ../gc_zeropage.diff) ; \ | (cd ${top_srcdir}/${GC}; patch < ../gc_zeropage.diff) ; \ | ||
touch ${top_srcdir}/${gc}/.patch_gc_zeropage_done ; \ | touch ${top_srcdir}/${GC}/.patch_gc_zeropage_done ; \ | ||
fi | fi | ||
-if [ "${USE_GC_INTERIX}" = yes \ | -if [ "${USE_GC_INTERIX}" = yes \ | ||
-a ! -f ${top_srcdir}/${gc}/.patch_gc_interix_done ]; then \ | -a ! -f ${top_srcdir}/${GC}/.patch_gc_interix_done ]; then \ | ||
(cd ${top_srcdir}/${gc}; patch -p0 < ../gc_interix.diff) ; \ | (cd ${top_srcdir}/${GC}; patch -p0 < ../gc_interix.diff) ; \ | ||
touch ${top_srcdir}/${gc}/.patch_gc_interix_done ; \ | touch ${top_srcdir}/${GC}/.patch_gc_interix_done ; \ | ||
fi | fi | ||
-if [ "${USE_GC_SPARC64}" = yes \ | -if [ "${USE_GC_SPARC64}" = yes \ | ||
-a ! -f ${top_srcdir}/${gc}/.patch_gc_sparc64_done ]; then \ | -a ! -f ${top_srcdir}/${GC}/.patch_gc_sparc64_done ]; then \ | ||
(cd ${top_srcdir}/${gc}; patch -p0 < ../gc_sparc64.diff) ; \ | (cd ${top_srcdir}/${GC}; patch -p0 < ../gc_sparc64.diff) ; \ | ||
touch ${top_srcdir}/${gc}/.patch_gc_sparc64_done ; \ | touch ${top_srcdir}/${GC}/.patch_gc_sparc64_done ; \ | ||
fi | fi | ||
-if [ ! -f ${top_srcdir}/${gc}/.configure_done ]; then \ | -if [ ! -f ${top_srcdir}/${GC}/.configure_done ]; then \ | ||
if [ -n "${host_alias}" ]; then \ | if [ -n "${host_alias}" ]; then \ | ||
(cd ${top_srcdir}/${gc}; ./configure --host=${host_alias} --disable-threads) ; \ | (cd ${top_srcdir}/${GC}; ./configure --host=${host_alias} --disable-threads) ; \ | ||
else \ | else \ | ||
(cd ${top_srcdir}/${gc}; ./configure --disable-threads) ; \ | (cd ${top_srcdir}/${GC}; ./configure --disable-threads) ; \ | ||
fi ; \ | fi ; \ | ||
touch ${top_srcdir}/${gc}/.configure_done ; \ | touch ${top_srcdir}/${GC}/.configure_done ; \ | ||
fi | fi | ||
(cd ${top_srcdir}/${gc}; ${MAKE}) | (cd ${top_srcdir}/${GC}; ${MAKE}) | ||
cp ${top_srcdir}/${gc}/.libs/libgc.a ${GLIB} | cp ${top_srcdir}/${GC}/.libs/libgc.a ${GLIB} | ||
(cd ${top_srcdir}/parse; ${MAKE} gc_risa.o) | (cd ${top_srcdir}/parse; ${MAKE} gc_risa.o) | ||
${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o | ${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o | ||
${RANLIB} ${GLIB} | ${RANLIB} ${GLIB} |