git: gmp: Update and rewrite makefiles
Aaron LI
aly at crater.dragonflybsd.org
Fri Aug 28 06:26:37 PDT 2026
commit d1b2f6224617b8fab917cb098bf979be492bcae7
Author: Aaron LI <aly at aaronly.me>
Date: Fri Aug 28 17:24:19 2026 +0800
gmp: Update and rewrite makefiles
* Update the makefiles to build the imported 6.3.0.
* Split the building of file generation tools into a separate makefile
in the `tools/` subdirectory, and move the library building to the
`lib/` subdirectory.
* Use <bsd.hostprog.mk> to build the generation tools.
* Keep `gmp.h` at the main directory so there is no `config.h` that
may possibly confuse the GMP users, such as the case with MPC that's
got fixed in commit 140e2138b6e2614a71884aa87702138fe3691e53.
* Re-organize the sources in a separate `Makefile.src`. Just copy the
`mpn_objs_in_libgmp` list from the generated Makefile, and thus
greatly simplify the makefile rules.
* Adjust cc80/cc120 to use the updated `libgmp.a` location.
Summary of changes:
gnu/usr.bin/cc120/Makefile.inc | 2 +-
gnu/usr.bin/cc80/Makefile.inc | 2 +-
gnu/usr.bin/gmp/Makefile | 278 +------------------------------------
gnu/usr.bin/gmp/Makefile.inc | 4 +
gnu/usr.bin/gmp/Makefile.x86_64 | 4 -
gnu/usr.bin/gmp/lib/Makefile | 99 +++++++++++++
gnu/usr.bin/gmp/lib/Makefile.src | 130 +++++++++++++++++
gnu/usr.bin/gmp/{ => lib}/config.h | 0
gnu/usr.bin/gmp/tools/Makefile | 10 ++
9 files changed, 247 insertions(+), 282 deletions(-)
create mode 100644 gnu/usr.bin/gmp/Makefile.inc
delete mode 100644 gnu/usr.bin/gmp/Makefile.x86_64
create mode 100644 gnu/usr.bin/gmp/lib/Makefile
create mode 100644 gnu/usr.bin/gmp/lib/Makefile.src
rename gnu/usr.bin/gmp/{ => lib}/config.h (100%)
create mode 100644 gnu/usr.bin/gmp/tools/Makefile
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d1b2f6224617b8fab917cb098bf979be492bcae7
--
DragonFly BSD source repository
More information about the Commits
mailing list