blob: 9ed83d17c84c34494ac51240224fbcdc4dfbf1d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 're',
VERSION_FROM => 're.pm',
MAN3PODS => ' ', # Pods will be built by installman.
XSPROTOARG => '-noprototypes',
OBJECT => 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)',
DEFINE => '-DPERL_EXT_RE_BUILD',
clean => { FILES => '*$(OBJ_EXT) *.c ../../lib/re.pm' },
);
sub MY::postamble {
if ($^O eq 'VMS') {
return <<'VMS_EOF';
re_comp.c : [--]regcomp.c
- $(RM_F) $(MMS$TARGET_NAME)
$(CP) [--]regcomp.c $(MMS$TARGET_NAME)
re_comp$(OBJ_EXT) : re_comp.c
re_exec.c : [--]regexec.c
- $(RM_F) $(MMS$TARGET_NAME)
$(CP) [--]regexec.c $(MMS$TARGET_NAME)
re_exec$(OBJ_EXT) : re_exec.c
VMS_EOF
} else {
return <<'EOF';
re_comp.c: ../../regcomp.c
-$(RM_F) $@
$(CP) ../../regcomp.c $@
re_exec.c: ../../regexec.c
-$(RM_F) $@
$(CP) ../../regexec.c $@
EOF
}
}
|