5 # Makefile for SMS library.
7 LIBSRC=sms_auth.c sms_call.c sms_connect.c sms_data.c sms_init.c \
8 sms_query.c sms_param.c sms_access.c sms_ops.c \
9 fixname.c strs.c fixhost.c nfsparttype.c sq.c hash.c \
14 LIBOBJ=sms_auth.o sms_call.o sms_connect.o sms_data.o sms_init.o \
15 sms_query.o sms_param.o sms_access.o sms_ops.o \
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
23 CFLAGS= ${INCDIRS} ${COPTS}
26 ALL=libsms.a llib-lsms.ln # libsms_p.a
29 # ${CC} -c -pg ${CFLAGS} $*.c
31 # mv a.out profiled/$*.o
32 ${CC} -c ${CFLAGS} $*.c
39 ar cruv $@ `lorder ${LIBOBJ} | tsort`
41 # (cd profiled; ar cruv ../libsms_p.a ${LIBOBJ}; ranlib ../libsms_p.a)
43 smslib.dvi: smslib.tex
46 krb_et.c krb_et.h: krb_et.et
47 ../et/compile_et krb_et.et
49 sms_et.c sms_et.h: sms_et.et
50 ../et/compile_et sms_et.et
52 ureg_err.c ureg_err.h: ureg_err.et
53 ../et/compile_et ureg_err.et
55 ../include/sms_et.h: sms_et.h
59 rm -f *.o *~ sms_et.h krb_et.h ureg_err.h profiled/*.o \#*
60 rm -f krb_et.c sms_et.c ureg_err.c
61 rm -f *.PS *.aux *.dvi *.log
66 install -m 644 libsms.a ${DESTDIR}/usr/athena/lib/libsms.a
67 ranlib ${DESTDIR}/usr/athena/lib/libsms.a
68 # install -m 644 libsms_p.a ${DESTDIR}/usr/athena/lib/libsms_p.a
69 # ranlib ${DESTDIR}/usr/athena/lib/libsms_p.a
70 install -m 644 llib-lsms.ln ${DESTDIR}/usr/lib/lint/llib-lsms.ln
75 lint: ${CFILES} llib-lsms.ln
76 lint ${LINTFLAGS} ${INCDIRS} sms_main.c llib-lsms.ln
78 llib-lsms.ln: ${LIBSRC}
79 lint -Csms $(LINTFLAGS) $(INCDIRS) ${LIBSRC}
81 depend: $(CFILES) sms_et.h ureg_err.h krb_et.h
82 mkdep ${CFLAGS} ${CFILES}
84 # DO NOT DELETE THIS LINE -- mkdep uses it.
86 sms_auth.o: sms_auth.c ../include/mit-copyright.h sms_private.h
87 sms_auth.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
88 sms_auth.o: /usr/include/sys/types.h /usr/include/sys/time.h
89 sms_auth.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
90 sms_auth.o: ../include/krb.h ../include/des.h krb_et.h
91 sms_call.o: sms_call.c ../include/mit-copyright.h sms_private.h
92 sms_call.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
93 sms_call.o: /usr/include/sys/types.h /usr/include/sys/time.h
94 sms_call.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
95 sms_connect.o: sms_connect.c ../include/mit-copyright.h sms_private.h
96 sms_connect.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
97 sms_connect.o: /usr/include/sys/types.h /usr/include/sys/time.h
98 sms_connect.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
99 sms_connect.o: ../include/sms_app.h /usr/include/strings.h
100 sms_data.o: sms_data.c ../include/mit-copyright.h sms_private.h
101 sms_data.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
102 sms_data.o: /usr/include/sys/types.h /usr/include/sys/time.h
103 sms_data.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
104 sms_init.o: sms_init.c ../include/mit-copyright.h sms_private.h
105 sms_init.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
106 sms_init.o: /usr/include/sys/types.h /usr/include/sys/time.h
107 sms_init.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
108 sms_query.o: sms_query.c ../include/mit-copyright.h sms_private.h
109 sms_query.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
110 sms_query.o: /usr/include/sys/types.h /usr/include/sys/time.h
111 sms_query.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
112 sms_param.o: sms_param.c ../include/mit-copyright.h /usr/include/sys/types.h
113 sms_param.o: /usr/include/netinet/in.h sms_private.h ../include/sms_proto.h
114 sms_param.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/time.h
115 sms_param.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
116 sms_access.o: sms_access.c ../include/mit-copyright.h sms_private.h
117 sms_access.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
118 sms_access.o: /usr/include/sys/types.h /usr/include/sys/time.h
119 sms_access.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
120 sms_ops.o: sms_ops.c ../include/mit-copyright.h sms_private.h
121 sms_ops.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
122 sms_ops.o: /usr/include/sys/types.h /usr/include/sys/time.h
123 sms_ops.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
124 fixname.o: fixname.c ../include/mit-copyright.h /usr/include/strings.h
125 fixname.o: /usr/include/ctype.h
126 strs.o: strs.c ../include/mit-copyright.h /usr/include/sys/types.h
127 strs.o: /usr/include/strings.h /usr/include/ctype.h
128 fixhost.o: fixhost.c ../include/mit-copyright.h /usr/include/sys/types.h
129 fixhost.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
130 fixhost.o: /usr/include/arpa/nameser.h /usr/include/arpa/resolv.h
131 fixhost.o: /usr/include/netdb.h /usr/include/stdio.h /usr/include/strings.h
132 fixhost.o: /usr/include/ctype.h
133 nfsparttype.o: nfsparttype.c ../include/mit-copyright.h ../include/sms.h
134 nfsparttype.o: sms_et.h /usr/include/stdio.h /usr/include/strings.h
135 nfsparttype.o: /usr/include/ctype.h
136 sq.o: sq.c ../include/mit-copyright.h ../include/sms.h sms_et.h
137 hash.o: hash.c ../include/mit-copyright.h /usr/include/ctype.h
138 hash.o: ../include/sms.h sms_et.h
139 idno.o: idno.c ../include/mit-copyright.h /usr/include/strings.h
140 idno.o: /usr/include/ctype.h
141 critical.o: critical.c ../include/mit-copyright.h /usr/include/stdio.h
142 critical.o: /usr/include/sys/file.h /usr/include/zephyr/zephyr.h
143 critical.o: /usr/include/zephyr/mit-copyright.h
144 critical.o: /usr/include/zephyr/zephyr_err.h
145 critical.o: /usr/include/zephyr/zephyr_conf.h /usr/include/errno.h
146 critical.o: /usr/include/sys/types.h /usr/include/netinet/in.h
147 critical.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/krb.h
148 critical.o: ../include/des.h ../include/sms_app.h