Commit | Line | Data |
---|---|---|
42793c05 | 1 | use ExtUtils::MakeMaker; |
137443ea | 2 | |
3 | $define = '-DSDBM -DDUFF'; | |
4 | $define .= ' -DWIN32' if ($^O eq 'MSWin32'); | |
5 | ||
42793c05 | 6 | WriteMakefile( |
ba14e5f0 | 7 | NAME => 'sdbm', # (doesn't matter what the name is here) oh yes it does |
bf99883d | 8 | # LINKTYPE => 'static', |
137443ea | 9 | DEFINE => $define, |
4dcba783 | 10 | INC => '-I$(PERL_INC)', # force PERL_INC dir ahead of system -I's |
137443ea | 11 | SKIP => [qw(dynamic dynamic_lib)], |
bf99883d | 12 | OBJECT => ($^O eq 'VMS') ? 'sdbm.obj pair.obj hash.obj' : '$(O_FILES)', |
74767600 | 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)] | |
42793c05 TB |
16 | ); |
17 | ||
137443ea | 18 | sub MY::post_constants { |
19 | ' | |
20 | INST_STATIC = libsdbm$(LIB_EXT) | |
21 | ' | |
22 | } | |
42793c05 TB |
23 | |
24 | sub MY::top_targets { | |
25 | ' | |
42793c05 TB |
26 | all :: static |
27 | ||
42793c05 TB |
28 | config :: |
29 | ||
30 | lint: | |
31 | lint -abchx $(LIBSRCS) | |
32 | '; | |
33 | } |