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

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

1.2     ! ohara       1: # $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.1 2003/02/23 03:05:35 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
                      7:     X11LIB  = @X_LIBS@ -lXaw -lXmu -lXt @X_PRE_LIBS@ -lXpm -lXext -lX11 @X_EXTRA_LIBS@
                      8: endif
                      9:
                     10: SUBDIRS  = asm builtin engine fft include io lib parse ${PLOTDIR}
                     11:
                     12: DEFS     = @DEFS@ -DASIR_LIBDIR=\"${prefix}/lib/asir\"
                     13: INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \
                     14:            -I${top_srcdir}/gc/include \
                     15:            @PARIINC@ @MPIINC@ @X_CFLAGS@
                     16:
                     17: GLIB  = libasir-gc.a
                     18: ALIB  = asm/libasm.a
                     19: BLIB  = builtin/libfunc.a
                     20: ELIB  = engine/libca.a
                     21: FLIB  = fft/libdft.a
                     22: IOLIB = io/libio.a
                     23: PLIB  = parse/libparse.a
                     24:
                     25: # The ASIRLIB cannot be rearrenged.
                     26: ASIRLIB  = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB}
                     27: LIBS     = @LIBS@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS}
                     28: # EXTRALIBS = @EXTRALIBS@
                     29:
                     30: bin_PROGRAMS   = asir
                     31: asir_SOURCES   = parse/main.c
                     32: asir_LDADD     = ${ASIRLIB} ${GLIB}
                     33: lib_LIBRARIES  = libasir.a libasir-gc.a
1.2     ! ohara      34: CLEANFILES     = libasir.a libasir-gc.a asir${EXEEXT}
1.1       ohara      35:
                     36: libasir_gc_a_SOURCES =
                     37:
                     38: umain.o: parse/main.c
                     39:        ${COMPILE} -DUINIT main.c -o umain.o
                     40:
                     41: libasir-gc.a: parse/gc_risa.o
                     42:        -if [ ! -f ${top_srcdir}/gc/.configure_done ]; then \
                     43:            (cd ${top_srcdir}/gc; ./configure --disable-threads) ; \
                     44:            touch ${top_srcdir}/gc/.configure_done ; \
                     45:        fi
                     46:        (cd ${top_srcdir}/gc; ${MAKE})
                     47:        cp ${top_srcdir}/gc/.libs/libgc.a ${top_srcdir}/${GLIB}
                     48:        ${AR} q ${top_srcdir}/${GLIB} ${top_srcdir}/parse/gc_risa.o
                     49:        ${RANLIB} ${top_srcdir}/${GLIB}
                     50:
                     51: libasir.a: ${ASIRLIB}
                     52:        -mkdir ${top_srcdir}/libtmp
                     53:        -rm -f ${top_srcdir}/libtmp/*  ${top_srcdir}/$@
                     54:        for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done
                     55:        (cd ${top_srcdir}/libtmp; ${AR} cq ../$@ *.o)
                     56:        (cd ${top_srcdir}; ${RANLIB} $@)
                     57:        -rm -rf ${top_srcdir}/libtmp
                     58:
                     59: #asir.o: umain.o ${ASIRLIB} ${GLIB}
                     60: #      -rm $@
                     61: #      ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS}
                     62:
                     63: install-exec-hook:
                     64:        -if [ x${libasir_postfix} != x ] ; then \
                     65:            (cd ${prefix}/lib ; mv libasir.a libasir${libasir_postfix}.a) ; \
                     66:        fi
1.2     ! ohara      67:        -rm -f ${prefix}/bin/ox_asir${EXEEXT}
        !            68:        (cd ${prefix}/bin ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT})
        !            69:        mkdir -p ${prefix}/lib/asir
        !            70:        (cd ${prefix}/lib/asir ; \
        !            71:        ${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \
        !            72:        ${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \
        !            73:        ${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \
        !            74:        ${LN_S} asir${EXEEXT} ox_plot${EXEEXT})

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