Branch
Hash :
2a083b76
Author :
Date :
2025-01-15T20:27:34
libgmp-mpz: Respect Automake's silent-rules. * modules/libgmp-mpz (Depends-on): Depend on gen-header. (Makefile.am): Prefix commands with $(AM_V_GEN), $(gl_V_at), and $(AM_V_at).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
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