7 # Makefile for 'update' directory.
9 # (c) Copyright 1988 by the Massachusetts Institute of Technology.
10 # For copying and distribution information, please see the file
16 CFLAGS= -g ${INCS} ${DEFS}
21 SOBJS= update_server.o auth_001.o inst_001.o xfer_002.o exec_002.o \
22 hostname.o log.o get_file.o checksum.o
25 COBJS= client.o ticket.o send_file.o checksum.o hostname.o
27 SSRCS= update_server.c auth_001.c inst_001.c xfer_002.c exec_002.c \
28 hostname.c log.c get_file.c checksum.c
30 CSRCS= client.c ticket.c send_file.c checksum.c hostname.c
32 LIBS= -L../lib -lsms -lgdb -lkrb -ldes -lcom_err
34 all: sms_update.o update_server sms_untar
36 update_server: ${SOBJS}
37 cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS}
39 sms_update.o: ${COBJS}
40 ld -r -o sms_update.o ${COBJS}
42 sms_untar: sms_untar.c
43 cc -o sms_untar sms_untar.c
47 -rm -f ${COBJS} ${SOBJS}
48 -rm -f update_server sms_update.o
50 -rm -f core a.out *~ \#*
52 install: update_server
53 install -s update_server ${DESTDIR}/usr/etc/update_server
54 install -s sms_untar ${DESTDIR}/etc/sms_untar
57 lint ${LINTFLAGS} ${SSRCS}
58 lint ${LINTFLAGS} ${CSRCS}
62 ${CC} ${CFLAGS} -o smskey smskey.c -ldes
64 SRCS= ${SSRCS} ${CSRCS}
67 ${CC} -M ${CFLAGS} ${SRCS} | \
70 -e 's/\.\.\/[^ /]*\/\.\./../' \
72 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
73 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
74 else rec = rec " " $$2 } } \
75 END { print rec } ' > makedep
76 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
77 echo '$$r makedep' >>eddep
80 cp Makefile Makefile.bak
84 # the last line in the makefile should be...
85 # DO NOT DELETE THIS LINE
87 update_server.o: update_server.c ../include/mit-copyright.h
88 update_server.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
89 update_server.o: /usr/include/sys/time.h /usr/include/time.h
90 update_server.o: /usr/include/errno.h /usr/include/strings.h ../include/sms.h
91 update_server.o: /usr/include/sms_et.h /usr/include/sys/file.h
92 update_server.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
93 update_server.o: /usr/include/sys/ttydev.h ../include/update.h kludge.h
94 auth_001.o: auth_001.c ../include/mit-copyright.h /usr/include/stdio.h
95 auth_001.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
96 auth_001.o: /usr/include/sys/time.h /usr/include/time.h kludge.h
97 auth_001.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
98 auth_001.o: ../include/mit-copyright.h /usr/include/des_conf.h
99 auth_001.o: ../include/mit-copyright.h /usr/include/netinet/in.h
100 auth_001.o: /usr/include/errno.h
101 inst_001.o: inst_001.c ../include/mit-copyright.h /usr/include/stdio.h
102 inst_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
103 inst_001.o: /usr/include/time.h kludge.h
104 xfer_002.o: xfer_002.c ../include/mit-copyright.h /usr/include/stdio.h
105 xfer_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
106 xfer_002.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
107 xfer_002.o: /usr/include/machine/machparam.h /usr/include/signal.h
108 xfer_002.o: /usr/include/sys/types.h /usr/include/sys/file.h
109 xfer_002.o: /usr/include/strings.h ../include/sms.h /usr/include/sms_et.h
111 exec_002.o: exec_002.c ../include/mit-copyright.h /usr/include/stdio.h
112 exec_002.o: /usr/include/sys/wait.h /usr/include/signal.h ../include/gdb.h
113 exec_002.o: /usr/include/sys/types.h /usr/include/sys/time.h
114 exec_002.o: /usr/include/time.h ../include/sms.h /usr/include/sms_et.h
115 exec_002.o: ../include/update.h kludge.h
116 hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h
117 hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h
118 hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h
119 log.o: log.c ../include/mit-copyright.h /usr/include/stdio.h
120 log.o: ../include/com_err.h ../include/mit-sipb-copyright.h
121 log.o: /usr/include/varargs.h ../include/update.h /usr/include/krb.h
122 log.o: ../include/mit-copyright.h /usr/include/des.h ../include/mit-copyright.h
123 log.o: /usr/include/des_conf.h ../include/mit-copyright.h
124 get_file.o: get_file.c ../include/mit-copyright.h /usr/include/stdio.h
125 get_file.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
126 get_file.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
127 get_file.o: /usr/include/machine/machparam.h /usr/include/signal.h
128 get_file.o: /usr/include/sys/types.h /usr/include/sys/file.h ../include/sms.h
129 get_file.o: /usr/include/sms_et.h ../include/update.h kludge.h
130 checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h
131 checksum.o: /usr/include/sys/file.h
132 client.o: client.c ../include/mit-copyright.h /usr/include/stdio.h
133 client.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
134 client.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/param.h
135 client.o: /usr/include/machine/machparam.h /usr/include/signal.h
136 client.o: /usr/include/sys/types.h /usr/include/sys/wait.h ../include/update.h
137 client.o: /usr/include/errno.h ../include/dcm.h ../include/sms.h
138 client.o: /usr/include/sms_et.h /usr/include/krb.h ../include/mit-copyright.h
139 client.o: /usr/include/des.h ../include/mit-copyright.h /usr/include/des_conf.h
140 client.o: ../include/mit-copyright.h
141 ticket.o: ticket.c ../include/mit-copyright.h /usr/include/stdio.h
142 ticket.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
143 ticket.o: ../include/mit-copyright.h /usr/include/des_conf.h
144 ticket.o: ../include/mit-copyright.h /usr/include/sys/types.h
145 ticket.o: /usr/include/sys/stat.h /usr/include/strings.h ../include/update.h
146 ticket.o: ../include/com_err.h ../include/mit-sipb-copyright.h
147 send_file.o: send_file.c ../include/mit-copyright.h /usr/include/stdio.h
148 send_file.o: ../include/com_err.h ../include/mit-sipb-copyright.h
149 send_file.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
150 send_file.o: /usr/include/time.h ../include/dcm.h ../include/sms.h
151 send_file.o: /usr/include/sms_et.h /usr/include/sys/file.h
152 send_file.o: /usr/include/sys/stat.h ../include/update.h
153 checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h
154 checksum.o: /usr/include/sys/file.h
155 hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h
156 hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h
157 hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h