50fd83eb25319cf18327e1b0a3a068067f131f0c
[p5sagit/p5-mst-13.2.git] / ext / SDBM_File / sdbm / Makefile.PL
1 use ExtUtils::MakeMaker;
2
3 $define = '-DSDBM -DDUFF';
4 $define .= ' -DWIN32' if ($^O eq 'MSWin32');
5
6 WriteMakefile(
7     NAME      => 'sdbm', # (doesn't matter what the name is here) oh yes it does
8     LINKTYPE  => 'static',
9     DEFINE    => $define,
10     INC       => '-I$(PERL_INC)', # force PERL_INC dir ahead of system -I's
11     SKIP      => [qw(dynamic dynamic_lib)],
12     OBJECT    => '$(O_FILES)',
13     clean     => {'FILES' => 'dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag'},
14     H         => [qw(tune.h sdbm.h pair.h $(PERL_INC)/config.h)],
15     C         => [qw(sdbm.c pair.c hash.c)]
16 );
17
18 sub MY::post_constants {
19 '
20 INST_STATIC = libsdbm$(LIB_EXT)
21 '
22 }
23
24 sub MY::top_targets {
25         '
26 all :: static
27
28 config ::
29
30 lint:
31         lint -abchx $(LIBSRCS)
32 ';
33 }