[BACK]Return to Makefile.am CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000

Annotation of OpenXM_contrib2/asir2000/Makefile.am, Revision 1.28

1.28    ! ohara       1: ## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.27 2007/11/11 15:54:02 ohara Exp $
1.1       ohara       2:
                      3: AUTOMAKE_OPTIONS = foreign no-dependencies 1.5
                      4: if USE_PLOT
                      5:     PLOTDIR = plot
                      6:     PLLIB   = plot/libplot.a
1.10      ohara       7:     X11LIB  = @X_LIBS@ -lXaw -lXmu -lXt @X_PRE_LIBS@ @XPMLIB@ -lXext -lX11 @X_EXTRA_LIBS@
1.1       ohara       8: endif
                      9:
                     10: SUBDIRS  = asm builtin engine fft include io lib parse ${PLOTDIR}
                     11:
1.17      ohara      12: asirdir       = ${libdir}/asir
                     13: asir_PROGRAMS = asir
                     14: asir_SOURCES  = parse/main.c
                     15: asir_LDADD    = libasir.a libasir-gc.a
                     16: CLEANFILES    = ${asir_LDADD} asir-openxm-${VERSION}.tgz
                     17:
1.22      ohara      18: GC_TAR_GZ     = ${GC}.tar.gz
1.27      ohara      19: if USE_GC7
                     20: GC_PATCH      = gc-7.0-risa.diff
                     21: else
1.28    ! ohara      22: GC_PATCH      = gc6.diff gc6-risa.diff
1.27      ohara      23: endif
1.22      ohara      24: GC_DISTDIR    = @GC_DISTDIR@
                     25: GC_MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
                     26: OX_FETCH      = ${bindir}/oxfetch.sh
1.21      noro       27:
1.17      ohara      28: DEFS     = @DEFS@ -DASIR_LIBDIR=\"${asirdir}\"
1.1       ohara      29: INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \
1.22      ohara      30:            -I${top_srcdir}/${GC}/include \
1.1       ohara      31:            @PARIINC@ @MPIINC@ @X_CFLAGS@
                     32:
                     33: GLIB  = libasir-gc.a
                     34: ALIB  = asm/libasm.a
                     35: BLIB  = builtin/libfunc.a
                     36: ELIB  = engine/libca.a
                     37: FLIB  = fft/libdft.a
                     38: IOLIB = io/libio.a
                     39: PLIB  = parse/libparse.a
                     40:
                     41: ASIRLIB  = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB}
                     42: LIBS     = @LIBS@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS}
                     43: # EXTRALIBS = @EXTRALIBS@
                     44:
                     45: umain.o: parse/main.c
                     46:        ${COMPILE} -DUINIT main.c -o umain.o
                     47:
