1 use ExtUtils::MakeMaker;
5 my $object = 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)';
7 my $defines = '-DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG';
9 # We need to pretend that DEBUGGING is in effect even if it's
10 # not but we need to remember that we pretended so we can avoid
11 # linking to things that aren't there.
13 if ( (($Config{'ccflags'} !~ /DEBUGGING/) && $^O ne 'VMS') ||
14 (exists($Config{'usedebugging_perl'}) && $Config{'usedebugging_perl'} ne 'Y') ) {
15 $defines .= ' -DDEBUGGING -DWAS_NOT_DEBUGGING';
20 VERSION_FROM => 're.pm',
21 MAN3PODS => {}, # Pods will be built by installman.
22 XSPROTOARG => '-noprototypes',
25 clean => { FILES => '*$(OBJ_EXT) *.c ../../lib/re.pm' },
31 File::Spec->catfile(File::Spec->updir, File::Spec->updir, $_[0]);
35 my $regcomp_c = upupfile('regcomp.c');
36 my $regexec_c = upupfile('regexec.c');
39 re_comp.c : $regcomp_c
41 \$(CP) $regcomp_c re_comp.c
43 re_comp\$(OBJ_EXT) : re_comp.c
45 re_exec.c : $regexec_c
47 \$(CP) $regexec_c re_exec.c
49 re_exec\$(OBJ_EXT) : re_exec.c
56 package MY; # so that "SUPER" works right
57 my $inh = $self->SUPER::c_o(@_);
59 if ($Config{osname} eq 'aix' && $Config{ccversion} eq '5.0.1.0') {
60 # Known buggy optimizer.
61 my $cccmd = $self->const_cccmd;
62 $cccmd =~ s/^CCCMD\s*=\s*//;
63 $cccmd =~ s/\s\$\(OPTIMIZE\)\s/ /;
66 re_comp\$\(OBJ_EXT\): re_comp.c
67 \t$cccmd \$(CCCDLFLAGS) -I\$(PERL_INC) \$(DEFINE) \$*.c