a64cb13e292dd87fc0cb6e4e6de88504599c5c29
[p5sagit/p5-mst-13.2.git] / ext / SDBM_File / sdbm / Makefile.PL
1 use ExtUtils::MakeMaker;
2 WriteMakefile(
3     NAME      => 'SDBM_File/sdbm', # doesn't matter what the name is here
4     LINKTYPE  => 'static',
5     DEFINE    => '-DSDBM -DDUFF',
6     SKIP      => [qw(static static_lib dynamic dynamic_lib)],
7     clean     => {'FILES' => 'dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag'},
8     H         => [qw(tune.h sdbm.h pair.h $(PERL_INC)/config.h)],
9     C         => [qw(sdbm.c pair.c hash.c)]
10 );
11
12
13 sub MY::top_targets {
14         '
15 all :: static
16
17 static ::       libsdbm$(LIB_EXT)
18
19 config ::
20
21 libsdbm$(LIB_EXT): $(O_FILES)
22         $(AR) cr libsdbm$(LIB_EXT) $(O_FILES)
23         $(RANLIB) libsdbm$(LIB_EXT)
24
25 lint:
26         lint -abchx $(LIBSRCS)
27 ';
28 }