[inseparable changes from patch from perl-5.003_97d to perl-5.003_97e]
[p5sagit/p5-mst-13.2.git] / ext / SDBM_File / Makefile.PL
CommitLineData
42793c05 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
137443ea 8$define = ($^O eq 'MSWin32') ? '/D "MSDOS"' : '';
9
42793c05 10WriteMakefile(
1adb159c 11 NAME => 'SDBM_File',
4ad3186e 12 MYEXTLIB => 'sdbm/libsdbm$(LIB_EXT)',
13 MAN3PODS => ' ', # Pods will be built by installman.
14 XSPROTOARG => '-noprototypes', # XXX remove later?
c07a80fd 15 VERSION_FROM => 'SDBM_File.pm',
137443ea 16 DEFINE => $define,
42793c05 17);
18
19
20sub MY::postamble {
21 '
22$(MYEXTLIB): sdbm/Makefile
137443ea 23 cd sdbm && $(MAKE) all
42793c05 24';
25}
26