This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
inline_invlist.c -> invlist_inline.h
[perl5.git] / ext / re / Makefile.PL
index f54f1cd..bb00feb 100644 (file)
@@ -4,21 +4,11 @@ use Config;
 
 my $object = 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)';
 
-my $defines = '-DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG';
-
-# We need to pretend that DEBUGGING is in effect even if it's
-# not but we need to remember that we pretended so we can avoid
-# linking to things that aren't there.
-
-if ( (($Config{'ccflags'} !~ /DEBUGGING/) && $^O ne 'VMS') || 
-     (exists($Config{'usedebugging_perl'}) && $Config{'usedebugging_perl'} ne 'Y') ) {
-  $defines .= ' -DDEBUGGING -DWAS_NOT_DEBUGGING';
-}
+my $defines = '-DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG -DPERL_EXT';
 
 WriteMakefile(
     NAME               => 're',
     VERSION_FROM       => 're.pm',
-    MAN3PODS           => {},  # Pods will be built by installman.
     XSPROTOARG         => '-noprototypes',
     OBJECT             => $object,
     DEFINE             => $defines,
@@ -34,19 +24,29 @@ sub upupfile {
 sub postamble {
     my $regcomp_c = upupfile('regcomp.c');
     my $regexec_c = upupfile('regexec.c');
+    my $dquote_static_c = upupfile('dquote_static.c');
+    my $invlist_inline_h = upupfile('invlist_inline.h');
 
     <<EOF;
 re_comp.c : $regcomp_c
        - \$(RM_F) re_comp.c
        \$(CP) $regcomp_c re_comp.c
 
-re_comp\$(OBJ_EXT) : re_comp.c
+re_comp\$(OBJ_EXT) : re_comp.c dquote_static.c invlist_inline_h
 
 re_exec.c : $regexec_c
        - \$(RM_F) re_exec.c
        \$(CP) $regexec_c re_exec.c
 
-re_exec\$(OBJ_EXT) : re_exec.c
+re_exec\$(OBJ_EXT) : re_exec.c invlist_inline_h
+
+dquote_static.c : $dquote_static_c
+       - \$(RM_F) dquote_static.c
+       \$(CP) $dquote_static_c dquote_static.c
+
+invlist_inline_h : $inline_invlist_c
+       - \$(RM_F) invlist_inline_h
+       \$(CP) $invlist_inline_h inline_invlist.c
 
 EOF
 }