This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Regen Changes.
[perl5.git] / lib / ExtUtils / MM_Win95.pm
CommitLineData
f6d6199c
MS
1package ExtUtils::MM_Win95;
2
3use vars qw($VERSION @ISA);
e0678a30 4$VERSION = 0.02;
f6d6199c
MS
5
6require ExtUtils::MM_Win32;
7@ISA = qw(ExtUtils::MM_Win32);
8
9
f582e489
MS
10=head1 NAME
11
12ExtUtils::MM_Win95 - method to customize MakeMaker for Win9X
13
14=head1 SYNOPSIS
15
16 You should not be using this module directly.
17
18=head1 DESCRIPTION
19
20This is a subclass of ExtUtils::MM_Win32 containing changes necessary
21to get MakeMaker playing nice with command.com and other Win9Xisms.
22
23=cut
f6d6199c 24
e0678a30
MS
25sub dist_test {
26 my($self) = shift;
27 return q{
28disttest : distdir
29 cd $(DISTVNAME)
30 $(ABSPERLRUN) Makefile.PL
31 $(MAKE) $(PASTHRU)
32 $(MAKE) test $(PASTHRU)
33 cd ..
34};
35}
36
f6d6199c
MS
37sub xs_c {
38 my($self) = shift;
39 return '' unless $self->needs_linking();
40 '
41.xs.c:
42 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
43 $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
44 '
45}
46
47sub xs_cpp {
48 my($self) = shift;
49 return '' unless $self->needs_linking();
50 '
51.xs.cpp:
52 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
53 $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.cpp
54 ';
55}
56
57# many makes are too dumb to use xs_c then c_o
58sub xs_o {
59 my($self) = shift;
60 return '' unless $self->needs_linking();
61 '
62.xs$(OBJ_EXT):
63 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
64 $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
65 $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.c
66 ';
67}
4da32025
MS
68
691;