]>
Commit | Line | Data |
---|---|---|
de56407f | 1 | # $Source$ |
2 | # $Author$ | |
3 | # $Header$ | |
4 | # | |
5 | # Makefile for SMS library. | |
6 | # | |
7 | LIBSRC=sms_auth.c sms_call.c sms_connect.c sms_data.c sms_init.c \ | |
4047a29b | 8 | sms_query.c sms_param.c sms_access.c sms_ops.c \ |
d31481e2 | 9 | fixname.c strs.c fixhost.c nfsparttype.c sq.c hash.c \ |
10 | idno.c critical.c | |
de56407f | 11 | |
12 | CFILES=${LIBSRC} | |
13 | ||
4556f559 | 14 | LIBOBJ=sms_auth.o sms_call.o sms_connect.o sms_data.o sms_init.o \ |
4047a29b | 15 | sms_query.o sms_param.o sms_access.o sms_ops.o \ |
d31481e2 | 16 | fixname.o strs.o fixhost.o nfsparttype.o sq.o hash.o \ |
17 | idno.o critical.o sms_et.o ureg_err.o krb_et.o | |
de56407f | 18 | |
19 | COPTS= -O | |
20 | ||
21 | INCDIRS=-I../include | |
22 | ||
23 | CFLAGS= ${INCDIRS} ${COPTS} | |
24 | LINTFLAGS= -uhv | |
25 | ||
c2876490 | 26 | ALL=libsms.a llib-lsms.ln # libsms_p.a |
de56407f | 27 | |
28 | .c.o: | |
a7ef7615 | 29 | ${CC} -c -pg ${CFLAGS} $*.c |
30 | ld -x -r $*.o | |
31 | mv a.out profiled/$*.o | |
de56407f | 32 | ${CC} -c ${CFLAGS} $*.c |
33 | ld -x -r $*.o | |
34 | mv a.out $*.o | |
35 | ||
36 | all: ${ALL} | |
37 | ||
38 | libsms.a: ${LIBOBJ} | |
8cd236af | 39 | ar cruv $@ `lorder ${LIBOBJ} | tsort` |
de56407f | 40 | ranlib $@ |
a7ef7615 | 41 | (cd profiled; ar cruv ../libsms_p.a ${LIBOBJ}; ranlib ../libsms_p.a) |
de56407f | 42 | |
43 | smslib.dvi: smslib.tex | |
44 | latex smslib.tex | |
45 | ||
cb34cd1e | 46 | krb_et.c krb_et.h: krb_et.et ../et/compile_et |
a7b33216 | 47 | ../et/compile_et krb_et.et |
de56407f | 48 | |
cb34cd1e | 49 | sms_et.c sms_et.h: sms_et.et ../et/compile_et |
a7b33216 | 50 | ../et/compile_et sms_et.et |
de56407f | 51 | |
cb34cd1e | 52 | ureg_err.c ureg_err.h: ureg_err.et ../et/compile_et |
a7b33216 | 53 | ../et/compile_et ureg_err.et |
fd99bc0b | 54 | |
cb34cd1e | 55 | ../et/compile_et: |
56 | cd ../et; make compile_et | |
57 | ||
de56407f | 58 | ../include/sms_et.h: sms_et.h |
59 | ||
60 | clean: | |
61 | rm -f ${ALL} | |
d31481e2 | 62 | rm -f *.o *~ sms_et.h krb_et.h ureg_err.h profiled/*.o \#* |
63 | rm -f krb_et.c sms_et.c ureg_err.c | |
de56407f | 64 | rm -f *.PS *.aux *.dvi *.log |
65 | rm -f *.bak | |
66 | ||
67 | ||
68 | install: | |
a7ef7615 | 69 | install -c -m 644 libsms.a ${DESTDIR}/usr/athena/lib/libsms.a |
de56407f | 70 | ranlib ${DESTDIR}/usr/athena/lib/libsms.a |
a7ef7615 | 71 | install -c -m 644 libsms_p.a ${DESTDIR}/usr/athena/lib/libsms_p.a |
72 | ranlib ${DESTDIR}/usr/athena/lib/libsms_p.a | |
73 | install -c -m 644 llib-lsms.ln ${DESTDIR}/usr/lib/lint/llib-lsms.ln | |
de56407f | 74 | |
75 | TAGS: $(CFILES) | |
76 | -etags $(CFILES) | |
77 | ||
78 | lint: ${CFILES} llib-lsms.ln | |
79 | lint ${LINTFLAGS} ${INCDIRS} sms_main.c llib-lsms.ln | |
80 | ||
81 | llib-lsms.ln: ${LIBSRC} | |
82 | lint -Csms $(LINTFLAGS) $(INCDIRS) ${LIBSRC} | |
83 | ||
d31481e2 | 84 | depend: $(CFILES) sms_et.h ureg_err.h krb_et.h |
a26c7955 | 85 | mkdep ${CFLAGS} ${CFILES} |
86 | ||
87 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
de56407f | 88 | |
c2876490 | 89 | sms_auth.o: sms_auth.c ../include/mit-copyright.h sms_private.h |
90 | sms_auth.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
91 | sms_auth.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
a26c7955 | 92 | sms_auth.o: /usr/include/sys/time.h ../include/sms.h sms_et.h |
93 | sms_auth.o: ../include/krb.h ../include/des.h krb_et.h | |
c2876490 | 94 | sms_call.o: sms_call.c ../include/mit-copyright.h sms_private.h |
95 | sms_call.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
96 | sms_call.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
a26c7955 | 97 | sms_call.o: /usr/include/sys/time.h ../include/sms.h sms_et.h |
4556f559 | 98 | sms_connect.o: sms_connect.c ../include/mit-copyright.h sms_private.h |
c2876490 | 99 | sms_connect.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h |
4556f559 | 100 | sms_connect.o: /usr/include/sys/types.h /usr/include/sys/time.h |
a26c7955 | 101 | sms_connect.o: /usr/include/sys/time.h ../include/sms.h sms_et.h |
102 | sms_connect.o: ../include/sms_app.h /usr/include/strings.h | |
c2876490 | 103 | sms_data.o: sms_data.c ../include/mit-copyright.h sms_private.h |
104 | sms_data.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
105 | sms_data.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
a26c7955 | 106 | sms_data.o: /usr/include/sys/time.h ../include/sms.h sms_et.h |
c2876490 | 107 | sms_init.o: sms_init.c ../include/mit-copyright.h sms_private.h |
108 | sms_init.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
109 | sms_init.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
a26c7955 | 110 | sms_init.o: /usr/include/sys/time.h ../include/sms.h sms_et.h |
c2876490 | 111 | sms_query.o: sms_query.c ../include/mit-copyright.h sms_private.h |
112 | sms_query.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
113 | sms_query.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
a26c7955 | 114 | sms_query.o: /usr/include/sys/time.h ../include/sms.h sms_et.h |
c2876490 | 115 | sms_param.o: sms_param.c ../include/mit-copyright.h /usr/include/sys/types.h |
116 | sms_param.o: /usr/include/netinet/in.h sms_private.h ../include/sms_proto.h | |
a26c7955 | 117 | sms_param.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/time.h |
118 | sms_param.o: /usr/include/sys/time.h ../include/sms.h sms_et.h | |
c2876490 | 119 | sms_access.o: sms_access.c ../include/mit-copyright.h sms_private.h |
120 | sms_access.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
121 | sms_access.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
a26c7955 | 122 | sms_access.o: /usr/include/sys/time.h ../include/sms.h sms_et.h |
c2876490 | 123 | sms_ops.o: sms_ops.c ../include/mit-copyright.h sms_private.h |
124 | sms_ops.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
a26c7955 | 125 | sms_ops.o: /usr/include/sys/types.h /usr/include/sys/time.h |
126 | sms_ops.o: /usr/include/sys/time.h ../include/sms.h sms_et.h | |
4556f559 | 127 | fixname.o: fixname.c ../include/mit-copyright.h /usr/include/strings.h |
128 | fixname.o: /usr/include/ctype.h | |
129 | strs.o: strs.c ../include/mit-copyright.h /usr/include/sys/types.h | |
130 | strs.o: /usr/include/strings.h /usr/include/ctype.h | |
131 | fixhost.o: fixhost.c ../include/mit-copyright.h /usr/include/sys/types.h | |
132 | fixhost.o: /usr/include/sys/socket.h /usr/include/netinet/in.h | |
133 | fixhost.o: /usr/include/arpa/nameser.h /usr/include/arpa/resolv.h | |
134 | fixhost.o: /usr/include/netdb.h /usr/include/stdio.h /usr/include/strings.h | |
135 | fixhost.o: /usr/include/ctype.h | |
136 | nfsparttype.o: nfsparttype.c ../include/mit-copyright.h ../include/sms.h | |
a26c7955 | 137 | nfsparttype.o: sms_et.h /usr/include/stdio.h /usr/include/strings.h |
4556f559 | 138 | nfsparttype.o: /usr/include/ctype.h |
a26c7955 | 139 | sq.o: sq.c ../include/mit-copyright.h ../include/sms.h sms_et.h |
140 | hash.o: hash.c ../include/mit-copyright.h /usr/include/ctype.h | |
141 | hash.o: ../include/sms.h sms_et.h | |
4556f559 | 142 | idno.o: idno.c ../include/mit-copyright.h /usr/include/strings.h |
143 | idno.o: /usr/include/ctype.h | |
144 | critical.o: critical.c ../include/mit-copyright.h /usr/include/stdio.h | |
145 | critical.o: /usr/include/sys/file.h /usr/include/zephyr/zephyr.h | |
146 | critical.o: /usr/include/zephyr/mit-copyright.h | |
a26c7955 | 147 | critical.o: /usr/include/zephyr/zephyr_err.h |
148 | critical.o: /usr/include/zephyr/zephyr_conf.h /usr/include/errno.h | |
4556f559 | 149 | critical.o: /usr/include/sys/types.h /usr/include/netinet/in.h |
a26c7955 | 150 | critical.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/krb.h |
151 | critical.o: ../include/des.h ../include/sms_app.h |