Commit | Line | Data |
---|---|---|
42793c05 TB |
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 | ||
3e3baf6d | 8 | $define = ($^O eq 'MSWin32') ? '-DMSDOS' : ''; |
17f28c40 CB |
9 | if ($^O eq 'MSWin32') { $myextlib = 'sdbm\\libsdbm$(LIB_EXT)'; } |
10 | else { $myextlib = 'sdbm/libsdbm$(LIB_EXT)'; } | |
137443ea | 11 | |
42793c05 | 12 | WriteMakefile( |
bf99883d HM |
13 | NAME => 'SDBM_File', |
14 | MYEXTLIB => $myextlib, | |
69158f75 | 15 | MAN3PODS => {}, # Pods will be built by installman. |
bf99883d HM |
16 | XSPROTOARG => '-noprototypes', # XXX remove later? |
17 | VERSION_FROM => 'SDBM_File.pm', | |
18 | DEFINE => $define, | |
bf99883d | 19 | ); |
42793c05 TB |
20 | |
21 | sub MY::postamble { | |
bf99883d | 22 | if ($^O ne 'VMS') { |
42793c05 TB |
23 | ' |
24 | $(MYEXTLIB): sdbm/Makefile | |
137443ea | 25 | cd sdbm && $(MAKE) all |
42793c05 | 26 | '; |
bf99883d HM |
27 | } else { |
28 | ' | |
17f28c40 | 29 | $(MYEXTLIB) : [.sdbm]descrip.mms |
bf99883d HM |
30 | set def [.sdbm] |
31 | $(MMS) all | |
32 | set def [-] | |
33 | '; | |
34 | } | |
42793c05 | 35 | } |