|
|
1.1 root 1: # makefile for "except" - C exception handling
2: #
3: # Jeffrey Mogul Stanford 4 March 1983
4: #
5: #
6: CFLAGS = -O
7: DESTDIR = /usr/local/lib
8: INCLUDEDIR = /usr/include
9:
10: all: libexcept.a libexcept_p.a
11:
12: install: install.lib install.man
13:
14: install.man:
15: rm -f /us/man/man3/except.3
16: cp except.3 /usr/man/man3
17:
18: except.o except_p.o: except.c except.h
19: ${CC} $(CFLAGS) -c -p except.c
20: mv except.o except_p.o
21: ${CC} $(CFLAGS) -c except.c
22:
23: libexcept.a: except.o
24: ar cr libexcept.a except.o
25: ranlib libexcept.a
26:
27: libexcept_p.a: except_p.o
28: ar cr libexcept_p.a except_p.o
29: ranlib libexcept_p.a
30:
31: install.lib: libexcept.a libexcept_p.a
32: rm -f $(DESTDIR)/libexcept.a $(DESTDIR)/libexcept_p.a \
33: $(INCLUDEDIR)/except.h
34: install libexcept.a $(DESTDIR)
35: ranlib $(DESTDIR)/libexcept.a
36: install libexcept_p.a $(DESTDIR)
37: ranlib $(DESTDIR)/libexcept_p.a
38: cp except.h $(INCLUDEDIR)
39:
40: clean:
41: rm -f *.BAK *.CKP *.o *.a *.tar core a.out test
42:
43: distrib: clean
44: tar cf except.tar `ls|grep -v tar`
45:
46: test: test.o libexcept.a
47: ${CC} -o test test.o libexcept.a
48:
49: test.o: test.c except.h
50: ${CC} -c test.c -I.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.