1 use ExtUtils::MakeMaker;
5 my $object = 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)';
9 VERSION_FROM => 're.pm',
10 MAN3PODS => {}, # Pods will be built by installman.
11 XSPROTOARG => '-noprototypes',
13 DEFINE => '-DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG',
14 clean => { FILES => '*$(OBJ_EXT) *.c ../../lib/re.pm' },
20 File::Spec->catfile(File::Spec->updir, File::Spec->updir, $_[0]);
24 my $regcomp_c = upupfile('regcomp.c');
25 my $regexec_c = upupfile('regexec.c');
28 re_comp.c : $regcomp_c
30 \$(CP) $regcomp_c re_comp.c
32 re_comp\$(OBJ_EXT) : re_comp.c
34 re_exec.c : $regexec_c
36 \$(CP) $regexec_c re_exec.c
38 re_exec\$(OBJ_EXT) : re_exec.c
45 package MY; # so that "SUPER" works right
46 my $inh = $self->SUPER::c_o(@_);
48 if ($Config{osname} eq 'aix' && $Config{ccversion} eq '5.0.1.0') {
49 # Known buggy optimizer.
50 my $cccmd = $self->const_cccmd;
51 $cccmd =~ s/^CCCMD\s*=\s*//;
52 $cccmd =~ s/\s\$\(OPTIMIZE\)\s/ /;
55 re_comp\$\(OBJ_EXT\): re_comp.c
56 \t$cccmd \$(CCCDLFLAGS) -I\$(PERL_INC) \$(DEFINE) \$*.c