If you want to compile GNU Parted, this is generally done with:
$ ./configure $ make
However, there are a few options for configure:
--without-readlineturns off use of readline. This is useful for making rescue disks, etc., where few libraries are available.
--disable-debugdon’t include assertions
--disable-nlsturns off native language support. This is useful for use with old versions of glibc, or a trimmed down version of glibc suitable for rescue disks.
--disable-sharedturns off shared libraries. This may be necessary for use with old versions of GNU libc, if you get a compile error about a “spilled register”. Also useful for boot/rescue disks.
--enable-discover-onlysupport only reading/probing (reduces size considerably)
--enable-mtraceenable malloc() debugging
--enable-read-onlydisable writing (for debugging)
If you want to run GNU Parted on a machine without GNU/Linux installed, or you want to modify a root or boot partition, use GParted Live: https://gparted.org/livecd.php.