Commit | Line | Data |
---|---|---|
f6d6199c | 1 | package ExtUtils::MM_Win95; |
2 | ||
1e65eb70 | 3 | use strict; |
4 | ||
f6d6199c | 5 | use vars qw($VERSION @ISA); |
1e65eb70 | 6 | $VERSION = '0.06'; |
f6d6199c | 7 | |
8 | require ExtUtils::MM_Win32; | |
9 | @ISA = qw(ExtUtils::MM_Win32); | |
479d2113 | 10 | |
7292dc67 | 11 | use ExtUtils::MakeMaker::Config; |
479d2113 | 12 | |
f6d6199c | 13 | |
f582e489 | 14 | =head1 NAME |
15 | ||
16 | ExtUtils::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 | ||
24 | This is a subclass of ExtUtils::MM_Win32 containing changes necessary | |
25 | to get MakeMaker playing nice with command.com and other Win9Xisms. | |
26 | ||
c2878c71 | 27 | =head2 Overridden methods |
479d2113 | 28 | |
7292dc67 | 29 | Most of these make up for limitations in the Win9x/nmake command shell. |
30 | Mostly its lack of &&. | |
479d2113 | 31 | |
32 | =over 4 | |
33 | ||
479d2113 | 34 | |
35 | =item xs_c | |
36 | ||
37 | The && problem. | |
38 | ||
39 | =cut | |
40 | ||
f6d6199c | 41 | sub 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 | ||
53 | The && problem | |
54 | ||
55 | =cut | |
56 | ||
f6d6199c | 57 | sub 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 | ||
68 | The && problem. | |
69 | ||
70 | =cut | |
71 | ||
f6d6199c | 72 | sub 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 | ||
85 | Win98 chokes on things like Encode if we set the max length to nmake's max | |
86 | of 2K. So we go for a more conservative value of 1K. | |
87 | ||
88 | =cut | |
89 | ||
90 | sub max_exec_len { | |
91 | my $self = shift; | |
92 | ||
93 | return $self->{_MAX_EXEC_LEN} ||= 1024; | |
94 | } | |
95 | ||
96 | ||
dedf98bc | 97 | =item os_flavor |
98 | ||
99 | Win95 and Win98 and WinME are collectively Win9x and Win32 | |
100 | ||
101 | =cut | |
102 | ||
103 | sub 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 | 114 | Code originally inside MM_Win32. Original author unknown. |
479d2113 | 115 | |
a7d1454b | 116 | Currently maintained by Michael G Schwern C<schwern@pobox.com>. |
479d2113 | 117 | |
a7d1454b | 118 | Send patches and ideas to C<makemaker@perl.org>. |
479d2113 | 119 | |
120 | See http://www.makemaker.org. | |
121 | ||
122 | =cut | |
123 | ||
124 | ||
4da32025 | 125 | 1; |