version 1.23, 2007/02/18 05:36:27 |
version 1.46, 2015/08/14 07:36:59 |
|
|
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.22 2005/07/12 14:47:13 ohara Exp $ |
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.45 2015/08/06 09:01:26 ohara Exp $ |
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
if USE_PLOT |
if USE_PLOT |
Line 12 SUBDIRS = asm builtin engine fft include io lib parse |
|
Line 12 SUBDIRS = asm builtin engine fft include io lib parse |
|
asirdir = ${libdir}/asir |
asirdir = ${libdir}/asir |
asir_PROGRAMS = asir |
asir_PROGRAMS = asir |
asir_SOURCES = parse/main.c |
asir_SOURCES = parse/main.c |
asir_LDADD = libasir.a libasir-gc.a |
asir_LDADD = libasir.a @ASIR_GCLIB@ |
CLEANFILES = ${asir_LDADD} asir-openxm-${VERSION}.tgz |
CLEANFILES = ${asir_LDADD} asir-openxm-${VERSION}.tgz |
|
|
GC = gc6.5 |
GC_TAR_GZ = gc-7.4.2.tar.gz |
GC_TAR_GZ = ${GC}.tar.gz |
GC_PATCH = gc-7.diff gc-7.0-risa.diff |
GC_DISTDIR = @GC_DISTDIR@ |
LIB_ATOMIC = libatomic_ops-7.4.0 |
GC_MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
LIB_ATOMIC_TAR_GZ = ${LIB_ATOMIC}.tar.gz |
|
#GC_TAR_GZ = ${GC}.tar.gz |
|
#GC_PATCH = gc6.diff gc6-risa.diff |
|
GC_MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
OX_FETCH = ${bindir}/oxfetch.sh |
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 \ |
AM_CPPFLAGS = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \ |
-I${top_srcdir}/${GC}/include \ |
-I${prefix}/include @GCINC@ @PARIINC@ @X_CFLAGS@ |
@PARIINC@ @MPIINC@ @X_CFLAGS@ |
|
|
|
GLIB = libasir-gc.a |
GLIB = @ASIR_GCLIB@ |
ALIB = asm/libasm.a |
ALIB = asm/libasm.a |
BLIB = builtin/libfunc.a |
BLIB = builtin/libfunc.a |
ELIB = engine/libca.a |
ELIB = engine/libca.a |
FLIB = fft/libdft.a |
FLIB = fft/libdft.a |
IOLIB = io/libio.a |
IOLIB = io/libio.a |
PLIB = parse/libparse.a |
PLIB = parse/libparse.a |
|
GMPLIB = -L ${libdir} -lmpfr -lgmp |
|
|
ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB} |
ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB} |
LIBS = @LIBS@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS} |
LIBS = @LIBS@ @GCLIB@ @PARILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} ${GMPLIB} -lm @WSLIB@ ${EXTRALIBS} |
# EXTRALIBS = @EXTRALIBS@ |
# EXTRALIBS = @EXTRALIBS@ |
|
|
|
all-recursive: ${GLIB} |
|
|
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: gc6.5-risa.diff parse/gc_risa.c |
libasir-gc.a: ${GC_PATCH} |
-if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \ |
-if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \ |
if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \ |
if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \ |
${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \ |
${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \ |
|
${OX_FETCH} ${GC_MASTER_SITE}${LIB_ATOMIC_TAR_GZ} ${GC_DISTDIR}; \ |
fi ; \ |
fi ; \ |
touch ${top_srcdir}/.gc_fetch_done ; \ |
touch ${top_srcdir}/.gc_fetch_done ; \ |
fi |
fi |
-if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \ |
-if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \ |
(cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \ |
(cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \ |
(cd ${top_srcdir}/${GC}; patch -p1 < ../gc6.5-risa.diff) ; \ |
(cd ${top_srcdir}/${GC}; tar xzvf ${GC_DISTDIR}/${LIB_ATOMIC_TAR_GZ}; mv ${LIB_ATOMIC} libatomic_ops) ; \ |
|
for i in ${GC_PATCH} ; do \ |
|
(cd ${top_srcdir}/${GC}; patch -p1 < ../$$i) ; \ |
|
done ; \ |
touch ${top_srcdir}/.gc_risa_done ; \ |
touch ${top_srcdir}/.gc_risa_done ; \ |
fi |
fi |
-if [ "${USE_GC_ZEROPAGE}" = yes \ |
|
-a ! -f ${top_srcdir}/${GC}/.patch_gc_zeropage_done ]; then \ |
|
(cd ${top_srcdir}/${GC}; patch < ../gc_zeropage.diff) ; \ |
|
touch ${top_srcdir}/${GC}/.patch_gc_zeropage_done ; \ |
|
fi |
|
-if [ "${USE_GC_INTERIX}" = yes \ |
|
-a ! -f ${top_srcdir}/${GC}/.patch_gc_interix_done ]; then \ |
|
(cd ${top_srcdir}/${GC}; patch -p0 < ../gc_interix.diff) ; \ |
|
touch ${top_srcdir}/${GC}/.patch_gc_interix_done ; \ |
|
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 \ |
(cd ${top_srcdir}/${GC}; ./configure ${GC_CONFIGURE_ARGS}) ; \ |
(cd ${top_srcdir}/${GC}; ./configure --host=${host_alias} --disable-threads) ; \ |
|
else \ |
|
(cd ${top_srcdir}/${GC}; ./configure --disable-threads) ; \ |
|
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 $@ |
(cd ${top_srcdir}/parse; ${MAKE} gc_risa.o) |
|
${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o |
|
${RANLIB} ${GLIB} |
|
|
|
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} |
${INSTALL_DATA} libasir.a ${DESTDIR}${libdir}/libasir${libasir_postfix}.a |
${INSTALL_DATA} libasir.a ${DESTDIR}${libdir}/libasir${libasir_postfix}.a |
|
|
DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm |
DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm |
(cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz |
(cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz |
-rm -rf tmp |
-rm -rf tmp |
|
|
|
clean-gc: |
|
-rm -rf ${top_srcdir}/.gc_*_done ${top_srcdir}/${GC} |
|
-rm -rf ${top_srcdir}/autom4te.cache |
|
|
|
distclean-recursive: clean-gc |