version 1.1, 2003/02/23 03:05:35 |
version 1.16, 2003/03/20 07:06:31 |
|
|
# $OpenXM$ |
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.15 2003/03/20 05:36:39 ohara Exp $ |
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
if USE_PLOT |
if USE_PLOT |
PLOTDIR = plot |
PLOTDIR = plot |
PLLIB = plot/libplot.a |
PLLIB = plot/libplot.a |
X11LIB = @X_LIBS@ -lXaw -lXmu -lXt @X_PRE_LIBS@ -lXpm -lXext -lX11 @X_EXTRA_LIBS@ |
X11LIB = @X_LIBS@ -lXaw -lXmu -lXt @X_PRE_LIBS@ @XPMLIB@ -lXext -lX11 @X_EXTRA_LIBS@ |
endif |
endif |
|
|
SUBDIRS = asm builtin engine fft include io lib parse ${PLOTDIR} |
SUBDIRS = asm builtin engine fft include io lib parse ${PLOTDIR} |
Line 22 FLIB = fft/libdft.a |
|
Line 22 FLIB = fft/libdft.a |
|
IOLIB = io/libio.a |
IOLIB = io/libio.a |
PLIB = parse/libparse.a |
PLIB = parse/libparse.a |
|
|
# The ASIRLIB cannot be rearrenged. |
|
ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB} |
ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB} |
LIBS = @LIBS@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS} |
LIBS = @LIBS@ @PARILIB@ @MPILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS} |
# EXTRALIBS = @EXTRALIBS@ |
# EXTRALIBS = @EXTRALIBS@ |
|
|
bin_PROGRAMS = asir |
bin_PROGRAMS = asir |
asir_SOURCES = parse/main.c |
asir_SOURCES = parse/main.c |
asir_LDADD = ${ASIRLIB} ${GLIB} |
asir_LDADD = libasir.a libasir-gc.a |
lib_LIBRARIES = libasir.a libasir-gc.a |
CLEANFILES = ${asir_LDADD} |
CLEANFILES = libasir.a libasir-gc.a asir |
|
|
|
libasir_gc_a_SOURCES = |
|
|
|
umain.o: parse/main.c |
umain.o: parse/main.c |
${COMPILE} -DUINIT main.c -o umain.o |
${COMPILE} -DUINIT main.c -o umain.o |
|
|
libasir-gc.a: parse/gc_risa.o |
libasir-gc.a: parse/gc_risa.c |
|
-if [ "${USE_GC_ZEROPAGE}" = yes \ |
|
-a ! -f ${top_srcdir}/gc/.patch_gc_zeropage_done ]; then \ |
|
(cd ${top_srcdir}/gc; patch < ../gc_zeropage.diff) ; \ |
|
touch ${top_srcdir}/gc/.patch_gc_zeropage_done ; \ |
|
fi |
-if [ ! -f ${top_srcdir}/gc/.configure_done ]; then \ |
-if [ ! -f ${top_srcdir}/gc/.configure_done ]; then \ |
(cd ${top_srcdir}/gc; ./configure --disable-threads) ; \ |
if [ -n "${host_alias}" ]; then \ |
|
(cd ${top_srcdir}/gc; ./configure --host=${host_alias} --disable-threads) ; \ |
|
else \ |
|
(cd ${top_srcdir}/gc; ./configure --disable-threads) ; \ |
|
fi ; \ |
touch ${top_srcdir}/gc/.configure_done ; \ |
touch ${top_srcdir}/gc/.configure_done ; \ |
fi |
fi |
(cd ${top_srcdir}/gc; ${MAKE}) |
(cd ${top_srcdir}/gc; ${MAKE}) |
cp ${top_srcdir}/gc/.libs/libgc.a ${top_srcdir}/${GLIB} |
cp ${top_srcdir}/gc/.libs/libgc.a ${GLIB} |
${AR} q ${top_srcdir}/${GLIB} ${top_srcdir}/parse/gc_risa.o |
(cd ${top_srcdir}/parse; ${MAKE} gc_risa.o) |
${RANLIB} ${top_srcdir}/${GLIB} |
${AR} q ${GLIB} ${top_srcdir}/parse/gc_risa.o |
|
${RANLIB} ${GLIB} |
|
|
libasir.a: ${ASIRLIB} |
libasir.a: ${ASIRLIB} |
-mkdir ${top_srcdir}/libtmp |
-mkdir ${top_srcdir}/libtmp |
Line 61 libasir.a: ${ASIRLIB} |
|
Line 67 libasir.a: ${ASIRLIB} |
|
# ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS} |
# ld -r $@ umain.o ${ASIRLIB} ${GLIB} ${LIBS} ${EXTRALIBS} |
|
|
install-exec-hook: |
install-exec-hook: |
-if [ x${libasir_postfix} != x ] ; then \ |
-mkdir -p ${DESTDIR}${prefix}/lib/asir |
(cd ${prefix}/lib ; mv libasir.a libasir${libasir_postfix}.a) ; \ |
-if [ -x ${DESTDIR}${prefix}/bin/asir ]; then \ |
|
mv ${DESTDIR}${prefix}/bin/asir${EXEEXT} ${DESTDIR}${prefix}/lib/asir/ ; \ |
fi |
fi |
-rm -f ${prefix}/bin/ox_asir |
|
(cd ${prefix}/bin ; ${LN_S} asir ox_asir) |
install-libasir: libasir.a |
|
mkdir -p ${DESTDIR}${prefix}/lib |
|
${INSTALL_DATA} libasir.a ${DESTDIR}${prefix}/lib/libasir${libasir_postfix}.a |
|
|
|
install-openxm: asir${EXEEXT} libasir.a libasir-gc.a |
|
-mkdir -p ${DESTDIR}${prefix}/bin |
|
${INSTALL_PROGRAM} asir ${DESTDIR}${prefix}/bin/ |
|
-mkdir -p ${DESTDIR}${prefix}/lib/asir |
|
(cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib) |
|
${INSTALL_DATA} libasir.a ${DESTDIR}${prefix}/lib/libasir${libasir_postfix}.a |
|
${INSTALL_DATA} libasir-gc.a ${DESTDIR}${prefix}/lib/libasir-gc.a |
|
-rm -f ${DESTDIR}${prefix}/bin/ox_asir${EXEEXT} |
|
(cd ${DESTDIR}${prefix}/bin ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT}) |
|
-(cd ${DESTDIR}${prefix}/lib/asir; \ |
|
rm -f asir${EXEEXT} ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT}) |
|
(cd ${DESTDIR}${prefix}/lib/asir ; \ |
|
${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \ |
|
${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \ |
|
${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \ |
|
${LN_S} asir${EXEEXT} ox_plot${EXEEXT}) |
|
(cd ${top_srcdir}/include; ${MAKE} install) |
|
(cd ${top_srcdir}/parse; ${MAKE} install) |
|
|
|
install-lib: |
|
(cd ${top_srcdir}/lib; ${MAKE} install-lib) |
|
-(cd ${DESTDIR}${prefix}/lib/asir; \ |
|
rm -f ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT}) |
|
(cd ${DESTDIR}${prefix}/lib/asir ; \ |
|
${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \ |
|
${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \ |
|
${LN_S} asir${EXEEXT} ox_plot${EXEEXT}) |
|
-mkdir -p ${DESTDIR}${prefix}/bin |
|
-rm -f ${DESTDIR}${prefix}/bin/asir${EXEEXT} |
|
(cd ${DESTDIR}${prefix}/bin ; ${LN_S} ../lib/asir/asir${EXEEXT} asir${EXEEXT}) |
|
|
|
install-doc: |
|
(cd ${top_srcdir}/lib; ${MAKE} install-doc) |
|
|
|
tarball: |
|
-rm -rf tmp |
|
-mkdir tmp |
|
DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm |
|
(cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz |
|
-rm -rf tmp |