This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_leaveeval: use EVAL_KEEPERR
[perl5.git] / ext / SDBM_File / makefile.sdbm
1 #
2 # makefile for public domain ndbm-clone: sdbm
3 # DUFF: use duff's device (loop unroll) in parts of the code
4 #
5 CFLAGS = -O -DSDBM -DDUFF -DBSD42 -pic
6 #LDFLAGS = -p
7
8 OBJS = sdbm.o pair.o hash.o
9 SRCS = sdbm.c pair.c hash.c dbu.c dba.c dbd.c util.c
10 HDRS = tune.h sdbm.h pair.h
11 MISC = README CHANGES COMPARE sdbm.3 dbe.c dbe.1 dbm.c dbm.h biblio \
12        readme.ms readme.ps
13
14 all: dbu dba dbd dbe
15
16 dbu: dbu.o sdbm util.o
17         cc $(LDFLAGS) -o dbu dbu.o util.o libsdbm.a
18
19 dba: dba.o util.o
20         cc $(LDFLAGS) -o dba dba.o util.o
21 dbd: dbd.o util.o
22         cc $(LDFLAGS) -o dbd dbd.o util.o
23 dbe: dbe.o sdbm
24         cc $(LDFLAGS) -o dbe dbe.o libsdbm.a
25
26 sdbm: $(OBJS)
27         ar cr libsdbm.a $(OBJS)
28         ranlib libsdbm.a
29 ###     cp libsdbm.a /usr/lib/libsdbm.a
30
31 dba.o: sdbm.h
32 dbu.o: sdbm.h
33 util.o:sdbm.h
34
35 $(OBJS): sdbm.h tune.h pair.h
36
37 #
38 # dbu using berkelezoid ndbm routines [if you have them] for testing
39 #
40 #x-dbu: dbu.o util.o
41 #       cc $(CFLAGS) -o x-dbu dbu.o util.o
42 lint:
43         lint -abchx $(SRCS)
44
45 clean:
46         rm -f *.o mon.out core
47
48 purge:  clean
49         rm -f dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag
50
51 shar:
52         shar $(MISC) makefile $(SRCS) $(HDRS) >SDBM.SHAR
53
54 readme:
55         nroff -ms readme.ms | col -b >README