1.25      saito      48: libasir-gc.a: ${GC_PATCH} parse/gc_risa.c
1.22      ohara      49:        -if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \
                     50:                if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \
                     51:                        ${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \
                     52:                fi ; \
                     53:                touch ${top_srcdir}/.gc_fetch_done ; \
                     54:        fi
                     55:        -if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \
1.23      ohara      56:            (cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \
1.28    ! ohara      57:                for i in ${GC_PATCH} ; do \
        !            58:            (cd ${top_srcdir}/${GC}; patch -p1 < ../$$i) ; \
        !            59:                done ; \
1.22      ohara      60:            touch ${top_srcdir}/.gc_risa_done ; \
1.21      noro       61:        fi
1.20      ohara      62:        -if [ "${USE_GC_SPARC64}" = yes \
1.22      ohara      63:             -a ! -f ${top_srcdir}/${GC}/.patch_gc_sparc64_done ]; then \
                     64:            (cd ${top_srcdir}/${GC}; patch -p0 < ../gc_sparc64.diff) ; \
                     65:            touch ${top_srcdir}/${GC}/.patch_gc_sparc64_done ; \
1.11      ohara      66:        fi
1.22      ohara      67:        -if [ ! -f ${top_srcdir}/${GC}/.configure_done ]; then \
1.26      ohara      68:            (cd ${top_srcdir}/${GC}; ./configure ${GC_CONFIGURE_ARGS}) ; \
1.22      ohara      69:            touch ${top_srcdir}/${GC}/.configure_done ; \
1.1       ohara      70:        fi
1.22      ohara      71:        (cd ${top_srcdir}/${GC}; ${MAKE})
                     72:        cp ${top_srcdir}/${GC}/.libs/libgc.a ${GLIB}
1.13      ohara      73:        (cd ${top_srcdir}/parse; ${MAKE} gc_risa.o)
                     74:        ${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o
                     75:        ${RANLIB} ${GLIB}
1.1       ohara      76:
                     77: libasir.a: ${ASIRLIB}
                     78:        -mkdir ${top_srcdir}/libtmp
                     79:        -rm -f ${top_srcdir}/libtmp/*  ${top_srcdir}/$@
                     80:        for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done
                     81:        (cd ${top_srcdir}/libtmp; ${AR} cq ../$@ *.o)
                     82:        (cd ${top_srcdir}; ${RANLIB} $@)
                     83:        -rm -rf ${top_srcdir}/libtmp
                     84:
                     85: #asir.o: umain.o ${ASIRLIB} ${GLIB}
                     86: #      -rm $@
                     87: #      ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS}
                     88:
1.3       ohara      89: install-libasir: libasir.a
1.17      ohara      90:        mkdir -p ${DESTDIR}${libdir}
                     91:        ${INSTALL_DATA} libasir.a ${DESTDIR}${libdir}/libasir${libasir_postfix}.a
1.4       ohara      92:
1.18      ohara      93: install-libasir-gc: libasir-gc.a
                     94:        mkdir -p ${DESTDIR}${libdir}
                     95:        ${INSTALL_DATA} libasir-gc.a ${DESTDIR}${libdir}/libasir-gc.a
                     96:
                     97: install-openxm: asir${EXEEXT} install-libasir install-libasir-gc
1.17      ohara      98:        -mkdir -p ${DESTDIR}${bindir}
                     99:        ${INSTALL_PROGRAM} asir ${DESTDIR}${bindir}
                    100:        -mkdir -p ${DESTDIR}${asirdir}
1.4       ohara     101:        (cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib)
1.17      ohara     102:        -rm -f ${DESTDIR}${bindir}/ox_asir${EXEEXT}
                    103:        (cd ${DESTDIR}${bindir} ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT})
                    104:        -(cd ${DESTDIR}${asirdir}; \
1.5       ohara     105:     rm -f asir${EXEEXT} ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     106:        (cd ${DESTDIR}${asirdir} ; \
1.5       ohara     107:        ${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \
                    108:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
                    109:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
                    110:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})
1.7       ohara     111:        (cd ${top_srcdir}/include; ${MAKE} install)
1.8       ohara     112:        (cd ${top_srcdir}/parse; ${MAKE} install)
1.4       ohara     113:
                    114: install-lib:
                    115:        (cd ${top_srcdir}/lib; ${MAKE} install-lib)
1.17      ohara     116:        -(cd ${DESTDIR}${asirdir}; \
1.6       ohara     117:        rm -f ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     118:        (cd ${DESTDIR}${asirdir} ; \
1.4       ohara     119:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
                    120:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
                    121:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     122:        -mkdir -p ${DESTDIR}${bindir}
                    123:        -rm -f ${DESTDIR}${bindir}/asir${EXEEXT}
                    124:        (cd ${DESTDIR}${bindir} ; ${LN_S} ../lib/asir/asir${EXEEXT} asir${EXEEXT})
1.4       ohara     125:
                    126: install-doc:
                    127:        (cd ${top_srcdir}/lib; ${MAKE} install-doc)
1.16      ohara     128:
                    129: tarball:
                    130:        -rm -rf tmp
                    131:        -mkdir tmp
                    132:        DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm
                    133:        (cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz
                    134:        -rm -rf tmp

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>