blob: 1994f052b40e38bbf01f56adcc517c96d87aa498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
use ExtUtils::MakeMaker;
WriteMakefile(
'LINKTYPE' => 'static',
'DEFINE' => '-DSDBM -DDUFF',
'SKIP' => [qw(static static_lib dynamic dynamic_lib)],
'clean'
=> {'FILES' => 'dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag'}
);
sub MY::top_targets {
'
LIBOBJS = sdbm.o pair.o hash.o
LIBSRCS = sdbm.c pair.c hash.c
HDRS = tune.h sdbm.h pair.h
all :: static
static :: libsdbm.a
libsdbm.a: $(LIBOBJS)
ar cr libsdbm.a $(LIBOBJS)
$(RANLIB) libsdbm.a
$(LIBOBJS): $(HDRS) $(PERL_INC)/config.h
config ::
lint:
lint -abchx $(LIBSRCS)
';
}
sub MY::realclean {
'
realclean :: clean
rm -f Makefile
';
}
sub MY::postamble {
'
sdbm.o : sdbm.c $(PERL_INC)/config.h sdbm.h tune.h pair.h
hash.o : hash.c $(PERL_INC)/config.h sdbm.h
pair.o : pair.c $(PERL_INC)/config.h sdbm.h tune.h pair.h
';
}
|