applied patch from Ilya, tweaked some to get clean static build of
[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              => '-DDEBUGGING -DIN_XSUB_RE',
9 );
10
11 sub MY::postamble {
12     return <<'EOF';
13 re_comp.c: ../../regcomp.c
14         -$(RM) $@
15         $(CP) ../../regcomp.c $@
16
17 re_exec.c: ../../regexec.c
18         -$(RM) $@
19         $(CP) ../../regexec.c $@
20
21 EOF
22 }