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 # Work around: Darwin ppc64 bug ignores archive contents when building bundles
11 $define = ($^O eq 'MSWin32') ? '-DMSDOS' : '';
12 if ($^O eq 'MSWin32') { $myextlib = 'sdbm\\libsdbm$(LIB_EXT)'; }
13 elsif ($^O eq 'darwin' && $Config{'ldflags'} =~/-arch ppc64/) {
14 $myextlib = '-all_load sdbm/libsdbm$(LIB_EXT)'; }
15 else { $myextlib = 'sdbm/libsdbm$(LIB_EXT)'; }
19 MYEXTLIB => $myextlib,
20 XSPROTOARG => '-noprototypes', # XXX remove later?
21 VERSION_FROM => 'SDBM_File.pm',
27 if ($^O =~ /MSWin32/ && !defined($ENV{SYSTEMROOT})) {
28 if ($Config{'make'} =~ /dmake/i) {
31 $(MYEXTLIB): sdbm/Makefile
38 } elsif ($Config{'make'} =~ /nmake/i) {
41 $(MYEXTLIB): sdbm/Makefile
47 } elsif ($^O ne 'VMS') {
49 $(MYEXTLIB): sdbm/Makefile
50 cd sdbm && $(MAKE) all
55 $(MYEXTLIB) : [.sdbm]descrip.mms