version 1.2, 2018/09/19 06:51:27 |
version 1.5, 2020/01/04 15:57:08 |
|
|
## $OpenXM: OpenXM_contrib2/asir2018/Makefile.am,v 1.1 2018/09/19 05:45:05 noro Exp $ |
## $OpenXM: OpenXM_contrib2/asir2018/Makefile.am,v 1.4 2018/09/27 02:39:36 noro Exp $ |
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
if USE_PLOT |
if USE_PLOT |
|
|
|
|
SUBDIRS = asm builtin engine fft include io lib parse ${PLOTDIR} |
SUBDIRS = asm builtin engine fft include io lib parse ${PLOTDIR} |
|
|
Asirdir = ${libdir}/Asir |
asirdir = ${libdir}/asir |
Asir_PROGRAMS = Asir |
asir_PROGRAMS = asir |
Asir_SOURCES = parse/main.c |
asir_SOURCES = parse/main.c |
Asir_LDADD = libAsir.a @ASIR_GCLIB@ |
asir_LDADD = libasir.a @ASIR_GCLIB@ |
CLEANFILES = ${Asir_LDADD} Asir-openxm-${VERSION}.tgz |
CLEANFILES = ${asir_LDADD} asir-openxm-${VERSION}.tgz |
|
|
GC_TAR_GZ = gc-7.4.2.tar.gz |
GC_TAR_GZ = gc-7.4.2.tar.gz |
GC_PATCH = gc-7.diff gc-7.0-risa.diff |
GC_PATCH = gc-7.diff gc-7.4.2-risa.diff |
LIB_ATOMIC = libatomic_ops-7.4.0 |
LIB_ATOMIC = libatomic_ops-7.4.0 |
LIB_ATOMIC_TAR_GZ = ${LIB_ATOMIC}.tar.gz |
LIB_ATOMIC_TAR_GZ = ${LIB_ATOMIC}.tar.gz |
#GC_TAR_GZ = ${GC}.tar.gz |
|
#GC_PATCH = gc6.diff gc6-risa.diff |
|
GC_MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
GC_MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
OX_FETCH = ${bindir}/oxfetch.sh |
OX_FETCH = ${bindir}/oxfetch.sh |
|
|
DEFS = @DEFS@ -DASIR_LIBDIR=\"${Asirdir}\" |
DEFS = @DEFS@ -DASIR_LIBDIR=\"${asirdir}\" |
AM_CPPFLAGS = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \ |
AM_CPPFLAGS = -I${top_srcdir}/include -I${top_srcdir}/parse -I${top_srcdir}/io \ |
-I${prefix}/include @GCINC@ @PARIINC@ @X_CFLAGS@ |
-I${prefix}/include @GCINC@ @PARIINC@ @X_CFLAGS@ |
|
|
Line 46 all-recursive: ${GLIB} |
|
Line 44 all-recursive: ${GLIB} |
|
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: ${GC_PATCH} |
libasir-gc.a: ${GC_PATCH} |
-if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \ |
-if [ ! -f ${top_srcdir}/.gc_fetch_done ]; then \ |
if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \ |
if [ ! -f ${GC_DISTDIR}/${GC_TAR_GZ} ]; then \ |
${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \ |
${OX_FETCH} ${GC_MASTER_SITE}${GC_TAR_GZ} ${GC_DISTDIR}; \ |
Line 74 libAsir-gc.a: ${GC_PATCH} |
|
Line 72 libAsir-gc.a: ${GC_PATCH} |
|
(cd ${top_srcdir}/${GC}; ${MAKE}) |
(cd ${top_srcdir}/${GC}; ${MAKE}) |
cp ${top_srcdir}/${GC}/.libs/libgc.a $@ |
cp ${top_srcdir}/${GC}/.libs/libgc.a $@ |
|
|
libAsir.a: ${ASIRLIB} ${GLIB} parse/gc_risa.c |
libasir.a: ${ASIRLIB} ${GLIB} parse/gc_risa.c |
-mkdir ${top_srcdir}/libtmp |
-mkdir ${top_srcdir}/libtmp |
-rm -f ${top_srcdir}/libtmp/* ${top_srcdir}/$@ |
-rm -f ${top_srcdir}/libtmp/* ${top_srcdir}/$@ |
for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done |
for i in ${ASIRLIB}; do (cd ${top_srcdir}/libtmp; ar x ../$$i; chmod 644 *) done |
Line 83 libAsir.a: ${ASIRLIB} ${GLIB} parse/gc_risa.c |
|
Line 81 libAsir.a: ${ASIRLIB} ${GLIB} parse/gc_risa.c |
|
(cd ${top_srcdir}; ${RANLIB} $@) |
(cd ${top_srcdir}; ${RANLIB} $@) |
-rm -rf ${top_srcdir}/libtmp |
-rm -rf ${top_srcdir}/libtmp |
|
|
install-libAsir: libAsir.a |
install-libasir: libasir.a |
mkdir -p ${DESTDIR}${libdir} |
mkdir -p ${DESTDIR}${libdir} |
${INSTALL_DATA} libAsir.a ${DESTDIR}${libdir}/libAsir${libAsir_postfix}.a |
${INSTALL_DATA} libasir.a ${DESTDIR}${libdir}/libasir${libasir_postfix}.a |
|
|
install-libAsir-gc: libAsir-gc.a |
install-libasir-gc: libasir-gc.a |
mkdir -p ${DESTDIR}${libdir} |
mkdir -p ${DESTDIR}${libdir} |
${INSTALL_DATA} libAsir-gc.a ${DESTDIR}${libdir}/libAsir-gc.a |
${INSTALL_DATA} libasir-gc.a ${DESTDIR}${libdir}/libasir-gc.a |
|
|
install-openxm: Asir${EXEEXT} install-libAsir install-libAsir-gc |
install-openxm: asir${EXEEXT} install-libasir install-libasir-gc |
-mkdir -p ${DESTDIR}${bindir} |
-mkdir -p ${DESTDIR}${bindir} |
${INSTALL_PROGRAM} Asir ${DESTDIR}${bindir} |
${INSTALL_PROGRAM} asir ${DESTDIR}${bindir} |
-mkdir -p ${DESTDIR}${Asirdir} |
-mkdir -p ${DESTDIR}${asirdir} |
(cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib) |
(cd ${top_srcdir}/lib; ${MAKE} install-doc install-lib) |
-rm -f ${DESTDIR}${bindir}/ox_Asir${EXEEXT} |
-rm -f ${DESTDIR}${bindir}/ox_asir${EXEEXT} |
(cd ${DESTDIR}${bindir} ; ${LN_S} Asir${EXEEXT} ox_Asir${EXEEXT}) |
(cd ${DESTDIR}${bindir} ; ${LN_S} asir${EXEEXT} ox_asir${EXEEXT}) |
-(cd ${DESTDIR}${Asirdir}; \ |
-(cd ${DESTDIR}${asirdir}; \ |
rm -f Asir${EXEEXT} ox_Asir${EXEEXT} ox_Launch${EXEEXT} ox_Plot${EXEEXT}) |
rm -f asir${EXEEXT} ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT}) |
(cd ${DESTDIR}${Asirdir} ; \ |
(cd ${DESTDIR}${asirdir} ; \ |
${LN_S} ../../bin/Asir${EXEEXT} Asir${EXEEXT} ; \ |
${LN_S} ../../bin/asir${EXEEXT} asir${EXEEXT} ; \ |
${LN_S} Asir${EXEEXT} ox_Asir${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \ |
${LN_S} Asir${EXEEXT} ox_Launch${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \ |
${LN_S} Asir${EXEEXT} ox_Plot${EXEEXT}) |
${LN_S} asir${EXEEXT} ox_plot${EXEEXT}) |
(cd ${top_srcdir}/include; ${MAKE} install) |
(cd ${top_srcdir}/include; ${MAKE} install) |
(cd ${top_srcdir}/parse; ${MAKE} install) |
(cd ${top_srcdir}/parse; ${MAKE} install) |
|
|
install-lib: |
install-lib: |
(cd ${top_srcdir}/lib; ${MAKE} install-lib) |
(cd ${top_srcdir}/lib; ${MAKE} install-lib) |
-(cd ${DESTDIR}${Asirdir}; \ |
-(cd ${DESTDIR}${asirdir}; \ |
rm -f ox_Asir${EXEEXT} ox_Launch${EXEEXT} ox_Plot${EXEEXT}) |
rm -f ox_asir${EXEEXT} ox_launch${EXEEXT} ox_plot${EXEEXT}) |
(cd ${DESTDIR}${Asirdir} ; \ |
(cd ${DESTDIR}${asirdir} ; \ |
${LN_S} Asir${EXEEXT} ox_Asir${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_asir${EXEEXT} ; \ |
${LN_S} Asir${EXEEXT} ox_Launch${EXEEXT} ; \ |
${LN_S} asir${EXEEXT} ox_launch${EXEEXT} ; \ |
${LN_S} Asir${EXEEXT} ox_Plot${EXEEXT}) |
${LN_S} asir${EXEEXT} ox_plot${EXEEXT}) |
-mkdir -p ${DESTDIR}${bindir} |
-mkdir -p ${DESTDIR}${bindir} |
-rm -f ${DESTDIR}${bindir}/Asir${EXEEXT} |
-rm -f ${DESTDIR}${bindir}/asir${EXEEXT} |
(cd ${DESTDIR}${bindir} ; ${LN_S} ../lib/Asir/Asir${EXEEXT} Asir${EXEEXT}) |
(cd ${DESTDIR}${bindir} ; ${LN_S} ../lib/asir/asir${EXEEXT} asir${EXEEXT}) |
|
|
install-doc: |
install-doc: |
(cd ${top_srcdir}/lib; ${MAKE} install-doc) |
(cd ${top_srcdir}/lib; ${MAKE} install-doc) |
|
|
-rm -rf tmp |
-rm -rf tmp |
-mkdir tmp |
-mkdir tmp |
DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm |
DESTDIR=`cd tmp; pwd` ${MAKE} install-openxm |
(cd tmp${prefix}; tar cf - * ) | gzip -c > Asir-openxm-${VERSION}.tgz |
(cd tmp${prefix}; tar cf - * ) | gzip -c > asir-openxm-${VERSION}.tgz |
-rm -rf tmp |
-rm -rf tmp |
|
|
clean-gc: |
clean-gc: |