PATCH: make DBM*_File modules sub-classable
[p5sagit/p5-mst-13.2.git] / ext / SDBM_File / Makefile.PL
1 use 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' : '';
9
10 WriteMakefile(
11     NAME        => 'SDBM_File',
12     MYEXTLIB => 'sdbm'.($^O eq 'MSWin32' ? '\\' : '/').'libsdbm$(LIB_EXT)',
13     MAN3PODS    => ' ',         # Pods will be built by installman.
14     XSPROTOARG => '-noprototypes',              # XXX remove later?
15     VERSION_FROM => 'SDBM_File.pm',
16     DEFINE => $define,
17 );
18
19
20 sub MY::postamble {
21     '
22 $(MYEXTLIB): sdbm/Makefile
23         cd sdbm && $(MAKE) all
24 ';
25 }
26