summaryrefslogtreecommitdiff
path: root/ext/re/Makefile.PL
blob: e21b923b29ccae06a6cb549e2cba040856c06b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 {
    return <<'EOF';
re_comp.c: ../../regcomp.c
	-$(RM_F) $@
	$(CP) ../../regcomp.c $@

re_exec.c: ../../regexec.c
	-$(RM_F) $@
	$(CP) ../../regexec.c $@

EOF
}