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
CommitLineData
85e6fe83
LW
1#
2# makefile for public domain ndbm-clone: sdbm
3# DUFF: use duff's device (loop unroll) in parts of the code
4#
5CFLAGS = -O -DSDBM -DDUFF -DBSD42 -pic
6#LDFLAGS = -p
7
8OBJS = sdbm.o pair.o hash.o
9SRCS = sdbm.c pair.c hash.c dbu.c dba.c dbd.c util.c
10HDRS = tune.h sdbm.h pair.h
11MISC = README CHANGES COMPARE sdbm.3 dbe.c dbe.1 dbm.c dbm.h biblio \
12 readme.ms readme.ps
13
14all: dbu dba dbd dbe
15
16dbu: dbu.o sdbm util.o
17 cc $(LDFLAGS) -o dbu dbu.o util.o libsdbm.a
18
19dba: dba.o util.o
20 cc $(LDFLAGS) -o dba dba.o util.o
21dbd: dbd.o util.o
22 cc $(LDFLAGS) -o dbd dbd.o util.o
23dbe: dbe.o sdbm
24 cc $(LDFLAGS) -o dbe dbe.o libsdbm.a
25
26sdbm: $(OBJS)
27 ar cr libsdbm.a $(OBJS)
28 ranlib libsdbm.a
29### cp libsdbm.a /usr/lib/libsdbm.a
30
31dba.o: sdbm.h
32dbu.o: sdbm.h
33util.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
42lint:
43 lint -abchx $(SRCS)
44
45clean:
46 rm -f *.o mon.out core
47
48purge: clean
49 rm -f dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag
50
51shar:
52 shar $(MISC) makefile $(SRCS) $(HDRS) >SDBM.SHAR
53
54readme:
55 nroff -ms readme.ms | col -b >README