Return to Makefile.am CVS log | Up to [local] / OpenXM_contrib2 / asir2000 |
version 1.19, 2004/02/27 18:32:21 | version 1.30, 2009/02/05 09:01:07 | ||
---|---|---|---|
|
|
||
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.18 2003/03/24 11:30:38 ohara Exp $ | ## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.29 2009/02/04 12:10:07 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_TAR_GZ = ${GC}.tar.gz | |||
if USE_GC7 | |||
GC_PATCH = gc-7.0-risa.diff | |||
else | |||
GC_PATCH = gc6.diff gc6-risa.diff | |||
endif | |||
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: parse/gc_risa.c | libasir-gc.a: ${GC_PATCH} | ||
-if [ "${USE_GC_ZEROPAGE}" = yes \ | -if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \ | ||
-a ! -f ${top_srcdir}/gc/.patch_gc_zeropage_done ]; then \ | if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \ | ||
(cd ${top_srcdir}/gc; patch < ../gc_zeropage.diff) ; \ | ${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \ | ||
touch ${top_srcdir}/gc/.patch_gc_zeropage_done ; \ | fi ; \ | ||
touch ${top_srcdir}/.gc_fetch_done ; \ | |||
fi | fi | ||
-if [ "${USE_GC_INTERIX}" = yes \ | -if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \ | ||
-a ! -f ${top_srcdir}/gc/.patch_gc_interix_done ]; then \ | (cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \ | ||
(cd ${top_srcdir}/gc; patch -p0 < ../gc_interix.diff) ; \ | for i in ${GC_PATCH} ; do \ | ||
touch ${top_srcdir}/gc/.patch_gc_interix_done ; \ | (cd ${top_srcdir}/${GC}; patch -p1 < ../$$i) ; \ | ||
done ; \ | |||
touch ${top_srcdir}/.gc_risa_done ; \ | |||
fi | fi | ||
-if [ ! -f ${top_srcdir}/gc/.configure_done ]; then \ | -if [ "${USE_GC_SPARC64}" = yes \ | ||
if [ -n "${host_alias}" ]; then \ | -a ! -f ${top_srcdir}/${GC}/.patch_gc_sparc64_done ]; then \ | ||
(cd ${top_srcdir}/gc; ./configure --host=${host_alias} --disable-threads) ; \ | (cd ${top_srcdir}/${GC}; patch -p0 < ../gc_sparc64.diff) ; \ | ||
else \ | touch ${top_srcdir}/${GC}/.patch_gc_sparc64_done ; \ | ||
(cd ${top_srcdir}/gc; ./configure --disable-threads) ; \ | |||
fi ; \ | |||
touch ${top_srcdir}/gc/.configure_done ; \ | |||
fi | fi | ||
(cd ${top_srcdir}/gc; ${MAKE}) | -if [ ! -f ${top_srcdir}/${GC}/.configure_done ]; then \ | ||
cp ${top_srcdir}/gc/.libs/libgc.a ${GLIB} | (cd ${top_srcdir}/${GC}; ./configure ${GC_CONFIGURE_ARGS}) ; \ | ||
(cd ${top_srcdir}/parse; ${MAKE} gc_risa.o) | touch ${top_srcdir}/${GC}/.configure_done ; \ | ||
${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o | fi | ||
${RANLIB} ${GLIB} | (cd ${top_srcdir}/${GC}; ${MAKE}) | ||
cp ${top_srcdir}/${GC}/.libs/libgc.a $@ | |||
libasir.a: ${ASIRLIB} | libasir.a: ${ASIRLIB} ${GLIB} parse/gc_risa.c | ||
-mkdir ${top_srcdir}/libtmp | -mkdir ${top_srcdir}/libtmp | ||
-rm -f ${top_srcdir}/libtmp/* ${top_srcdir}/$@ | -rm -f ${top_srcdir}/libtmp/* ${top_srcdir}/$@ | ||
for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done | for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done | ||
(cd ${top_srcdir}/parse; ${MAKE} gc_risa.o; cp gc_risa.o ../libtmp) | |||
(cd ${top_srcdir}/libtmp; ${AR} cq ../$@ *.o) | (cd ${top_srcdir}/libtmp; ${AR} cq ../$@ *.o) | ||
(cd ${top_srcdir}; ${RANLIB} $@) | (cd ${top_srcdir}; ${RANLIB} $@) | ||
-rm -rf ${top_srcdir}/libtmp | -rm -rf ${top_srcdir}/libtmp | ||
#asir.o: umain.o ${ASIRLIB} ${GLIB} | |||
# -rm $@ | |||
# ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS} | |||
install-libasir: libasir.a | install-libasir: libasir.a | ||
mkdir -p ${DESTDIR}${libdir} | mkdir -p ${DESTDIR}${libdir} |