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