mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-05-13 15:13:36 +00:00
* modules/libgmp-mpz (Depends-on): Depend on gen-header. (Makefile.am): Prefix commands with $(AM_V_GEN), $(gl_V_at), and $(AM_V_at).
62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
Description:
|
|
GNU Multiple Precision Arithmetic library (mpn_*, mpz_* part),
|
|
or its mini-gmp substitute
|
|
|
|
Files:
|
|
lib/mini-gmp-gnulib.c
|
|
lib/mini-gmp.c
|
|
lib/mini-gmp.h
|
|
m4/libgmp.m4
|
|
|
|
Depends-on:
|
|
gen-header
|
|
|
|
configure.ac:
|
|
gl_LIBGMP
|
|
gl_CONDITIONAL_HEADER([gmp.h])
|
|
AC_PROG_MKDIR_P
|
|
gl_CONDITIONAL([GL_COND_OBJ_MINI_GMP_GNULIB], [test $HAVE_LIBGMP != yes])
|
|
|
|
Makefile.am:
|
|
BUILT_SOURCES += $(GMP_H)
|
|
|
|
if GL_GENERATE_GMP_H
|
|
if GL_GENERATE_MINI_GMP_H
|
|
# Build gmp.h as a wrapper for mini-gmp.h when using mini-gmp.
|
|
gmp.h: $(top_builddir)/config.status
|
|
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
|
$(gl_V_at)echo '#include "mini-gmp.h"' > $@-t
|
|
$(AM_V_at)echo '#if GNULIB_LIBGMP_MPQ' >> $@-t
|
|
$(AM_V_at)echo '# include "mini-mpq.h"' >> $@-t
|
|
$(AM_V_at)echo '#endif' >> $@-t
|
|
$(AM_V_at)mv $@-t $@
|
|
endif
|
|
if GL_GENERATE_GMP_GMP_H
|
|
# Build gmp.h as a wrapper for gmp/gmp.h.
|
|
gmp.h: $(top_builddir)/config.status
|
|
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
|
$(gl_V_at)echo '#include <gmp/gmp.h>' > $@-t
|
|
$(AM_V_at)mv $@-t $@
|
|
endif
|
|
else
|
|
gmp.h: $(top_builddir)/config.status
|
|
rm -f $@
|
|
endif
|
|
MOSTLYCLEANFILES += gmp.h gmp.h-t
|
|
|
|
if GL_COND_OBJ_MINI_GMP_GNULIB
|
|
lib_SOURCES += mini-gmp-gnulib.c
|
|
endif
|
|
|
|
Include:
|
|
<gmp.h>
|
|
|
|
Link:
|
|
$(LTLIBGMP) when linking with libtool, $(LIBGMP) otherwise
|
|
|
|
License:
|
|
LGPLv3+ or GPLv2+
|
|
|
|
Maintainer:
|
|
all
|