This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
stray n_a
[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);
415c4738 8use Config;
f6d6199c 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
415c4738
MB
29 cd $(DISTVNAME)
30 $(ABSPERLRUN) Makefile.PL
31 $(MAKE) $(PASTHRU)
32 $(MAKE) test $(PASTHRU)
33 cd ..
e0678a30
MS
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();
415c4738
MB
61 # having to choose between .xs -> .c -> .o and .xs -> .o confuses dmake
62 return '' if $Config{make} eq 'dmake';
f6d6199c
MS
63 '
64.xs$(OBJ_EXT):
65 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
66 $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
67 $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.c
68 ';
69}
4da32025
MS
70
711;