date and time created 88/12/05 15:43:16 by bostic
[unix-history] / usr / src / old / libndbm / Makefile
CommitLineData
fea1cabb 1#
214e8efa 2# Copyright (c) 1987 Regents of the University of California.
fea1cabb
JB
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
214e8efa 6# @(#)Makefile 5.4 (Berkeley) %G%
438e988a 7#
214e8efa
KB
8CFLAGS= -O
9LIBC= /lib/libc.a
10SRCS= dbm.c
11OBJS= dbm.o
438e988a
RE
12
13all: libdbm.a libdbm_p.a
14
15libdbm.a: dbm.c
16 ${CC} -c ${CFLAGS} dbm.c
17 ld -r -o libdbm.a -x dbm.o
18 rm -f dbm.o
19
20libdbm_p.a: dbm.c
21 ${CC} -p -c ${CFLAGS} dbm.c
22 ld -r -o libdbm_p.a -X dbm.o
23 rm -f dbm.o
24
214e8efa
KB
25clean: FRC
26 rm -f ${OBJS} core libdbm.a libdbm_p.a
438e988a 27
214e8efa
KB
28depend: FRC
29 mkdep ${CFLAGS} ${SRCS}
438e988a 30
214e8efa
KB
31install: FRC
32 install -o bin -g bin -m 644 libdbm.a ${DESTDIR}/usr/lib/libdbm.a
33 install -o bin -g bin -m 644 libdbm_p.a ${DESTDIR}/usr/lib/libdbm_p.a
34 install -c -o bin -g bin -m 444 dbm.h ${DESTDIR}/usr/include/dbm.h
35
36lint: FRC
37 lint ${CFLAGS} ${SRCS}
38
39tags: FRC
40 ctags ${SRCS}
41
42FRC:
43
44# DO NOT DELETE THIS LINE -- mkdep uses it.
45# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
46
47dbm.o: dbm.c dbm.h /usr/include/ndbm.h
48
49# IF YOU PUT ANYTHING HERE IT WILL GO AWAY