Annotation of OpenXM_contrib2/asir2000/Makefile.am, Revision 1.44
1.44 ! ohara 1: ## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.43 2015/08/04 06:20:44 noro 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.44 ! ohara 18: GC_TAR_GZ = gc-7.4.2.tar.gz
1.39 noro 19: GC_PATCH = gc-7.diff gc-7.0-risa.diff
1.44 ! ohara 20: LIB_ATOMIC = libatomic_ops-7.4.0
! 21: LIB_ATOMIC_TAR_GZ = ${LIB_ATOMIC}.tar.gz
1.39 noro 22: #GC_TAR_GZ = ${GC}.tar.gz
23: #GC_PATCH = gc6.diff gc6-risa.diff
1.42 ohara 24: GC_MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.22 ohara 25: OX_FETCH = ${bindir}/oxfetch.sh
1.21 noro 26:
1.17 ohara 27: DEFS = @DEFS@ -DASIR_LIBDIR=\"${asirdir}\"
1.44 ! ohara 28: AM_CPPFLAGS = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \
1.41 noro 29: -I${prefix}/include @GCINC@ @PARIINC@ @X_CFLAGS@
1.1 ohara 30:
1.31 ohara 31: GLIB = @ASIR_GCLIB@
1.1 ohara 32: ALIB = asm/libasm.a
33: BLIB = builtin/libfunc.a
34: ELIB = engine/libca.a
35: FLIB = fft/libdft.a
36: IOLIB = io/libio.a
37: PLIB = parse/libparse.a
1.43 noro 38: GMPLIB = ${libdir}/libmpfr.a ${libdir}/libgmp.a
1.1 ohara 39:
40: ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB}
1.40 noro 41: LIBS = @LIBS@ @GCLIB@ @PARILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} ${GMPLIB} -lm ${EXTRALIBS}
1.1 ohara 42: # EXTRALIBS = @EXTRALIBS@
43:
1.33 ohara 44: all-recursive: ${GLIB}
45:
1.1 ohara 46: umain.o: parse/main.c
47: ${COMPILE} -DUINIT main.c -o umain.o
48:
1.30 ohara 49: libasir-gc.a: ${GC_PATCH}
1.22 ohara 50: -if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \
51: if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \
52: ${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \
1.44 ! ohara 53: ${OX_FETCH} ${GC_MASTER_SITE}${LIB_ATOMIC_TAR_GZ} ${GC_DISTDIR}; \
1.22 ohara 54: fi ; \
55: touch ${top_srcdir}/.gc_fetch_done ; \
56: fi
57: -if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \
1.23 ohara 58: (cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \
1.44 ! ohara 59: (cd ${top_srcdir}/${GC}; tar xzvf ${GC_DISTDIR}/${LIB_ATOMIC_TAR_GZ}; mv ${LIB_ATOMIC} libatomic_ops) ; \
1.28 ohara 60: for i in ${GC_PATCH} ; do \
61: (cd ${top_srcdir}/${GC}; patch -p1 < ../$$i) ; \
62: done ; \
1.22 ohara 63: touch ${top_srcdir}/.gc_risa_done ; \
1.21 noro 64: fi
1.20 ohara 65: -if [ "${USE_GC_SPARC64}" = yes \
1.22 ohara 66: -a ! -f ${top_srcdir}/${GC}/.patch_gc_sparc64_done ]; then \
67: (cd ${top_srcdir}/${GC}; patch -p0 < ../gc_sparc64.diff) ; \
68: touch ${top_srcdir}/${GC}/.patch_gc_sparc64_done ; \
1.11 ohara 69: fi
1.22 ohara 70: -if [ ! -f ${top_srcdir}/${GC}/.configure_done ]; then \
1.26 ohara 71: (cd ${top_srcdir}/${GC}; ./configure ${GC_CONFIGURE_ARGS}) ; \
1.22 ohara 72: touch ${top_srcdir}/${GC}/.configure_done ; \
1.1 ohara 73: fi
1.22 ohara 74: (cd ${top_srcdir}/${GC}; ${MAKE})
1.29 ohara 75: cp ${top_srcdir}/${GC}/.libs/libgc.a $@
1.1 ohara 76:
1.30 ohara 77: libasir.a: ${ASIRLIB} ${GLIB} parse/gc_risa.c
1.1 ohara 78: -mkdir ${top_srcdir}/libtmp
79: -rm -f ${top_srcdir}/libtmp/* ${top_srcdir}/$@
80: for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done
1.29 ohara 81: (cd ${top_srcdir}/parse; ${MAKE} gc_risa.o; cp gc_risa.o ../libtmp)
1.1 ohara 82: (cd ${top_srcdir}/libtmp; ${AR} cq ../$@ *.o)
83: (cd ${top_srcdir}; ${RANLIB} $@)
84: -rm -rf ${top_srcdir}/libtmp
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
1.34 ohara 132:
133: clean-gc:
134: -rm -rf ${top_srcdir}/.gc_*_done ${top_srcdir}/${GC}
135: -rm -rf ${top_srcdir}/autom4te.cache
136:
137: distclean-recursive: clean-gc
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>