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

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

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

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