blob: 80b09cd37bb96643bca46879f80bba302327a8c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#
# This Makefile is for the library part of sdbm. For the
# Full package, see makefile.sdbm.
#
# Makefile for public domain ndbm-clone: sdbm
# DUFF: use duff's device (loop unroll) in parts of the code
#
#
CC = cc
ranlib = /usr/bin/ranlib
TOP = ../../..
LDFLAGS =
CLDFLAGS =
SMALL =
LARGE =
# To use an alternate make, set in config.sh.
MAKE = make
SHELL = /bin/sh
CCCMD = `sh $(shellflags) $(TOP)/cflags $@`
.c.o:
$(CCCMD) -I$(TOP) -DSDBM -DDUFF $*.c
LIBOBJS = sdbm.o pair.o hash.o
LIBSRCS = sdbm.c pair.c hash.c
HDRS = tune.h sdbm.h pair.h $(TOP)/config.h
libsdbm.a: $(LIBOBJS)
ar cr libsdbm.a $(LIBOBJS)
$(ranlib) libsdbm.a
$(LIBOBJS): $(HDRS)
lint:
lint -abchx $(LIBSRCS)
clean:
rm -f *.o *.a mon.out core
realclean: clean
rm -f dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag
rm -f makefile Makefile
purge: realclean
|