version 1.33, 2009/03/04 06:51:41 |
version 1.48, 2016/09/22 07:15:33 |
|
|
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.32 2009/02/13 13:21:19 ohara Exp $ |
## $OpenXM: OpenXM_contrib2/asir2000/Makefile.am,v 1.47 2015/08/20 08:39:01 ohara Exp $ |
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
AUTOMAKE_OPTIONS = foreign no-dependencies 1.5 |
if USE_PLOT |
if USE_PLOT |
Line 15 asir_SOURCES = parse/main.c |
|
Line 15 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}.tar.gz |
GC_TAR_GZ = gc-7.4.2.tar.gz |
if USE_GC7 |
GC_PATCH = gc-7.diff gc-7.0-risa.diff |
GC_PATCH = gc-7.0-risa.diff |
LIB_ATOMIC = libatomic_ops-7.4.0 |
else |
LIB_ATOMIC_TAR_GZ = ${LIB_ATOMIC}.tar.gz |
GC_PATCH = gc6.diff gc6-risa.diff |
#GC_TAR_GZ = ${GC}.tar.gz |
endif |
#GC_PATCH = gc6.diff gc6-risa.diff |
GC_DISTDIR = @GC_DISTDIR@ |
GC_MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
GC_MASTER_SITE=ftp://ftp.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}\" |
INCLUDES = -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 \ |
@GCINC@ @PARIINC@ @X_CFLAGS@ |
-I${prefix}/include @GCINC@ @PARIINC@ @X_CFLAGS@ |
|
|
GLIB = @ASIR_GCLIB@ |
GLIB = @ASIR_GCLIB@ |
ALIB = asm/libasm.a |
ALIB = asm/libasm.a |
Line 36 ELIB = engine/libca.a |
|
Line 35 ELIB = engine/libca.a |
|
FLIB = fft/libdft.a |
FLIB = fft/libdft.a |
IOLIB = io/libio.a |
IOLIB = io/libio.a |
PLIB = parse/libparse.a |
PLIB = parse/libparse.a |
|
GMPLIB = -L ${libdir} @GMPLIB@ |
|
|
ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB} |
ASIRLIB = ${BLIB} ${PLIB} ${IOLIB} ${PLLIB} ${ELIB} ${FLIB} ${ALIB} |
LIBS = @LIBS@ @GCLIB@ @PARILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} -lm ${EXTRALIBS} |
LIBS = @LIBS@ @GCLIB@ @PARILIB@ @LAPACKLIB@ ${X11LIB} ${FEPLIB} ${GMPLIB} -lm @WSLIB@ ${EXTRALIBS} |
# EXTRALIBS = @EXTRALIBS@ |
# EXTRALIBS = @EXTRALIBS@ |
|
|
all-recursive: ${GLIB} |
all-recursive: ${GLIB} |
Line 50 libasir-gc.a: ${GC_PATCH} |
|
Line 50 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}; \ |
|
${OX_FETCH} ${GC_MASTER_SITE}${LIB_ATOMIC_TAR_GZ} ${GC_DISTDIR}; \ |
fi ; \ |
fi ; \ |
touch ${top_srcdir}/.gc_fetch_done ; \ |
touch ${top_srcdir}/.gc_fetch_done ; \ |
fi |
fi |
-if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \ |
-if [ ! -f ${top_srcdir}/.gc_risa_done ]; then \ |
(cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \ |
(cd ${top_srcdir}; tar xzvf ${GC_DISTDIR}/${GC_TAR_GZ}) ; \ |
|
(cd ${top_srcdir}/${GC}; tar xzvf ${GC_DISTDIR}/${LIB_ATOMIC_TAR_GZ}; mv ${LIB_ATOMIC} libatomic_ops) ; \ |
for i in ${GC_PATCH} ; do \ |
for i in ${GC_PATCH} ; do \ |
(cd ${top_srcdir}/${GC}; patch -p1 < ../$$i) ; \ |
(cd ${top_srcdir}/${GC}; patch -p1 < ../$$i) ; \ |
done ; \ |
done ; \ |
|
|
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: |
|
-rm -rf ${top_srcdir}/.gc_*_done ${top_srcdir}/${GC} |
|
-rm -rf ${top_srcdir}/autom4te.cache |
|
|
|
distclean-recursive: clean-gc |