added suggested patch (via PM), tweaked to implicitly specify -DDEBUGGING
[p5sagit/p5-mst-13.2.git] / ext / re / Makefile.PL
1 use ExtUtils::MakeMaker;
2 WriteMakefile(
3     NAME                => 're',
4     VERSION_FROM        => 're.pm',
5     MAN3PODS            => ' ',         # Pods will be built by installman.
6     XSPROTOARG          => '-noprototypes',
7     OBJECT              => 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)',
8     DEFINE              => '-DPERL_EXT_RE_BUILD',
9     clean               => { FILES => '*$(OBJ_EXT) *.c ../../lib/re.pm' },
10 );
11
12 sub MY::postamble {
13     return <<'EOF';
14 re_comp.c: ../../regcomp.c
15         -$(RM_F) $@
16         $(CP) ../../regcomp.c $@
17
18 re_exec.c: ../../regexec.c
19         -$(RM_F) $@
20         $(CP) ../../regexec.c $@
21
22 EOF
23 }