2 use ExtUtils::MakeMaker;
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written.
6 NAME => 'Math::Vector::XS',
7 VERSION_FROM => 'lib/Math/Vector/XS.pm', # finds $VERSION
8 PREREQ_PM => {}, # e.g., Module::Name => 1.1
9 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
10 (ABSTRACT_FROM => 'lib/Math/Vector/XS.pm', # retrieve abstract from module
11 AUTHOR => 'Jerome Quelin <r385184@localdomain>') : ()),
12 LIBS => [''], # e.g., '-lm'
13 DEFINE => '', # e.g., '-DHAVE_SOMETHING'
14 INC => '-I.', # e.g., '-I. -I/usr/include/other'
15 # Un-comment this if you add C files to link with later:
16 # OBJECT => '$(O_FILES)', # link all the C files too
18 if (eval {require ExtUtils::Constant; 1}) {
19 # If you edit these definitions to change the constants used by this module,
20 # you will need to use the generated const-c.inc and const-xs.inc
21 # files to replace their "fallback" counterparts before distributing your
24 ExtUtils::Constant::WriteConstants(
25 NAME => 'Math::Vector::XS',
28 C_FILE => 'const-c.inc',
29 XS_FILE => 'const-xs.inc',
36 foreach my $file ('const-c.inc', 'const-xs.inc') {
37 my $fallback = File::Spec->catfile('fallback', $file);
38 copy ($fallback, $file) or die "Can't copy $fallback to $file: $!";