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