This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
This is my patch patch.0a for perl5.000.
[perl5.git] / ext / SDBM_File / sdbm / Makefile.PL
CommitLineData
42793c05
TB
1use ExtUtils::MakeMaker;
2WriteMakefile(
3 'LINKTYPE' => 'static',
4 'DEFINE' => '-DSDBM -DDUFF',
5 'SKIP' => [qw(static static_lib dynamic dynamic_lib)],
6 'clean'
7 => {'FILES' => 'dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag'}
8);
9
10
11sub MY::top_targets {
12 '
13LIBOBJS = sdbm.o pair.o hash.o
14LIBSRCS = sdbm.c pair.c hash.c
15HDRS = tune.h sdbm.h pair.h
16
17all :: static
18
19static :: libsdbm.a
20
21libsdbm.a: $(LIBOBJS)
22 ar cr libsdbm.a $(LIBOBJS)
23 $(RANLIB) libsdbm.a
24
25$(LIBOBJS): $(HDRS) $(PERL_INC)/config.h
26
27config ::
28
29lint:
30 lint -abchx $(LIBSRCS)
31';
32}
33
34
35sub MY::realclean {
36 '
37realclean :: clean
38 rm -f Makefile
39';
40}
41
42
43sub MY::postamble {
44 '
45sdbm.o : sdbm.c $(PERL_INC)/config.h sdbm.h tune.h pair.h
46hash.o : hash.c $(PERL_INC)/config.h sdbm.h
47pair.o : pair.c $(PERL_INC)/config.h sdbm.h tune.h pair.h
48';
49}