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

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

Revision 1.14, Tue Feb 8 04:47:08 2000 UTC (24 years, 3 months ago) by noro
Branch: MAIN
Changes since 1.13: +46 -4 lines

Cleaned up source files for creating libasir*.a with various
configurations.

Added new targets in src/asir2000/Makefile

install-lib-with-pari : libasir_pari.a -> OpenXM/lib
install-lib-small : libasir.a -> OpenXM/lib
install : asir libasir_pari_X.a libasir_gc.a -> OpenXM/lib

libasir_pari_X.a requires libpari.a and X11 libraries.
libasir_pari.a requires libpari.a.
libasir.a requires nothing.

# $OpenXM: OpenXM/src/asir2000/Makefile,v 1.14 2000/02/08 04:47:08 noro Exp $

ASIR = ../../../OpenXM_contrib2/asir2000
ASIR_PARI = ../../../OpenXM_contrib2/asir2000-pari
ASIR_SMALL = ../../../OpenXM_contrib2/asir2000-small
PARI = ../pari

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

with-pari: configure-with-pari
	@if [ ! -f ./.make_with_pari_done ]; then \
		(cd $(ASIR_PARI) ; make all) \
	fi
	@touch ./.make_with_pari_done

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

install: all
	(cd $(ASIR) ; make install ; make install-lib; \
		make install-libasir ; make install-libgc )

install-lib-with-pari: with-pari
	(cd $(ASIR_PARI) ; make install-libasir)

install-lib-small: small
	(cd $(ASIR_SMALL) ; make install-libasir)

clean:
	(cd $(ASIR) ; make clean)
	-@if [ -d $(ASIR_PARI) ]; then (cd $(ASIR_PARI) ; make clean)  fi
	-@if [ -d $(ASIR_SMALL) ]; then (cd $(ASIR_SMALL) ; make clean)  fi
	@rm -f ./.make_* ./.configure_* ./.install-*

distclean: clean
	@rm -rf $(ASIR_PARI)
	@rm -rf $(ASIR_SMALL)
	@cat BINARIES | xargs -t rm -rf

configure: install-pari
	@if [ ! -f ./.configure_done ]; then \
		(cd $(ASIR) ; ./configure -plot -pari; \
			xmkmf ; make Makefiles ; make depend) \
	fi
	@touch ./.configure_done

configure-with-pari: configure
	-@if [ ! -f ./.configure_with_pari_done ]; then \
		mkdir $(ASIR_PARI) ; \
		(cd $(ASIR_PARI) ; lndir ../asir2000 ; ./configure -pari ; \
			xmkmf ; make Makefiles ; make clean; make depend) \
	fi
	@touch ./.configure_with_pari_done

configure-small: configure
	-@if [ ! -f ./.configure_small_done ]; then \
		mkdir $(ASIR_SMALL) ; \
		(cd $(ASIR_SMALL) ; lndir ../asir2000 ; ./configure ; \
			xmkmf ; make Makefiles ; make clean; make depend) \
	fi
	@touch ./.configure_small_done

install-pari:
	@if [ ! -f ./.install-pari_done ]; then \
		(cd $(PARI) ; make install) \
	fi
	@touch ./.install-pari_done