Commit | Line | Data |
42793c05 |
1 | use ExtUtils::MakeMaker; |
2 | WriteMakefile( |
1adb159c |
3 | 'NAME' => 'SDBM_File', |
42793c05 |
4 | 'LINKTYPE' => 'static', |
5 | 'DEFINE' => '-DSDBM -DDUFF', |
6 | 'SKIP' => [qw(static static_lib dynamic dynamic_lib)], |
7 | 'clean' |
40000a8c |
8 | => {'FILES' => 'dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag'}, |
9 | 'H' => [qw(tune.h sdbm.h pair.h $(PERL_INC)/config.h)], |
10 | 'C' => [qw(sdbm.c pair.c hash.c)] |
42793c05 |
11 | ); |
12 | |
13 | |
14 | sub MY::top_targets { |
15 | ' |
42793c05 |
16 | all :: static |
17 | |
4633a7c4 |
18 | static :: libsdbm$(LIB_EXT) |
42793c05 |
19 | |
42793c05 |
20 | config :: |
21 | |
4633a7c4 |
22 | libsdbm$(LIB_EXT): $(O_FILES) |
23 | $(AR) cr libsdbm$(LIB_EXT) $(O_FILES) |
24 | $(RANLIB) libsdbm$(LIB_EXT) |
40000a8c |
25 | |
42793c05 |
26 | lint: |
27 | lint -abchx $(LIBSRCS) |
28 | '; |
29 | } |