Remove Encode::Tcl::Extended, suggested by
[p5sagit/p5-mst-13.2.git] / ext / B / Makefile.PL
CommitLineData
a8a597b2 1use ExtUtils::MakeMaker;
2use Config;
29fc1735 3use File::Spec;
a8a597b2 4
5my $e = $Config{'exe_ext'};
6my $o = $Config{'obj_ext'};
7my $exeout_flag = '-o ';
8if ($^O eq 'MSWin32') {
9 if ($Config{'cc'} =~ /^cl/i) {
10 $exeout_flag = '-Fe';
11 }
12 elsif ($Config{'cc'} =~ /^bcc/i) {
13 $exeout_flag = '-e';
14 }
15}
16
17WriteMakefile(
51a5edaf 18 NAME => "B",
19 VERSION_FROM => "B.pm",
20 PL_FILES => { 'defsubs_h.PL' => 'defsubs.h' },
21 MAN3PODS => {},
22 clean => {
23 FILES => "perl$e *$o B.c defsubs.h *~"
a8a597b2 24 }
51a5edaf 25);
a8a597b2 26
4c1f658f 27package MY;
28
29sub post_constants {
1c74f1bd 30 "\nLIBS = $Config::Config{libs}\n"
4c1f658f 31}
32
29fc1735 33sub upupfile {
34 File::Spec->catfile(File::Spec->updir,
35 File::Spec->updir, $_[0]);
36}
37
838c087d 38sub MY::postamble {
39 my $op_h = upupfile('op.h');
40 my $cop_h = upupfile('cop.h');
41 my $noecho = shift->{NOECHO};
29fc1735 42"
838c087d 43B\$(OBJ_EXT) : defsubs.h
d19af0aa 44
838c087d 45defsubs.h :: $op_h $cop_h
5fc9822b 46 $noecho \$(NOOP)
838c087d 47"
a8a597b2 48}