~ubuntu-branches/ubuntu/saucy/libyaml-libyaml-perl/saucy-security

« back to all changes in this revision

Viewing changes to LibYAML/Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur
  • Date: 2009-06-01 02:17:22 UTC
  • Revision ID: james.westby@ubuntu.com-20090601021722-8qlj45pmu8ffwzau
Tags: upstream-0.32
Import upstream version 0.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use ExtUtils::MakeMaker;
 
2
use strict;
 
3
use Config;
 
4
 
 
5
my $obj_files = join ' ', map {
 
6
    my $c = $_;
 
7
    $c =~ s/\.c$/$Config::Config{_o}/;
 
8
    $c;
 
9
} glob("*.c"), 'LibYAML.c';
 
10
 
 
11
my $DEFINE = $^O eq 'MSWin32'
 
12
? '-DHAVE_CONFIG_H -DYAML_DECLARE_EXPORT'
 
13
: '-DHAVE_CONFIG_H';
 
14
WriteMakefile(
 
15
    NAME => 'YAML::XS::LibYAML',
 
16
    PREREQ_PM => {},
 
17
    # CCFLAGS => '-ansi -pedantic -Wall',
 
18
    # CCFLAGS => '-ansi -Wall',
 
19
    # CCFLAGS => '-pedantic -Wall',
 
20
    # CCFLAGS => '-Wall',
 
21
    DEFINE => $DEFINE,
 
22
    LIBS => [''], # e.g., '-lm'
 
23
    INC => '-I.',
 
24
    OBJECT => $obj_files,
 
25
    ABSTRACT_FROM => 'lib/YAML/XS/LibYAML.pm',
 
26
    AUTHOR => 'Ingy döt Net <ingy@cpan.org>',
 
27
);