version 1.12, 2003/03/19 07:12:02 |
version 1.18, 2003/03/24 11:30:38 |
|
|
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.11 2003/03/19 00:52:26 ohara Exp $ |
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.17 2003/03/20 07:34:07 ohara 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 |
|
|
|
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@ |
Line 22 FLIB = fft/libdft.a |
|
Line 28 FLIB = fft/libdft.a |
|
IOLIB = io/libio.a |
IOLIB = io/libio.a |
PLIB = parse/libparse.a |
PLIB = parse/libparse.a |
|
|
# The ASIRLIB cannot be rearrenged. |
|
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@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS} |
# EXTRALIBS = @EXTRALIBS@ |
# EXTRALIBS = @EXTRALIBS@ |
|
|
bin_PROGRAMS = asir |
|
asir_SOURCES = parse/main.c |
|
asir_LDADD = ${ASIRLIB} ${GLIB} |
|
noinst_LIBRARIES = libasir.a libasir-gc.a |
|
CLEANFILES = libasir.a libasir-gc.a asir${EXEEXT} |
|
|
|
libasir_gc_a_SOURCES = |
|
|
|
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.o |
libasir-gc.a: parse/gc_risa.c |
-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) ; \ |
Line 53 libasir-gc.a: parse/gc_risa.o |
|
Line 50 libasir-gc.a: parse/gc_risa.o |
|
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 ${top_srcdir}/${GLIB} |
cp ${top_srcdir}/gc/.libs/libgc.a ${GLIB} |
${AR} q ${top_srcdir}/${GLIB} ${top_srcdir}/parse/gc_risa.o |
(cd ${top_srcdir}/parse; ${MAKE} gc_risa.o) |
${RANLIB} ${top_srcdir}/${GLIB} |
${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o |
|
${RANLIB} ${GLIB} |
|
|
libasir.a: ${ASIRLIB} |
libasir.a: ${ASIRLIB} |
-mkdir ${top_srcdir}/libtmp |
-mkdir ${top_srcdir}/libtmp |
Line 69 libasir.a: ${ASIRLIB} |
|
Line 67 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 ${prefix}/lib/asir |
|
-if [ -x ${prefix}/bin/asir ]; then \ |
|
mv ${prefix}/bin/asir${EXEEXT} ${prefix}/lib/asir/ ; \ |
|
fi |
|
|
|
install-libasir: libasir.a |
install-libasir: libasir.a |
mkdir -p ${prefix}/lib |
mkdir -p ${DESTDIR}${libdir} |
${INSTALL_DATA} libasir.a ${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 ${prefix}/bin |
mkdir -p ${DESTDIR}${libdir} |
${INSTALL_PROGRAM} asir ${prefix}/bin/ |
${INSTALL_DATA} libasir-gc.a ${DESTDIR}${libdir}/libasir-gc.a |
-mkdir -p ${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 ${prefix}/lib/libasir${libasir_postfix}.a |
-rm -f ${DESTDIR}${bindir}/ox_asir${EXEEXT} |
${INSTALL_DATA} libasir-gc.a ${prefix}/lib/libasir-gc.a |
(cd ${DESTDIR}${bindir} ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT}) |
-rm -f ${prefix}/bin/ox_asir${EXEEXT} |
-(cd ${DESTDIR}${asirdir}; \ |
(cd ${prefix}/bin ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT}) |
|
-(cd ${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 ${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 100 install-openxm: asir${EXEEXT} libasir.a libasir-gc.a |
|
Line 94 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 ${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 ${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 ${prefix}/bin |
-mkdir -p ${DESTDIR}${bindir} |
-rm -f ${prefix}/bin/asir${EXEEXT} |
-rm -f ${DESTDIR}${bindir}/asir${EXEEXT} |
(cd ${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) |
|
|
|
tarball: |
|
-rm -rf tmp |
|
-mkdir tmp |
|
DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm |
|
(cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz |
|
-rm -rf tmp |