1 use ExtUtils::MakeMaker;
4 # The existence of the ./sdbm/Makefile.PL file causes MakeMaker
5 # to automatically include Makefile code for the targets
6 # config, all, clean, realclean and sdbm/Makefile
7 # which perform the corresponding actions in the subdirectory.
9 $define = ($^O eq 'MSWin32') ? '-DMSDOS' : '';
10 if ($^O eq 'MSWin32') { $myextlib = 'sdbm\\libsdbm$(LIB_EXT)'; }
11 else { $myextlib = 'sdbm/libsdbm$(LIB_EXT)'; }
15 MYEXTLIB => $myextlib,
16 MAN3PODS => {}, # Pods will be built by installman.
17 XSPROTOARG => '-noprototypes', # XXX remove later?
18 VERSION_FROM => 'SDBM_File.pm',
24 if ($^O =~ /MSWin32/ && Win32::IsWin95()) {
25 if ($Config{'make'} =~ /dmake/i) {
28 $(MYEXTLIB): sdbm/Makefile
35 } elsif ($Config{'make'} =~ /nmake/i) {
38 $(MYEXTLIB): sdbm/Makefile
44 } elsif ($^O ne 'VMS') {
46 $(MYEXTLIB): sdbm/Makefile
47 cd sdbm && $(MAKE) all
52 $(MYEXTLIB) : [.sdbm]descrip.mms