1require 5.004; 2use ExtUtils::MakeMaker; 3 4use Config; 5my $gcc_x86 = ($Config{"ccname"} =~ /gcc/) && ($Config{"archname"} =~ /i.86/); 6 7WriteMakefile( 8 'NAME' => 'Crypt::CAST5', 9 'VERSION_FROM' => 'CAST5.pm', # finds $VERSION 10 'PREREQ_PM' => { Test::More => 0.47 }, 11 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 12 (ABSTRACT_FROM => 'CAST5.pm', # retrieve abstract from module 13 AUTHOR => 'Bob Mathews <bobmathews@alumni.calpoly.edu>') : ()), 14 'DEFINE' => ($gcc_x86 ? '-DGCC_X86' : ''), 15 'OBJECT' => '$(O_FILES)', # link all the C files too 16); 17