This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Confusing error from perl -e "x'"
[perl5.git] / ext / SDBM_File / sdbm / Makefile.PL
CommitLineData
42793c05 1use ExtUtils::MakeMaker;
137443ea
PP
2
3$define = '-DSDBM -DDUFF';
4$define .= ' -DWIN32' if ($^O eq 'MSWin32');
5
42793c05 6WriteMakefile(
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
PP
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
PP
18sub MY::post_constants {
19'
20INST_STATIC = libsdbm$(LIB_EXT)
21'
22}
42793c05
TB
23
24sub MY::top_targets {
25 '
42793c05
TB
26all :: static
27
42793c05
TB
28config ::
29
30lint:
31 lint -abchx $(LIBSRCS)
32';
33}