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

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

1.21    ! noro        1: ## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.20 2004/06/25 13:41:33 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.21    ! noro       18: gc            = gc6.5
        !            19:
1.17      ohara      20: DEFS     = @DEFS@ -DASIR_LIBDIR=\"${asirdir}\"
1.1       ohara      21: INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \
1.21    ! noro       22:            -I${top_srcdir}/${gc}/include \
1.1       ohara      23:            @PARIINC@ @MPIINC@ @X_CFLAGS@
                     24:
                     25: GLIB  = libasir-gc.a
                     26: ALIB  = asm/libasm.a
                     27: BLIB  = builtin/libfunc.a
                     28: ELIB  = engine/libca.a
                     29: FLIB  = fft/libdft.a
                     30: IOLIB = io/libio.a
                     31: PLIB  = parse/libparse.a
                     32:
                     33: ASIRLIB  = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB}
                     34: LIBS     = @LIBS@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS}
                     35: # EXTRALIBS = @EXTRALIBS@
                     36:
                     37: umain.o: parse/main.c
                     38:        ${COMPILE} -DUINIT main.c -o umain.o
                     39:
1.21    ! noro       40: libasir-gc.a: ${gc}.tar.gz ${gc}-risa.diff parse/gc_risa.c
        !            41:        -if [ ! -f ${top_srcdir}/.gc-risa_done ]; then \
        !            42:            (cd ${top_srcdir}; tar xzvf ${gc}.tar.gz; patch -p0 < ${gc}-risa.diff) ; \
        !            43:            touch ${top_srcdir}/.gc-risa_done ; \
        !            44:        fi
1.11      ohara      45:        -if [ "${USE_GC_ZEROPAGE}" = yes \
1.21    ! noro       46:             -a ! -f ${top_srcdir}/${gc}/.patch_gc_zeropage_done ]; then \
        !            47:            (cd ${top_srcdir}/${gc}; patch < ../gc_zeropage.diff) ; \
        !            48:            touch ${top_srcdir}/${gc}/.patch_gc_zeropage_done ; \
1.19      ohara      49:        fi
                     50:        -if [ "${USE_GC_INTERIX}" = yes \
1.21    ! noro       51:             -a ! -f ${top_srcdir}/${gc}/.patch_gc_interix_done ]; then \
        !            52:            (cd ${top_srcdir}/${gc}; patch -p0 < ../gc_interix.diff) ; \
        !            53:            touch ${top_srcdir}/${gc}/.patch_gc_interix_done ; \
1.20      ohara      54:        fi
                     55:        -if [ "${USE_GC_SPARC64}" = yes \
1.21    ! noro       56:             -a ! -f ${top_srcdir}/${gc}/.patch_gc_sparc64_done ]; then \
        !            57:            (cd ${top_srcdir}/${gc}; patch -p0 < ../gc_sparc64.diff) ; \
        !            58:            touch ${top_srcdir}/${gc}/.patch_gc_sparc64_done ; \
1.11      ohara      59:        fi
1.21    ! noro       60:        -if [ ! -f ${top_srcdir}/${gc}/.configure_done ]; then \
1.12      ohara      61:            if [ -n "${host_alias}" ]; then \
1.21    ! noro       62:                (cd ${top_srcdir}/${gc}; ./configure --host=${host_alias} --disable-threads) ; \
1.12      ohara      63:            else \
1.21    ! noro       64:                (cd ${top_srcdir}/${gc}; ./configure --disable-threads) ; \
1.12      ohara      65:            fi ; \
1.21    ! noro       66:            touch ${top_srcdir}/${gc}/.configure_done ; \
1.1       ohara      67:        fi
1.21    ! noro       68:        (cd ${top_srcdir}/${gc}; ${MAKE})
        !            69:        cp ${top_srcdir}/${gc}/.libs/libgc.a ${GLIB}
1.13      ohara      70:        (cd ${top_srcdir}/parse; ${MAKE} gc_risa.o)
                     71:        ${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o
                     72:        ${RANLIB} ${GLIB}
1.1       ohara      73:
                     74: libasir.a: ${ASIRLIB}
                     75:        -mkdir ${top_srcdir}/libtmp
                     76:        -rm -f ${top_srcdir}/libtmp/*  ${top_srcdir}/$@
                     77:        for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done
                     78:        (cd ${top_srcdir}/libtmp; ${AR} cq ../$@ *.o)
                     79:        (cd ${top_srcdir}; ${RANLIB} $@)
                     80:        -rm -rf ${top_srcdir}/libtmp
                     81:
                     82: #asir.o: umain.o ${ASIRLIB} ${GLIB}
                     83: #      -rm $@
                     84: #      ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS}
                     85:
1.3       ohara      86: install-libasir: libasir.a
1.17      ohara      87:        mkdir -p ${DESTDIR}${libdir}
                     88:        ${INSTALL_DATA} libasir.a ${DESTDIR}${libdir}/libasir${libasir_postfix}.a
1.4       ohara      89:
1.18      ohara      90: install-libasir-gc: libasir-gc.a
                     91:        mkdir -p ${DESTDIR}${libdir}
                     92:        ${INSTALL_DATA} libasir-gc.a ${DESTDIR}${libdir}/libasir-gc.a
                     93:
                     94: install-openxm: asir${EXEEXT} install-libasir install-libasir-gc
1.17      ohara      95:        -mkdir -p ${DESTDIR}${bindir}
                     96:        ${INSTALL_PROGRAM} asir ${DESTDIR}${bindir}
                     97:        -mkdir -p ${DESTDIR}${asirdir}
1.4       ohara      98:        (cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib)
1.17      ohara      99:        -rm -f ${DESTDIR}${bindir}/ox_asir${EXEEXT}
                    100:        (cd ${DESTDIR}${bindir} ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT})
                    101:        -(cd ${DESTDIR}${asirdir}; \
1.5       ohara     102:     rm -f asir${EXEEXT} ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     103:        (cd ${DESTDIR}${asirdir} ; \
1.5       ohara     104:        ${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \
                    105:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
                    106:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
                    107:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})
1.7       ohara     108:        (cd ${top_srcdir}/include; ${MAKE} install)
1.8       ohara     109:        (cd ${top_srcdir}/parse; ${MAKE} install)
1.4       ohara     110:
                    111: install-lib:
                    112:        (cd ${top_srcdir}/lib; ${MAKE} install-lib)
1.17      ohara     113:        -(cd ${DESTDIR}${asirdir}; \
1.6       ohara     114:        rm -f ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     115:        (cd ${DESTDIR}${asirdir} ; \
1.4       ohara     116:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
                    117:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
                    118:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     119:        -mkdir -p ${DESTDIR}${bindir}
                    120:        -rm -f ${DESTDIR}${bindir}/asir${EXEEXT}
                    121:        (cd ${DESTDIR}${bindir} ; ${LN_S} ../lib/asir/asir${EXEEXT} asir${EXEEXT})
1.4       ohara     122:
                    123: install-doc:
                    124:        (cd ${top_srcdir}/lib; ${MAKE} install-doc)
1.16      ohara     125:
                    126: tarball:
                    127:        -rm -rf tmp
                    128:        -mkdir tmp
                    129:        DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm
                    130:        (cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz
                    131:        -rm -rf tmp

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