1996-09-27 06:29:02 -04:00
|
|
|
#
|
|
|
|
# Makefile for the multiple precision number library
|
|
|
|
#
|
|
|
|
|
|
|
|
include ../config.make
|
|
|
|
|
|
|
|
GMP_VERSION= gmp-1.3.2
|
|
|
|
FGMP_VERSION= fgmp-1.0b5
|
|
|
|
|
|
|
|
|
|
|
|
what:
|
|
|
|
@echo "you must specify the library you want to make"
|
|
|
|
libgmp.a:
|
|
|
|
rm -f libgmp.a gmp.h
|
|
|
|
(cd $(GMP_VERSION); $(MAKE) CC="$(CC)" CFLAGS="$(STKCFLAGS) $(ALLOC)")
|
|
|
|
ln -s $(GMP_VERSION)/libgmp.a .
|
|
|
|
ln -s $(GMP_VERSION)/gmp.h .
|
|
|
|
|
|
|
|
libfgmp.a:
|
|
|
|
rm -f libfgmp.a gmp.h
|
|
|
|
(cd $(FGMP_VERSION); $(MAKE) CC="$(CC)" CFLAGS="$(STKCFLAGS) $(ALLOC)")
|
|
|
|
ln -s $(FGMP_VERSION)/libfgmp.a .
|
1998-04-10 06:59:06 -04:00
|
|
|
ln -s $(FGMP_VERSION)/gmp.h .
|
1996-09-27 06:29:02 -04:00
|
|
|
|
|
|
|
install:
|
|
|
|
|
|
|
|
install.libs: install
|
1998-04-30 07:04:33 -04:00
|
|
|
-if [ ! -d $(ardir) ] ; then mkdir -p $(ardir); fi
|
1996-09-27 06:29:02 -04:00
|
|
|
-if [ -f libfgmp.a ] ; then \
|
1998-04-30 07:04:33 -04:00
|
|
|
$(CP) libfgmp.a $(ardir); \
|
|
|
|
$(RANLIB) $(ardir)/libfgmp.a; \
|
1996-09-27 06:29:02 -04:00
|
|
|
fi
|
|
|
|
-if [ -f libgmp.a ] ; then \
|
1998-04-30 07:04:33 -04:00
|
|
|
$(CP) libgmp.a $(ardir); \
|
|
|
|
$(RANLIB) $(ardir)/libgmp.a; \
|
1996-09-27 06:29:02 -04:00
|
|
|
fi
|
|
|
|
-if [ ! -d $(incdir) ] ; then mkdir -p $(incdir); fi
|
|
|
|
$(CP) gmp.h $(incdir)
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f libgmp.a libfgmp.a gmp.h *~ core
|
|
|
|
(cd $(GMP_VERSION); $(MAKE) clean)
|
|
|
|
(cd $(FGMP_VERSION); $(MAKE) clean)
|