Annotation of OpenXM/src/asir2000/Makefile, Revision 1.19
1.19 ! ohara 1: # $OpenXM: OpenXM/src/asir2000/Makefile,v 1.18 2003/03/06 11:23:21 ohara Exp $
1.1 maekawa 2:
3: ASIR = ../../../OpenXM_contrib2/asir2000
1.14 noro 4: ASIR_PARI = ../../../OpenXM_contrib2/asir2000-pari
5: ASIR_SMALL = ../../../OpenXM_contrib2/asir2000-small
1.4 maekawa 6: PARI = ../pari
1.1 maekawa 7:
1.5 maekawa 8: all: configure
1.1 maekawa 9: @if [ ! -f ./.make_done ]; then \
10: (cd $(ASIR) ; make all) \
11: fi
12: @touch ./.make_done
13:
1.14 noro 14: with-pari: configure-with-pari
15: @if [ ! -f ./.make_with_pari_done ]; then \
16: (cd $(ASIR_PARI) ; make all) \
17: fi
18: @touch ./.make_with_pari_done
19:
20: small: configure-small
21: @if [ ! -f ./.make_small_done ]; then \
22: (cd $(ASIR_SMALL) ; make all) \
23: fi
24: @touch ./.make_small_done
25:
1.19 ! ohara 26: install-xmkmf: all
! 27: (cd $(ASIR) ; make install-bin-lib ; make install-libasir ; make install-libgc ; make install-include )
! 28:
1.1 maekawa 29: install: all
1.19 ! ohara 30: (cd $(ASIR) ; make install)
1.14 noro 31:
32: install-lib-with-pari: with-pari
33: (cd $(ASIR_PARI) ; make install-libasir)
34:
35: install-lib-small: small
36: (cd $(ASIR_SMALL) ; make install-libasir)
1.1 maekawa 37:
38: clean:
39: (cd $(ASIR) ; make clean)
1.14 noro 40: -@if [ -d $(ASIR_PARI) ]; then (cd $(ASIR_PARI) ; make clean) fi
41: -@if [ -d $(ASIR_SMALL) ]; then (cd $(ASIR_SMALL) ; make clean) fi
42: @rm -f ./.make_* ./.configure_* ./.install-*
1.1 maekawa 43:
1.10 takayama 44: distclean: clean
1.14 noro 45: @rm -rf $(ASIR_PARI)
46: @rm -rf $(ASIR_SMALL)
1.1 maekawa 47: @cat BINARIES | xargs -t rm -rf
48:
1.5 maekawa 49: configure: install-pari
1.1 maekawa 50: @if [ ! -f ./.configure_done ]; then \
1.19 ! ohara 51: (cd $(ASIR) ; \
! 52: CFLAGS="-O -g" ./configure --enable-plot --with-pari \
! 53: --prefix="`cd ../../OpenXM; pwd`") \
1.1 maekawa 54: fi
55: @touch ./.configure_done
1.14 noro 56:
57: configure-with-pari: configure
58: -@if [ ! -f ./.configure_with_pari_done ]; then \
59: mkdir $(ASIR_PARI) ; \
1.19 ! ohara 60: (cd $(ASIR_PARI) ; ../../OpenXM/bin/lndir.sh ../asir2000 ; \
! 61: CFLAGS="-O -g" ./configure --with-pari \
! 62: --prefix="`cd ../../OpenXM; pwd`") \
1.14 noro 63: fi
64: @touch ./.configure_with_pari_done
65:
66: configure-small: configure
67: -@if [ ! -f ./.configure_small_done ]; then \
68: mkdir $(ASIR_SMALL) ; \
1.19 ! ohara 69: (cd $(ASIR_SMALL) ; ../../OpenXM/bin/lndir.sh ../asir2000 ; \
! 70: CFLAGS="-O -g" ./configure \
! 71: --prefix="`cd ../../OpenXM; pwd`") \
1.17 ohara 72: fi
73: @touch ./.configure_small_done
74:
75: configure-xmkmf: install-pari
76: @if [ ! -f ./.configure_done ]; then \
77: (cd $(ASIR) ; ./configure-xmkmf -plot -pari ) \
78: fi
79: @touch ./.configure_done
80:
81: configure-xmkmf-with-pari: configure-xmkmf
82: -@if [ ! -f ./.configure_with_pari_done ]; then \
83: mkdir $(ASIR_PARI) ; \
1.18 ohara 84: (cd $(ASIR_PARI) ; ../../OpenXM/bin/lndir.sh ../asir2000 ; ./configure-xmkmf -pari ) \
1.17 ohara 85: fi
86: @touch ./.configure_with_pari_done
87:
88: configure-xmkmf-small: configure-xmkmf
89: -@if [ ! -f ./.configure_small_done ]; then \
90: mkdir $(ASIR_SMALL) ; \
1.18 ohara 91: (cd $(ASIR_SMALL) ; ../../OpenXM/bin/lndir.sh ../asir2000 ; ./configure-xmkmf ) \
1.14 noro 92: fi
93: @touch ./.configure_small_done
1.4 maekawa 94:
95: install-pari:
1.6 maekawa 96: @if [ ! -f ./.install-pari_done ]; then \
97: (cd $(PARI) ; make install) \
98: fi
99: @touch ./.install-pari_done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>