This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate with Sarathy.
[perl5.git] / ext / re / Makefile.PL
CommitLineData
56953603
IZ
1use ExtUtils::MakeMaker;
2WriteMakefile(
3 NAME => 're',
4 VERSION_FROM => 're.pm',
69158f75 5 MAN3PODS => {}, # Pods will be built by installman.
56953603
IZ
6 XSPROTOARG => '-noprototypes',
7 OBJECT => 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)',
cad2e5aa 8 DEFINE => '-DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG',
782f0963 9 clean => { FILES => '*$(OBJ_EXT) *.c ../../lib/re.pm' },
56953603
IZ
10);
11
12sub MY::postamble {
778ddebd
HM
13 if ($^O eq 'VMS') {
14 return <<'VMS_EOF';
15re_comp.c : [--]regcomp.c
16 - $(RM_F) $(MMS$TARGET_NAME)
17 $(CP) [--]regcomp.c $(MMS$TARGET_NAME)
18
19re_comp$(OBJ_EXT) : re_comp.c
20
21re_exec.c : [--]regexec.c
22 - $(RM_F) $(MMS$TARGET_NAME)
23 $(CP) [--]regexec.c $(MMS$TARGET_NAME)
24
25re_exec$(OBJ_EXT) : re_exec.c
26
27
28VMS_EOF
29 } else {
56953603
IZ
30 return <<'EOF';
31re_comp.c: ../../regcomp.c
15e52e56 32 -$(RM_F) $@
56953603
IZ
33 $(CP) ../../regcomp.c $@
34
35re_exec.c: ../../regexec.c
15e52e56 36 -$(RM_F) $@
56953603
IZ
37 $(CP) ../../regexec.c $@
38
39EOF
778ddebd 40 }
56953603 41}