use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( 'NAME' => 'Math::GMP', 'VERSION_FROM' => 'lib/Math/GMP.pm', # finds $VERSION 'LIBS' => ['-lgmp'], # e.g., '-lm' 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' );