blob: 010900f5c36c7e164cb559a78aa3fd84ab810dc0 (
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
60
61
62
63
64
65
66
67
68
69
70
71
|
package ExtUtils::MM_Win95;
use vars qw($VERSION @ISA);
$VERSION = 0.02;
require ExtUtils::MM_Win32;
@ISA = qw(ExtUtils::MM_Win32);
use Config;
=head1 NAME
ExtUtils::MM_Win95 - method to customize MakeMaker for Win9X
=head1 SYNOPSIS
You should not be using this module directly.
=head1 DESCRIPTION
This is a subclass of ExtUtils::MM_Win32 containing changes necessary
to get MakeMaker playing nice with command.com and other Win9Xisms.
=cut
sub dist_test {
my($self) = shift;
return q{
disttest : distdir
cd $(DISTVNAME)
$(ABSPERLRUN) Makefile.PL
$(MAKE) $(PASTHRU)
$(MAKE) test $(PASTHRU)
cd ..
};
}
sub xs_c {
my($self) = shift;
return '' unless $self->needs_linking();
'
.xs.c:
$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
$(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
'
}
sub xs_cpp {
my($self) = shift;
return '' unless $self->needs_linking();
'
.xs.cpp:
$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
$(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.cpp
';
}
# many makes are too dumb to use xs_c then c_o
sub xs_o {
my($self) = shift;
return '' unless $self->needs_linking();
# having to choose between .xs -> .c -> .o and .xs -> .o confuses dmake
return '' if $Config{make} eq 'dmake';
'
.xs$(OBJ_EXT):
$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
$(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
$(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.c
';
}
1;
|