This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
MakeMaker sync 5.48_03 -> 5.53_01
[perl5.git] / lib / ExtUtils / MM_Win95.pm
CommitLineData
f6d6199c
MS
1package ExtUtils::MM_Win95;
2
3use vars qw($VERSION @ISA);
4$VERSION = 0.01;
5
6require ExtUtils::MM_Win32;
7@ISA = qw(ExtUtils::MM_Win32);
8
9
10# a few workarounds for command.com (very basic)
11
12sub xs_c {
13 my($self) = shift;
14 return '' unless $self->needs_linking();
15 '
16.xs.c:
17 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
18 $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
19 '
20}
21
22sub xs_cpp {
23 my($self) = shift;
24 return '' unless $self->needs_linking();
25 '
26.xs.cpp:
27 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
28 $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.cpp
29 ';
30}
31
32# many makes are too dumb to use xs_c then c_o
33sub xs_o {
34 my($self) = shift;
35 return '' unless $self->needs_linking();
36 '
37.xs$(OBJ_EXT):
38 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\
39 $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.c
40 $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.c
41 ';
42}