cleaning h2xs crud.
[language-befunge-vector-xs.git] / Makefile.PL
blob8185d8fb6b0c54a57f88b5ed84a48efc0c14386c
1 use 5.008008;
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.
5 WriteMakefile(
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
22   # changes.
23   my @names = (qw());
24   ExtUtils::Constant::WriteConstants(
25                                      NAME         => 'Math::Vector::XS',
26                                      NAMES        => \@names,
27                                      DEFAULT_TYPE => 'IV',
28                                      C_FILE       => 'const-c.inc',
29                                      XS_FILE      => 'const-xs.inc',
30                                   );
33 else {
34   use File::Copy;
35   use File::Spec;
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: $!";
39   }