]>
Commit | Line | Data |
---|---|---|
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 \ | |
8 | sms_query.c sms_param.c sms_access.c menu.c admin_call.c \ | |
9 | sms_ops.c fixname.c strs.c fixhost.c nfsparttype.c \ | |
10 | sq.c hash.c idno.c critical.c | |
11 | ||
12 | CFILES=${LIBSRC} | |
13 | ||
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 menu.o admin_call.o \ | |
16 | sms_ops.o fixname.o strs.o fixhost.o nfsparttype.o \ | |
17 | sq.o hash.o idno.o critical.o \ | |
18 | sms_et.o ureg_err.o krb_et.o admin_err.o | |
19 | ||
20 | COPTS= -O | |
21 | ||
22 | INCDIRS=-I../include | |
23 | ||
24 | CFLAGS= ${INCDIRS} ${COPTS} | |
25 | LINTFLAGS= -uhv | |
26 | ||
27 | ALL=libsms.a llib-lsms.ln # libsms_p.a | |
28 | ||
29 | .c.o: | |
30 | # ${CC} -c -pg ${CFLAGS} $*.c | |
31 | # ld -x -r $*.o | |
32 | # mv a.out profiled/$*.o | |
33 | ${CC} -c ${CFLAGS} $*.c | |
34 | ld -x -r $*.o | |
35 | mv a.out $*.o | |
36 | ||
37 | all: ${ALL} | |
38 | ||
39 | libsms.a: ${LIBOBJ} | |
40 | ar cruv $@ `lorder ${LIBOBJ} | tsort` | |
41 | ranlib $@ | |
42 | # (cd profiled; ar cruv ../libsms_p.a ${LIBOBJ}; ranlib ../libsms_p.a) | |
43 | ||
44 | smslib.dvi: smslib.tex | |
45 | latex smslib.tex | |
46 | ||
47 | krb_et.c krb_et.h: krb_et.et | |
48 | ../et/compile_et krb_et.et | |
49 | ||
50 | sms_et.c sms_et.h: sms_et.et | |
51 | ../et/compile_et sms_et.et | |
52 | ||
53 | ureg_err.c ureg_err.h: ureg_err.et | |
54 | ../et/compile_et ureg_err.et | |
55 | ||
56 | admin_err.c admin_err.h: admin_err.et | |
57 | ../et/compile_et admin_err.et | |
58 | ||
59 | ../include/sms_et.h: sms_et.h | |
60 | ||
61 | clean: | |
62 | rm -f ${ALL} | |
63 | rm -f *.o *~ admin_err.h sms_et.h krb_et.h ureg_err.h profiled/*.o \#* | |
64 | rm -f krb_et.c sms_et.c ureg_err.c admin_err.c | |
65 | rm -f *.PS *.aux *.dvi *.log | |
66 | rm -f *.bak | |
67 | ||
68 | ||
69 | install: | |
70 | install -m 644 libsms.a ${DESTDIR}/usr/athena/lib/libsms.a | |
71 | ranlib ${DESTDIR}/usr/athena/lib/libsms.a | |
72 | # install -m 644 libsms_p.a ${DESTDIR}/usr/athena/lib/libsms_p.a | |
73 | # ranlib ${DESTDIR}/usr/athena/lib/libsms_p.a | |
74 | -mkdir ${DESTDIR}/usr/athena/lib/lint | |
75 | install -m 644 llib-lsms.ln ${DESTDIR}/usr/athena/lib/lint/llib-lsms.ln | |
76 | ||
77 | TAGS: $(CFILES) | |
78 | -etags $(CFILES) | |
79 | ||
80 | lint: ${CFILES} llib-lsms.ln | |
81 | lint ${LINTFLAGS} ${INCDIRS} sms_main.c llib-lsms.ln | |
82 | ||
83 | llib-lsms.ln: ${LIBSRC} | |
84 | lint -Csms $(LINTFLAGS) $(INCDIRS) ${LIBSRC} | |
85 | ||
86 | depend: $(CFILES) sms_et.h admin_err.h ureg_err.h krb_et.h | |
87 | $(CC) -M $(CFLAGS) $(CFILES) | \ | |
88 | sed -e 's; ./; ;' \ | |
89 | -e ':loop' \ | |
90 | -e 's/\.\.\/[^ /]*\/\.\./../' \ | |
91 | -e 't loop' | \ | |
92 | awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ | |
93 | else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ | |
94 | else rec = rec " " $$2 } } \ | |
95 | END { print rec } ' > makedep | |
96 | echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep | |
97 | echo '$$r makedep' >>eddep | |
98 | echo 'w' >>eddep | |
99 | cp Makefile Makefile.bak | |
100 | ed - Makefile < eddep | |
101 | rm eddep makedep | |
102 | # | |
103 | # the last constant line in the makefile should be... | |
104 | # DO NOT DELETE THIS LINE | |
105 | ||
106 | sms_auth.o: sms_auth.c ../include/mit-copyright.h sms_private.h | |
107 | sms_auth.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
108 | sms_auth.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
109 | sms_auth.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h | |
110 | sms_auth.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h | |
111 | sms_auth.o: ../include/mit-copyright.h /usr/include/des_conf.h | |
112 | sms_auth.o: ../include/mit-copyright.h krb_et.h | |
113 | sms_call.o: sms_call.c ../include/mit-copyright.h sms_private.h | |
114 | sms_call.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
115 | sms_call.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
116 | sms_call.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h | |
117 | sms_connect.o: sms_connect.c ../include/mit-copyright.h sms_private.h | |
118 | sms_connect.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
119 | sms_connect.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
120 | sms_connect.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h | |
121 | sms_data.o: sms_data.c ../include/mit-copyright.h sms_private.h | |
122 | sms_data.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
123 | sms_data.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
124 | sms_data.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h | |
125 | sms_init.o: sms_init.c ../include/mit-copyright.h sms_private.h | |
126 | sms_init.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
127 | sms_init.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
128 | sms_init.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h | |
129 | sms_query.o: sms_query.c ../include/mit-copyright.h sms_private.h | |
130 | sms_query.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
131 | sms_query.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
132 | sms_query.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h | |
133 | sms_param.o: sms_param.c ../include/mit-copyright.h /usr/include/sys/types.h | |
134 | sms_param.o: /usr/include/netinet/in.h sms_private.h ../include/sms_proto.h | |
135 | sms_param.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h | |
136 | sms_param.o: /usr/include/sys/time.h /usr/include/time.h ../include/sms.h | |
137 | sms_param.o: ../include/sms_et.h | |
138 | sms_access.o: sms_access.c ../include/mit-copyright.h sms_private.h | |
139 | sms_access.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
140 | sms_access.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
141 | sms_access.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h | |
142 | menu.o: menu.c ../include/mit-copyright.h /usr/include/sys/types.h | |
143 | menu.o: /usr/include/stdio.h /usr/include/signal.h /usr/include/curses.h | |
144 | menu.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
145 | menu.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
146 | menu.o: /usr/include/ctype.h /usr/include/strings.h /usr/include/varargs.h | |
147 | menu.o: ../include/com_err.h ../include/menu.h | |
148 | admin_call.o: admin_call.c ../include/mit-copyright.h /usr/include/sys/errno.h | |
149 | admin_call.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
150 | admin_call.o: /usr/include/time.h /usr/include/sys/ioctl.h | |
151 | admin_call.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
152 | admin_call.o: /usr/include/sys/socket.h /usr/include/netinet/in.h | |
153 | admin_call.o: /usr/include/netdb.h /usr/include/strings.h /usr/include/ctype.h | |
154 | admin_call.o: /usr/include/stdio.h admin_err.h ../include/admin_server.h | |
155 | admin_call.o: ../include/prot.h /usr/include/krb.h ../include/mit-copyright.h | |
156 | admin_call.o: /usr/include/des.h ../include/mit-copyright.h | |
157 | admin_call.o: /usr/include/des_conf.h ../include/mit-copyright.h krb_et.h | |
158 | sms_ops.o: sms_ops.c ../include/mit-copyright.h sms_private.h | |
159 | sms_ops.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h | |
160 | sms_ops.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h | |
161 | sms_ops.o: ../include/sms.h ../include/sms_et.h | |
162 | fixname.o: fixname.c ../include/mit-copyright.h /usr/include/strings.h | |
163 | fixname.o: /usr/include/ctype.h | |
164 | strs.o: strs.c ../include/mit-copyright.h /usr/include/sys/types.h | |
165 | strs.o: /usr/include/strings.h /usr/include/ctype.h | |
166 | fixhost.o: fixhost.c ../include/mit-copyright.h /usr/include/sys/types.h | |
167 | fixhost.o: /usr/include/sys/socket.h /usr/include/netinet/in.h | |
168 | fixhost.o: /usr/include/arpa/nameser.h /usr/include/arpa/resolv.h | |
169 | fixhost.o: /usr/include/netdb.h /usr/include/stdio.h /usr/include/strings.h | |
170 | fixhost.o: /usr/include/ctype.h | |
171 | nfsparttype.o: nfsparttype.c ../include/mit-copyright.h ../include/sms.h | |
172 | nfsparttype.o: ../include/sms_et.h /usr/include/stdio.h /usr/include/strings.h | |
173 | nfsparttype.o: /usr/include/ctype.h | |
174 | sq.o: sq.c ../include/mit-copyright.h ../include/sms.h ../include/sms_et.h | |
175 | hash.o: hash.c ../include/mit-copyright.h /usr/include/ctype.h ../include/sms.h | |
176 | hash.o: ../include/sms_et.h | |
177 | idno.o: idno.c ../include/mit-copyright.h /usr/include/strings.h | |
178 | idno.o: /usr/include/ctype.h | |
179 | critical.o: critical.c ../include/mit-copyright.h /usr/include/stdio.h | |
180 | critical.o: /usr/include/sys/file.h /usr/include/zephyr/zephyr.h | |
181 | critical.o: /usr/include/zephyr/mit-copyright.h | |
182 | critical.o: /usr/include/zephyr/zephyr_err.h /usr/include/zephyr/zephyr_conf.h | |
183 | critical.o: /usr/include/zephyr/mit-copyright.h /usr/include/errno.h | |
184 | critical.o: /usr/include/sys/types.h /usr/include/netinet/in.h | |
185 | critical.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/stdio.h | |
186 | critical.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h | |
187 | critical.o: ../include/mit-copyright.h /usr/include/des_conf.h | |
188 | critical.o: ../include/mit-copyright.h |