Debian Codegraph @

xs/Embperl/Req/Param/Makefile.PL

raw
1 local $mp2cfg ;
2 local $ccdebug ;
3 local $addcflags;
4
5 #
6 # /*
7 # * *********** WARNING **************
8 # * This file generated by Embperl::WrapXS/2.0.0
9 # * Any changes made here will be lost
10 # * ***********************************
11 # * 1. /usr/lib/perl5/site_perl/5.16.0/ExtUtils/XSBuilder/WrapXS.pm:52
12 # * 2. /usr/lib/perl5/site_perl/5.16.0/ExtUtils/XSBuilder/WrapXS.pm:2068
13 # * 3. xsbuilder/xs_generate.pl:6
14 # */
15 #
16
17
18 use ExtUtils::MakeMaker ();
19
20 local $MMARGS ;
21
22 if (-f '../../../mmargs.pl')
23 {
24 do '../../../mmargs.pl' ;
25 die $@ if ($@) ;
26 }
27
28 $MMARGS ||= {} ;
29
30
31 ExtUtils::MakeMaker::WriteMakefile(
32 'NAME' => 'Embperl::Req::Param',
33 'VERSION' => '0.01',
34 'TYPEMAPS' => ['../../../typemap'],
35 'depend' => {
36 'Param.c' => ''
37 }
38 ,
39
40 %$MMARGS,
41 );
42
43
44
45
46
47 sub MY::top_targets
48 {
49 my ($txt) = shift -> MM::top_targets (@_) ;
50 $txt =~ s/config\s+pm_to_blib\s+subdirs\s+linkext/\$(O_FILES) subdirs/ ;
51 return $txt ;
52 }
53
54
55 sub MY::cflags
56 {
57 my $self = shift ;
58
59 my $txt = $self -> MM::cflags (@_) ;
60
61 if ($mp2cfg)
62 { # with Apache 2, make sure we have the same defines as mod_perl
63 $txt =~ s/-O\d//g if ($ccdebug =~ /-O\d/) ;
64 $txt =~ /CCFLAGS\s*=(.*?)\n/s ;
65 my $flags = $mp2cfg->{MODPERL_CCOPTS} || $1 ;
66 $txt =~ s/CCFLAGS\s*=(.*?)\n/CCFLAGS = $ccdebug $flags $addcflags\n/s ;
67 }
68 else
69 {
70 $txt =~ s/-O\d//g if ($ccdebug =~ /-O\d/) ;
71 $txt =~ s/CCFLAGS\s*=/CCFLAGS = $ccdebug $addcflags/ ;
72 }
73
74
75 return $txt ;
76 }
77