This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
added patch, regen headers
[perl5.git] / ext / SDBM_File / Makefile.PL
... / ...
CommitLineData
1use ExtUtils::MakeMaker;
2
3# The existence of the ./sdbm/Makefile.PL file causes MakeMaker
4# to automatically include Makefile code for the targets
5# config, all, clean, realclean and sdbm/Makefile
6# which perform the corresponding actions in the subdirectory.
7
8$define = ($^O eq 'MSWin32') ? '-DMSDOS' : '';
9if ($^O eq 'MSWin32') { $myextlib = 'sdbm\\libsdbm$(LIB_EXT)'; }
10else { $myextlib = 'sdbm/libsdbm$(LIB_EXT)'; }
11
12WriteMakefile(
13 NAME => 'SDBM_File',
14 MYEXTLIB => $myextlib,
15 MAN3PODS => ' ', # Pods will be built by installman.
16 XSPROTOARG => '-noprototypes', # XXX remove later?
17 VERSION_FROM => 'SDBM_File.pm',
18 DEFINE => $define,
19 );
20
21sub MY::postamble {
22 if ($^O ne 'VMS') {
23 '
24$(MYEXTLIB): sdbm/Makefile
25 cd sdbm && $(MAKE) all
26';
27 } else {
28 '
29$(MYEXTLIB) : [.sdbm]descrip.mms
30 set def [.sdbm]
31 $(MMS) all
32 set def [-]
33';
34 }
35}