source: trunk/third/perl/ext/SDBM_File/Makefile.PL @ 10724

Revision 10724, 688 bytes checked in by ghudson, 27 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r10723, which included commits to RCS files with non-trunk default branches.
Line 
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' : '';
9
10WriteMakefile(
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
20sub MY::postamble {
21    '
22$(MYEXTLIB): sdbm/Makefile
23        cd sdbm && $(MAKE) all
24';
25}
26
Note: See TracBrowser for help on using the repository browser.