X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=81456750f68b420f1d00bf2c355b38fc32021d38;hb=9fc9ab867f272405574e69ef14fde78f9d840537;hp=7dfbe9cb0799d7854cd5b14d0620c8ed5b4e9177;hpb=b76217297a5f92982c29177d97eb655b52d164eb;p=p5sagit%2FDevel-Size.git diff --git a/Makefile.PL b/Makefile.PL index 7dfbe9c..8145675 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,31 +1,11 @@ - -use strict; -# require at least 5.006, it doesn't even compile under 5.005 -require 5.006; - -# Load the Module::Install bundled in ./inc/ -use inc::Module::Install; - -name 'Devel-Size'; - -# Get most of the details from the primary module -all_from 'lib/Devel/Size.pm'; - -requires 'DynaLoader' => 0; -requires 'perl' => 5.006; - -recommends 'Devel::Size::Report' => 0.11; - -test_requires 'Test::More' => 0.42; - -license 'perl'; # from 5.8.8 - -# It seems not to be possible to specifiy two authors here :/ -# Nor does a "maintainer" property exist -author 'Tels '; - -# Do not index these -no_index directory => 'examples'; - -# Generate the Makefile -WriteAll; +use ExtUtils::MakeMaker; +use Config; + +my %options = ( + NAME => 'Devel::Size', + LIBS => $Config{cc} eq 'gcc' || $Config{cc} eq 'cc' ? ['-lstdc++'] : '', + VERSION_FROM => 'lib/Devel/Size.pm', + CC => $Config{cc} eq 'cl' ? 'cl' : 'g++', +); + +WriteMakefile(%options);