Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / perl5 / 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   if ($^O eq 'VMS') {
14     return <<'VMS_EOF';
15 re_comp.c : [--]regcomp.c
16         - $(RM_F) $(MMS$TARGET_NAME)
17         $(CP) [--]regcomp.c $(MMS$TARGET_NAME)
18
19 re_comp$(OBJ_EXT) : re_comp.c
20
21 re_exec.c : [--]regexec.c
22         - $(RM_F) $(MMS$TARGET_NAME)
23         $(CP) [--]regexec.c $(MMS$TARGET_NAME)
24
25 re_exec$(OBJ_EXT) : re_exec.c
26
27
28 VMS_EOF
29   } else {
30     return <<'EOF';
31 re_comp.c: ../../regcomp.c
32         -$(RM_F) $@
33         $(CP) ../../regcomp.c $@
34
35 re_exec.c: ../../regexec.c
36         -$(RM_F) $@
37         $(CP) ../../regexec.c $@
38
39 EOF
40   }
41 }