This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade to ExtUtils-MakeMaker-6.48
[perl5.git] / lib / ExtUtils / MM_Win95.pm
CommitLineData
f6d6199c
MS
1package ExtUtils::MM_Win95;
2
1e65eb70
SP
3use strict;
4
b5b9b385 5our $VERSION = '6.48';
f6d6199c
MS
6
7require ExtUtils::MM_Win32;
a592ba15 8our @ISA = qw(ExtUtils::MM_Win32);
479d2113 9
7292dc67 10use ExtUtils::MakeMaker::Config;
479d2113 11
f6d6199c 12
f582e489
MS
13=head1 NAME
14
15ExtUtils::MM_Win95 - method to customize MakeMaker for Win9X
16
17=head1 SYNOPSIS
18
19 You should not be using this module directly.
20
21=head1 DESCRIPTION
22
23This is a subclass of ExtUtils::MM_Win32 containing changes necessary
24to get MakeMaker playing nice with command.com and other Win9Xisms.
25
c2878c71 26=head2 Overridden methods
479d2113 27
7292dc67
RGS
28Most of these make up for limitations in the Win9x/nmake command shell.
29Mostly its lack of &&.
479d2113
MS
30
31=over 4
32
479d2113
MS
33
34=item xs_c
35
36The && problem.
37
38=cut
39
f6d6199c
MS
40sub xs_c {
41 my($self) = shift;
42 return '' unless $self->needs_linking();
43 '
44.xs.c:
7292dc67 45 $(XSUBPPRUN) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
f6d6199c
MS
46 '
47}
48
479d2113
MS
49
50=item xs_cpp
51
52The && problem
53
54=cut
55
f6d6199c
MS
56sub xs_cpp {
57 my($self) = shift;
58 return '' unless $self->needs_linking();
59 '
60.xs.cpp:
7292dc67 61 $(XSUBPPRUN) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.cpp
f6d6199c
MS
62 ';
63}
64
479d2113
MS
65=item xs_o
66
67The && problem.
68
69=cut
70
f6d6199c
MS
71sub xs_o {
72 my($self) = shift;
73 return '' unless $self->needs_linking();
74 '
75.xs$(OBJ_EXT):
7292dc67 76 $(XSUBPPRUN) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
f6d6199c
MS
77 $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.c
78 ';
79}
4da32025 80
479d2113 81
03c94fc2
RGS
82=item max_exec_len
83
84Win98 chokes on things like Encode if we set the max length to nmake's max
85of 2K. So we go for a more conservative value of 1K.
86
87=cut
88
89sub max_exec_len {
90 my $self = shift;
91
92 return $self->{_MAX_EXEC_LEN} ||= 1024;
93}
94
95
dedf98bc
MS
96=item os_flavor
97
98Win95 and Win98 and WinME are collectively Win9x and Win32
99
100=cut
101
102sub os_flavor {
103 my $self = shift;
104 return ($self->SUPER::os_flavor, 'Win9x');
105}
106
107
479d2113
MS
108=back
109
110
111=head1 AUTHOR
112
a7d1454b 113Code originally inside MM_Win32. Original author unknown.
479d2113 114
a7d1454b 115Currently maintained by Michael G Schwern C<schwern@pobox.com>.
479d2113 116
a7d1454b 117Send patches and ideas to C<makemaker@perl.org>.
479d2113
MS
118
119See http://www.makemaker.org.
120
121=cut
122
123
4da32025 1241;