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

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

1.36    ! ohara       1: ## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.35 2012/05/09 06:17:13 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
1.31      ohara      15: asir_LDADD    = libasir.a @ASIR_GCLIB@
1.17      ohara      16: CLEANFILES    = ${asir_LDADD} asir-openxm-${VERSION}.tgz
                     17:
1.22      ohara      18: GC_TAR_GZ     = ${GC}.tar.gz
1.36    ! ohara      19: GC_PATCH      = gc-7.diff gc-7.0-risa.diff
1.22      ohara      20: GC_MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
                     21: OX_FETCH      = ${bindir}/oxfetch.sh
1.21      noro       22:
1.17      ohara      23: DEFS     = @DEFS@ -DASIR_LIBDIR=\"${asirdir}\"
1.1       ohara      24: INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \
1.32      ohara      25:            @GCINC@ @PARIINC@ @X_CFLAGS@
1.1       ohara      26:
1.31      ohara      27: GLIB  = @ASIR_GCLIB@
1.1       ohara      28: ALIB  = asm/libasm.a
                     29: BLIB  = builtin/libfunc.a
                     30: ELIB  = engine/libca.a
                     31: FLIB  = fft/libdft.a
                     32: IOLIB = io/libio.a
                     33: PLIB  = parse/libparse.a
                     34:
                     35: ASIRLIB  = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB}
1.32      ohara      36: LIBS     = @LIBS@ @GCLIB@ @PARILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS}
1.1       ohara      37: # EXTRALIBS = @EXTRALIBS@
                     38:
1.33      ohara      39: all-recursive: ${GLIB}
                     40:
1.1       ohara      41: umain.o: parse/main.c
                     42:        ${COMPILE} -DUINIT main.c -o umain.o
                     43:
1.30      ohara      44: libasir-gc.a: ${GC_PATCH}
1.22      ohara      45:        -if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \
                     46:                if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \
                     47:                        ${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \
                     48:                fi ; \
                     49:                touch ${top_srcdir}/.gc_fetch_done ; \
                     50:        fi
                     51:        -if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \
1.23      ohara      52:            (cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \
1.28      ohara      53:                for i in ${GC_PATCH} ; do \
                     54:            (cd ${top_srcdir}/${GC}; patch -p1 < ../$$i) ; \
                     55:                done ; \
1.22      ohara      56:            touch ${top_srcdir}/.gc_risa_done ; \
1.21      noro       57:        fi
1.20      ohara      58:        -if [ "${USE_GC_SPARC64}" = yes \
1.22      ohara      59:             -a ! -f ${top_srcdir}/${GC}/.patch_gc_sparc64_done ]; then \
                     60:            (cd ${top_srcdir}/${GC}; patch -p0 < ../gc_sparc64.diff) ; \
                     61:            touch ${top_srcdir}/${GC}/.patch_gc_sparc64_done ; \
1.11      ohara      62:        fi
1.22      ohara      63:        -if [ ! -f ${top_srcdir}/${GC}/.configure_done ]; then \
1.26      ohara      64:            (cd ${top_srcdir}/${GC}; ./configure ${GC_CONFIGURE_ARGS}) ; \
1.22      ohara      65:            touch ${top_srcdir}/${GC}/.configure_done ; \
1.1       ohara      66:        fi
1.22      ohara      67:        (cd ${top_srcdir}/${GC}; ${MAKE})
1.29      ohara      68:        cp ${top_srcdir}/${GC}/.libs/libgc.a $@
1.1       ohara      69:
1.30      ohara      70: libasir.a: ${ASIRLIB} ${GLIB} parse/gc_risa.c
1.1       ohara      71:        -mkdir ${top_srcdir}/libtmp
                     72:        -rm -f ${top_srcdir}/libtmp/*  ${top_srcdir}/$@
                     73:        for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done
1.29      ohara      74:        (cd ${top_srcdir}/parse; ${MAKE} gc_risa.o; cp gc_risa.o ../libtmp)
1.1       ohara      75:        (cd ${top_srcdir}/libtmp; ${AR} cq ../$@ *.o)
                     76:        (cd ${top_srcdir}; ${RANLIB} $@)
                     77:        -rm -rf ${top_srcdir}/libtmp
                     78:
1.3       ohara      79: install-libasir: libasir.a
1.17      ohara      80:        mkdir -p ${DESTDIR}${libdir}
                     81:        ${INSTALL_DATA} libasir.a ${DESTDIR}${libdir}/libasir${libasir_postfix}.a
1.4       ohara      82:
1.18      ohara      83: install-libasir-gc: libasir-gc.a
                     84:        mkdir -p ${DESTDIR}${libdir}
                     85:        ${INSTALL_DATA} libasir-gc.a ${DESTDIR}${libdir}/libasir-gc.a
                     86:
                     87: install-openxm: asir${EXEEXT} install-libasir install-libasir-gc
1.17      ohara      88:        -mkdir -p ${DESTDIR}${bindir}
                     89:        ${INSTALL_PROGRAM} asir ${DESTDIR}${bindir}
                     90:        -mkdir -p ${DESTDIR}${asirdir}
1.4       ohara      91:        (cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib)
1.17      ohara      92:        -rm -f ${DESTDIR}${bindir}/ox_asir${EXEEXT}
                     93:        (cd ${DESTDIR}${bindir} ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT})
                     94:        -(cd ${DESTDIR}${asirdir}; \
1.5       ohara      95:     rm -f asir${EXEEXT} ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT})
1.17      ohara      96:        (cd ${DESTDIR}${asirdir} ; \
1.5       ohara      97:        ${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \
                     98:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
                     99:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
                    100:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})
1.7       ohara     101:        (cd ${top_srcdir}/include; ${MAKE} install)
1.8       ohara     102:        (cd ${top_srcdir}/parse; ${MAKE} install)
1.4       ohara     103:
                    104: install-lib:
                    105:        (cd ${top_srcdir}/lib; ${MAKE} install-lib)
1.17      ohara     106:        -(cd ${DESTDIR}${asirdir}; \
1.6       ohara     107:        rm -f ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     108:        (cd ${DESTDIR}${asirdir} ; \
1.4       ohara     109:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
                    110:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
                    111:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})
1.17      ohara     112:        -mkdir -p ${DESTDIR}${bindir}
                    113:        -rm -f ${DESTDIR}${bindir}/asir${EXEEXT}
                    114:        (cd ${DESTDIR}${bindir} ; ${LN_S} ../lib/asir/asir${EXEEXT} asir${EXEEXT})
1.4       ohara     115:
                    116: install-doc:
                    117:        (cd ${top_srcdir}/lib; ${MAKE} install-doc)
1.16      ohara     118:
                    119: tarball:
                    120:        -rm -rf tmp
                    121:        -mkdir tmp
                    122:        DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm
                    123:        (cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz
                    124:        -rm -rf tmp
1.34      ohara     125:
                    126: clean-gc:
                    127:        -rm -rf ${top_srcdir}/.gc_*_done ${top_srcdir}/${GC}
                    128:        -rm -rf ${top_srcdir}/autom4te.cache
                    129:
                    130: distclean-recursive: clean-gc

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