Commit | Line | Data |
---|---|---|
88108326 | 1 | use ExtUtils::MakeMaker 5.16 ; |
2 | use Config ; | |
3 | ||
4 | # OS2 is a special case, so check for it now. | |
5 | my $OS2 = "-DOS2" if $Config{'osname'} eq 'os2' ; | |
8e07c86e | 6 | |
1f70e1ea | 7 | my $LIB = "-ldb" ; |
8 | # so is win32 | |
9 | $LIB = "-llibdb" if $^O eq 'MSWin32' ; | |
10 | ||
8e07c86e | 11 | WriteMakefile( |
88108326 | 12 | NAME => 'DB_File', |
1f70e1ea | 13 | LIBS => ["-L/usr/local/lib $LIB"], |
69158f75 | 14 | MAN3PODS => {}, # Pods will be built by installman. |
88108326 | 15 | #INC => '-I/usr/local/include', |
c07a80fd | 16 | VERSION_FROM => 'DB_File.pm', |
039d031f | 17 | OBJECT => 'version$(OBJ_EXT) DB_File$(OBJ_EXT)', |
88108326 | 18 | XSPROTOARG => '-noprototypes', |
19 | DEFINE => "$OS2", | |
20 | ); | |
8e07c86e | 21 | |
039d031f | 22 | sub MY::postamble { |
23 | ' | |
24 | version$(OBJ_EXT): version.c | |
25 | ||
26 | ' ; | |
27 | } | |
28 |