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

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

1.20    ! ohara       1: ## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.19 2004/02/27 18:32:21 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 ; \
1.19      ohara      43:        fi
                     44:        -if [ "${USE_GC_INTERIX}" = yes \
                     45:             -a ! -f ${top_srcdir}/gc/.patch_gc_interix_done ]; then \
                     46:            (cd ${top_srcdir}/gc; patch -p0 < ../gc_interix.diff) ; \
                     47:            touch ${top_srcdir}/gc/.patch_gc_interix_done ; \
1.20    ! ohara      48:        fi
        !            49:        -if [ "${USE_GC_SPARC64}" = yes \
        !            50:             -a ! -f ${top_srcdir}/gc/.patch_gc_sparc64_done ]; then \
        !            51:            (cd ${top_srcdir}/gc; patch -p0 < ../gc_sparc64.diff) ; \
        !            52:            touch ${top_srcdir}/gc/.patch_gc_sparc64_done ; \
1.11      ohara      53:        fi
1.1       ohara      54:        -if [ ! -f ${top_srcdir}/gc/.configure_done ]; then \
1.12      ohara      55:            if [ -n "${host_alias}" ]; then \
                     56:                (cd ${top_srcdir}/gc; ./configure --host=${host_alias} --disable-threads) ; \
                     57:            else \
                     58:                (cd ${top_srcdir}/gc; ./configure --disable-threads) ; \
                     59:            fi ; \
1.1       ohara      60:            touch ${top_srcdir}/gc/.configure_done ; \
                     61:        fi
                     62:        (cd ${top_srcdir}/gc; ${MAKE})
1.13      ohara      63:        cp ${top_srcdir}/gc/.libs/libgc.a ${GLIB}
                     64:        (cd ${top_srcdir}/parse; ${MAKE} gc_risa.o)
                     65:        ${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o
                     66:        ${RANLIB} ${GLIB}
1.1       ohara      67:
                     68: libasir.a: ${ASIRLIB}
                     69:        -mkdir ${top_srcdir}/libtmp
                     70:        -rm -f ${top_srcdir}/libtmp/*  ${top_srcdir}/$@
                     71:        for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done
                     72:        (cd ${top_srcdir}/libtmp; ${AR} cq ../$@ *.o)
                     73:        (cd ${top_srcdir}; ${RANLIB} $@)
                     74:        -rm -rf ${top_srcdir}/libtmp
                     75:
                     76: #asir.o: umain.o ${ASIRLIB} ${GLIB}
                     77: #      -rm $@
                     78: #      ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS}
                     79:
1.3       ohara      80: install-libasir: libasir.a
1.17      ohara      81:        mkdir -p ${DESTDIR}${libdir}
                     82:        ${INSTALL_DATA} libasir.a ${DESTDIR}${libdir}/libasir${libasir_postfix}.a
1.4       ohara      83:
1.18      ohara      84: install-libasir-gc: libasir-gc.a
                     85:        mkdir -p ${DESTDIR}${libdir}
                     86:        ${INSTALL_DATA} libasir-gc.a ${DESTDIR}${libdir}/libasir-gc.a
                     87:
                     88: install-openxm: asir${EXEEXT} install-libasir install-libasir-gc
1.17      ohara      89:        -mkdir -p ${DESTDIR}${bindir}
                     90:        ${INSTALL_PROGRAM} asir ${DESTDIR}${bindir}
                     91:        -mkdir -p ${DESTDIR}${asirdir}
1.4       ohara      92:        (cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib)
1.17      ohara      93:        -rm -f ${DESTDIR}${bindir}/ox_asir${EXEEXT}
                     94:        (cd ${DESTDIR}${bindir} ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT})
                     95:        -(cd ${DESTDIR}${asirdir}; \
1.5       ohara      96:     rm -f asir${EXEEXT} ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT})
1.17      ohara      97:        (cd ${DESTDIR}${asirdir} ; \
1.5       ohara      98:        ${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \
                     99:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
                    100:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
                    101:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})
1.7       ohara     102:        (cd ${top_srcdir}/include; ${MAKE} install)
1.8       ohara     103:        (cd ${top_srcdir}/parse; ${MAKE} install)
1.4       ohara     104:
                    105: install-lib:
                    106:        (cd ${top_srcdir}/lib; ${MAKE} install-lib)
1.17      ohara     107:        -(cd ${DESTDIR}${asirdir}; \
1.6       ohara     108:        rm -f ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     109:        (cd ${DESTDIR}${asirdir} ; \
1.4       ohara     110:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
                    111:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
                    112:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     113:        -mkdir -p ${DESTDIR}${bindir}
                    114:        -rm -f ${DESTDIR}${bindir}/asir${EXEEXT}
                    115:        (cd ${DESTDIR}${bindir} ; ${LN_S} ../lib/asir/asir${EXEEXT} asir${EXEEXT})
1.4       ohara     116:
                    117: install-doc:
                    118:        (cd ${top_srcdir}/lib; ${MAKE} install-doc)
1.16      ohara     119:
                    120: tarball:
                    121:        -rm -rf tmp
                    122:        -mkdir tmp
                    123:        DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm
                    124:        (cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz
                    125:        -rm -rf tmp

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