blob: 93f1d4fc542676cf90b6603980c88b891c7a9d79 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
use ExtUtils::MakeMaker;
WriteMakefile(
VERSION_FROM => "lib/List/Util.pm",
MAN3PODS => {}, # Pods will be built by installman.
NAME => "List::Util",
);
package MY;
BEGIN {
use Config;
unless (defined $Config{usedl}) {
eval <<'__EOMM__';
sub xs_c {
my($self) = shift;
return '' unless $self->needs_linking();
'
.xs.c:
$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > List$*.xsc && $(MV) List$*.xsc List$*.c
';
}
sub c_o {
my($self) = shift;
return '' unless $self->needs_linking();
'
.c$(OBJ_EXT):
$(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) List$*.c
$(MV) List$*$(OBJ_EXT) $*$(OBJ_EXT)
';
}
sub xs_o { # many makes are too dumb to use xs_c then c_o
my($self) = shift;
return '' unless $self->needs_linking();
'
.xs$(OBJ_EXT):
$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > List$*.xsc && $(MV) List$*.xsc List$*.c
$(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) List$*.c
$(MV) List$*$(OBJ_EXT) $*$(OBJ_EXT)
';
}
sub top_targets { # many makes are too dumb to use xs_c then c_o
my($self) = shift;
my $out = $self->SUPER::top_targets(@_);
$out .
'
ListUtil.c: Util.c
@$(NOOP)
';
}
__EOMM__
}
}
|