Annotation of OpenXM/src/kan96xx/gmp-2.0.2-ssh-2/Makefile.am, Revision 1.1
1.1 ! takayama 1: ## Process this file with automake to produce Makefile.in
! 2:
! 3: # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
! 4:
! 5: # This file is part of the GNU MP Library.
! 6:
! 7: # The GNU MP Library is free software; you can redistribute it and/or modify
! 8: # it under the terms of the GNU Library General Public License as published by
! 9: # the Free Software Foundation; either version 2 of the License, or (at your
! 10: # option) any later version.
! 11:
! 12: # The GNU MP Library is distributed in the hope that it will be useful, but
! 13: # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
! 14: # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
! 15: # License for more details.
! 16:
! 17: # You should have received a copy of the GNU Library General Public License
! 18: # along with the GNU MP Library; see the file COPYING.LIB. If not, write to
! 19: # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
! 20: # MA 02111-1307, USA.
! 21:
! 22: AUTOMAKE_OPTIONS = 1.0 foreign dist-zip no-dependencies
! 23:
! 24: SUBDIRS = mpn mpz mpf mpq mpbsd demos
! 25:
! 26: lib_LIBRARIES = libgmp.a libmp.a
! 27: info_TEXINFOS = gmp.texi
! 28: include_HEADERS = gmp.h mp.h
! 29: noinst_HEADERS = gmp-impl.h longlong.h stack-alloc.h urandom.h
! 30:
! 31: libgmp_a_SOURCES = memory.c mp_set_fns.c mp_clz_tab.c version.c stack-alloc.c \
! 32: mp_bpl.c extract-double.c insert-double.c
! 33: libgmp_a_LIBADD = @LIBOBJS@
! 34:
! 35: libmp_a_SOURCES = memory.c mp_set_fns.c mp_clz_tab.c version.c stack-alloc.c \
! 36: mp_bpl.c extract-double.c insert-double.c
! 37:
! 38: EXTRA_DIST = PROJECTS SPEED cre-mparam.c make.bat config.h.in acconfig.h
! 39:
! 40: INCLUDES = -I. -I$(srcdir) -Impn -I$(srcdir)/mpn
! 41:
! 42: libgmp.a: $(libgmp_a_OBJECTS) $(libgmp_a_LIBADD) all-recursive
! 43: -rm -rf tmpdirgmp
! 44: -mkdir tmpdirgmp
! 45: for i in mpn mpz mpf mpq; \
! 46: do \
! 47: mkdir tmpdirgmp/$$i; \
! 48: ( cd tmpdirgmp/$$i; $(AR) x ../../$$i/lib$$i.a ); \
! 49: done
! 50: cd tmpdirgmp; for i in */*.o; do mv $$i `echo $$i | sed 's@/@_@g'`;done
! 51: cp $(libgmp_a_OBJECTS) $(libgmp_a_LIBADD) tmpdirgmp
! 52: cd tmpdirgmp; $(AR) cru $@ *.o
! 53: $(RANLIB) tmpdirgmp/$@
! 54: -rm -f $@
! 55: mv tmpdirgmp/$@ .
! 56: -rm -rf tmpdirgmp
! 57:
! 58: # There appear to be strange problems with ar and parallel makes; I've added
! 59: # dummy depend on libgmp.a here to serialize these.
! 60: libmp.a: $(libmp_a_OBJECTS) $(libmp_a_LIBADD) all-recursive libgmp.a
! 61: -rm -rf tmpdirmp
! 62: -mkdir tmpdirmp
! 63: for i in mpn mpbsd; \
! 64: do \
! 65: mkdir tmpdirmp/$$i; \
! 66: ( cd tmpdirmp/$$i; $(AR) x ../../$$i/lib$$i.a ); \
! 67: done
! 68: cp $(libmp_a_OBJECTS) $(libmp_a_LIBADD) tmpdirmp
! 69: cd tmpdirmp; for i in */*.o; do mv $$i `echo $$i | sed 's@/@_@g'`; done
! 70: cd tmpdirmp; $(AR) cru $@ *.o
! 71: $(RANLIB) tmpdirmp/$@
! 72: -rm -f $@
! 73: mv tmpdirmp/$@ .
! 74: -rm -rf tmpdirmp
! 75:
! 76:
! 77: ## Code to copy mpn assembly code directories into the distribution. This
! 78: ## should really be in the mpn Makefile.am, but there is a bug in automake-1.0
! 79: ## which makes that difficult to do. So i've put this here for now.
! 80:
! 81: ASMDIRS = a29k alpha clipper cray generic hppa i960 m68k m88k mips2 mips3 \
! 82: msdos ns32k power powerpc32 powerpc64 pyr sh sparc32 sparc64 vax \
! 83: x86 z8000 z8000x
! 84:
! 85: # Copy assembly directories into the distribution.
! 86: dist-hook:
! 87: for dir in $(ASMDIRS); do \
! 88: (cd $(srcdir)/mpn && tar cf - $$dir) | \
! 89: (cd $(distdir)/mpn && tar xpf -); \
! 90: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>