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