[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / pari

File: [local] / OpenXM / src / pari / Makefile (download)

Revision 1.12, Wed Oct 3 01:47:29 2001 UTC (22 years, 7 months ago) by noro
Branch: MAIN
Changes since 1.11: +3 -3 lines

!!!Important!!!  (full rebuild may be necessary)

Asir2000 now links pari-2.2, so the pari/Makefile has been changed to
make pari-2.2.
Added pari(factor,..) and pari(allocatemem,..).

pari(factor,Poly) : univariate factorization by knapsack algorithm.
pari(allocatemem,SIZE) : sets the paristack size to SIZE byte.
pari(allocatemem) : doubles the paristack.

# $OpenXM: OpenXM/src/pari/Makefile,v 1.12 2001/10/03 01:47:29 noro Exp $

PARI = ../../../OpenXM_contrib/pari-2.2
OpenXM_ROOT = ../../../OpenXM

all: configure
	@if [ ! -f ./.make_done ]; then \
		(cd $(PARI) ; make all) \
	fi
	@touch ./.make_done

install: install-lib-bin

install-lib-bin: all install-lib
	(cd $(PARI)/O*-* ; make install-lib-dyn)
	(cd $(PARI)/O*-* ; make install-include)
	(cd $(PARI)/O*-* ; make install-bin)
	(cd $(PARI)/O*-* ; make install-misc)
	(cd $(PARI)/O*-* ; make install-man)
	(cd $(PARI)/O*-* ; make install-data)

install-doc: all 
	(cd $(PARI) ; make doc)
	@if [ ! -d $(OpenXM_ROOT)/doc/pari ]; then \
	   mkdir $(OpenXM_ROOT)/doc/pari ;\
	fi
	-cp $(OpenXM_ROOT)/lib/pari/users.dvi  $(OpenXM_ROOT)/doc/pari/users.dvi
	-cp $(OpenXM_ROOT)/lib/pari/tutorial.dvi  $(OpenXM_ROOT)/doc/pari/tutorial.dvi

clean:
	@if [ -f ./.make_done ]; then \
		(cd $(PARI) ; make clean) \
	fi
	@rm -f ./.make_done ./.configure_done

distclean:
	@cat BINARIES | xargs -t rm -rf

configure:
	@if [ ! -f ./.configure_done ]; then \
		(cd $(PARI) ; ./Configure --prefix=../../../OpenXM) \
	fi
	@touch ./.configure_done

install-lib: all
	(cd $(PARI) ; make install-lib-sta)
	ranlib ../../lib/libpari-2.2.a