version 1.16, 2003/03/20 07:06:31 |
version 1.26, 2007/11/11 08:44:12 |
|
|
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.15 2003/03/20 05:36:39 ohara Exp $ |
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.25 2007/08/06 08:15:25 saito Exp $ |
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
if USE_PLOT |
if USE_PLOT |
|
|
|
|
SUBDIRS = asm builtin engine fft include io lib parse ${PLOTDIR} |
SUBDIRS = asm builtin engine fft include io lib parse ${PLOTDIR} |
|
|
DEFS = @DEFS@ -DASIR_LIBDIR=\"${prefix}/lib/asir\" |
asirdir = ${libdir}/asir |
|
asir_PROGRAMS = asir |
|
asir_SOURCES = parse/main.c |
|
asir_LDADD = libasir.a libasir-gc.a |
|
CLEANFILES = ${asir_LDADD} asir-openxm-${VERSION}.tgz |
|
|
|
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}\" |
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 |
Line 26 ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} $ |
|
Line 38 ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} $ |
|
LIBS = @LIBS@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS} |
LIBS = @LIBS@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS} |
# EXTRALIBS = @EXTRALIBS@ |
# EXTRALIBS = @EXTRALIBS@ |
|
|
bin_PROGRAMS = asir |
|
asir_SOURCES = parse/main.c |
|
asir_LDADD = libasir.a libasir-gc.a |
|
CLEANFILES = ${asir_LDADD} |
|
|
|
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} parse/gc_risa.c |
|
-if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \ |
|
if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \ |
|
${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \ |
|
fi ; \ |
|
touch ${top_srcdir}/.gc_fetch_done ; \ |
|
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 [ ! -f ${top_srcdir}/gc/.configure_done ]; then \ |
-if [ "${USE_GC_INTERIX}" = yes \ |
if [ -n "${host_alias}" ]; then \ |
-a ! -f ${top_srcdir}/${GC}/.patch_gc_interix_done ]; then \ |
(cd ${top_srcdir}/gc; ./configure --host=${host_alias} --disable-threads) ; \ |
(cd ${top_srcdir}/${GC}; patch -p0 < ../gc_interix.diff) ; \ |
else \ |
touch ${top_srcdir}/${GC}/.patch_gc_interix_done ; \ |
(cd ${top_srcdir}/gc; ./configure --disable-threads) ; \ |
|
fi ; \ |
|
touch ${top_srcdir}/gc/.configure_done ; \ |
|
fi |
fi |
(cd ${top_srcdir}/gc; ${MAKE}) |
-if [ "${USE_GC_SPARC64}" = yes \ |
cp ${top_srcdir}/gc/.libs/libgc.a ${GLIB} |
-a ! -f ${top_srcdir}/${GC}/.patch_gc_sparc64_done ]; then \ |
|
(cd ${top_srcdir}/${GC}; patch -p0 < ../gc_sparc64.diff) ; \ |
|
touch ${top_srcdir}/${GC}/.patch_gc_sparc64_done ; \ |
|
fi |
|
-if [ ! -f ${top_srcdir}/${GC}/.configure_done ]; then \ |
|
(cd ${top_srcdir}/${GC}; ./configure ${GC_CONFIGURE_ARGS}) ; \ |
|
touch ${top_srcdir}/${GC}/.configure_done ; \ |
|
fi |
|
(cd ${top_srcdir}/${GC}; ${MAKE}) |
|
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} |
Line 66 libasir.a: ${ASIRLIB} |
|
Line 90 libasir.a: ${ASIRLIB} |
|
# -rm $@ |
# -rm $@ |
# ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS} |
# ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS} |
|
|
install-exec-hook: |
|
-mkdir -p ${DESTDIR}${prefix}/lib/asir |
|
-if [ -x ${DESTDIR}${prefix}/bin/asir ]; then \ |
|
mv ${DESTDIR}${prefix}/bin/asir${EXEEXT} ${DESTDIR}${prefix}/lib/asir/ ; \ |
|
fi |
|
|
|
install-libasir: libasir.a |
install-libasir: libasir.a |
mkdir -p ${DESTDIR}${prefix}/lib |
mkdir -p ${DESTDIR}${libdir} |
${INSTALL_DATA} libasir.a ${DESTDIR}${prefix}/lib/libasir${libasir_postfix}.a |
${INSTALL_DATA} libasir.a ${DESTDIR}${libdir}/libasir${libasir_postfix}.a |
|
|
install-openxm: asir${EXEEXT} libasir.a libasir-gc.a |
install-libasir-gc: libasir-gc.a |
-mkdir -p ${DESTDIR}${prefix}/bin |
mkdir -p ${DESTDIR}${libdir} |
${INSTALL_PROGRAM} asir ${DESTDIR}${prefix}/bin/ |
${INSTALL_DATA} libasir-gc.a ${DESTDIR}${libdir}/libasir-gc.a |
-mkdir -p ${DESTDIR}${prefix}/lib/asir |
|
|
install-openxm: asir${EXEEXT} install-libasir install-libasir-gc |
|
-mkdir -p ${DESTDIR}${bindir} |
|
${INSTALL_PROGRAM} asir ${DESTDIR}${bindir} |
|
-mkdir -p ${DESTDIR}${asirdir} |
(cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib) |
(cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib) |
${INSTALL_DATA} libasir.a ${DESTDIR}${prefix}/lib/libasir${libasir_postfix}.a |
-rm -f ${DESTDIR}${bindir}/ox_asir${EXEEXT} |
${INSTALL_DATA} libasir-gc.a ${DESTDIR}${prefix}/lib/libasir-gc.a |
(cd ${DESTDIR}${bindir} ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT}) |
-rm -f ${DESTDIR}${prefix}/bin/ox_asir${EXEEXT} |
-(cd ${DESTDIR}${asirdir}; \ |
(cd ${DESTDIR}${prefix}/bin ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT}) |
|
-(cd ${DESTDIR}${prefix}/lib/asir; \ |
|
rm -f asir${EXEEXT} ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT}) |
rm -f asir${EXEEXT} ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT}) |
(cd ${DESTDIR}${prefix}/lib/asir ; \ |
(cd ${DESTDIR}${asirdir} ; \ |
${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \ |
${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \ |
Line 97 install-openxm: asir${EXEEXT} libasir.a libasir-gc.a |
|
Line 117 install-openxm: asir${EXEEXT} libasir.a libasir-gc.a |
|
|
|
install-lib: |
install-lib: |
(cd ${top_srcdir}/lib; ${MAKE} install-lib) |
(cd ${top_srcdir}/lib; ${MAKE} install-lib) |
-(cd ${DESTDIR}${prefix}/lib/asir; \ |
-(cd ${DESTDIR}${asirdir}; \ |
rm -f ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT}) |
rm -f ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT}) |
(cd ${DESTDIR}${prefix}/lib/asir ; \ |
(cd ${DESTDIR}${asirdir} ; \ |
${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_plot${EXEEXT}) |
${LN_S} asir${EXEEXT} ox_plot${EXEEXT}) |
-mkdir -p ${DESTDIR}${prefix}/bin |
-mkdir -p ${DESTDIR}${bindir} |
-rm -f ${DESTDIR}${prefix}/bin/asir${EXEEXT} |
-rm -f ${DESTDIR}${bindir}/asir${EXEEXT} |
(cd ${DESTDIR}${prefix}/bin ; ${LN_S} ../lib/asir/asir${EXEEXT} asir${EXEEXT}) |
(cd ${DESTDIR}${bindir} ; ${LN_S} ../lib/asir/asir${EXEEXT} asir${EXEEXT}) |
|
|
install-doc: |
install-doc: |
(cd ${top_srcdir}/lib; ${MAKE} install-doc) |
(cd ${top_srcdir}/lib; ${MAKE} install-doc) |