|
|
1.1 root 1: #
2: # Copyright (c) 1987 Regents of the University of California.
3: # All rights reserved. The Berkeley software License Agreement
4: # specifies the terms and conditions for redistribution.
5: #
6: # @(#)Makefile 5.4 (Berkeley) 6/19/87
7: #
8: CFLAGS= -O
9: LIBC= /lib/libc.a
10: SRCS= dbm.c
11: OBJS= dbm.o
12:
13: all: libdbm.a libdbm_p.a
14:
15: libdbm.a: dbm.c
16: ${CC} -c ${CFLAGS} dbm.c
17: ld -r -o libdbm.a -x dbm.o
18: rm -f dbm.o
19:
20: libdbm_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:
25: clean: FRC
26: rm -f ${OBJS} core libdbm.a libdbm_p.a
27:
28: depend: FRC
29: mkdep ${CFLAGS} ${SRCS}
30:
31: install: 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:
36: lint: FRC
37: lint ${CFLAGS} ${SRCS}
38:
39: tags: FRC
40: ctags ${SRCS}
41:
42: FRC:
43:
44: # DO NOT DELETE THIS LINE -- mkdep uses it.
45: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
46:
47: dbm.o: dbm.c dbm.h /usr/include/ndbm.h
48:
49: # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.