]>
Commit | Line | Data |
---|---|---|
de56407f | 1 | # |
2 | # $Source$ | |
3 | # $Header$ | |
4 | # | |
5 | ||
6 | # | |
7 | # Makefile for 'update' directory. | |
8 | # | |
546bc43b | 9 | # (c) Copyright 1988 by the Massachusetts Institute of Technology. |
10 | # For copying and distribution information, please see the file | |
11 | # <mit-copyright.h>. | |
de56407f | 12 | |
13 | CC= cc | |
14 | INCS= -I../include | |
15 | DEFS= | |
16 | CFLAGS= -g ${INCS} ${DEFS} | |
17 | LINTFLAGS= ${INCS} | |
18 | LDFLAGS= -x | |
19 | ||
20 | # server object files | |
6933d1a5 | 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 | |
de56407f | 23 | |
24 | # client object files | |
6643f7ba | 25 | COBJS= client.o ticket.o send_file.o checksum.o hostname.o |
de56407f | 26 | |
6933d1a5 | 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 | |
de56407f | 29 | |
6643f7ba | 30 | CSRCS= client.c ticket.c send_file.c checksum.c hostname.c |
de56407f | 31 | |
6933d1a5 | 32 | LIBS= -L../lib -lsms -lgdb -lkrb -ldes -lcom_err |
de56407f | 33 | |
47323920 | 34 | all: sms_update.o update_server sms_untar |
de56407f | 35 | |
6933d1a5 | 36 | update_server: ${SOBJS} |
37 | cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS} | |
6643f7ba | 38 | |
39 | sms_update.o: ${COBJS} | |
40 | ld -r -o sms_update.o ${COBJS} | |
41 | ||
47323920 | 42 | sms_untar: sms_untar.c |
43 | cc -o sms_untar sms_untar.c | |
44 | ||
de56407f | 45 | |
46 | clean: | |
6933d1a5 | 47 | -rm -f ${COBJS} ${SOBJS} |
48 | -rm -f update_server sms_update.o | |
47323920 | 49 | -rm -f sms_untar |
de56407f | 50 | -rm -f core a.out *~ \#* |
51 | ||
98de09c0 | 52 | install: update_server |
53 | install -s update_server ${DESTDIR}/usr/etc/update_server | |
47323920 | 54 | install -s sms_untar ${DESTDIR}/etc/sms_untar |
7eef31e6 | 55 | |
de56407f | 56 | lint: |
6933d1a5 | 57 | lint ${LINTFLAGS} ${SSRCS} |
58 | lint ${LINTFLAGS} ${CSRCS} | |
de56407f | 59 | |
de56407f | 60 | |
d7bd457d | 61 | smskey: smskey.c |
62 | ${CC} ${CFLAGS} -o smskey smskey.c -ldes | |
63 | ||
6933d1a5 | 64 | SRCS= ${SSRCS} ${CSRCS} |
65 | depend: | |
de56407f | 66 | -rm -f eddep makedep |
67 | ${CC} -M ${CFLAGS} ${SRCS} | \ | |
68 | sed -e 's; ./; ;' \ | |
69 | -e ':loop' \ | |
70 | -e 's/\.\.\/[^ /]*\/\.\./../' \ | |
71 | -e 't loop' | \ | |
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 | |
78 | echo 'w' >>eddep | |
79 | -rm -f Makefile.bak | |
80 | cp Makefile Makefile.bak | |
81 | ed - Makefile < eddep | |
82 | rm -f eddep makedep | |
6933d1a5 | 83 | |
de56407f | 84 | # the last line in the makefile should be... |
85 | # DO NOT DELETE THIS LINE | |
6933d1a5 | 86 | |
98de09c0 | 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 | |
94529549 | 91 | update_server.o: /usr/include/sms_et.h /usr/include/sys/file.h |
98de09c0 | 92 | update_server.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h |
94529549 | 93 | update_server.o: /usr/include/sys/ttydev.h ../include/update.h kludge.h |
98de09c0 | 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 | |
6933d1a5 | 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 | |
98de09c0 | 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 | |
6933d1a5 | 103 | inst_001.o: /usr/include/time.h kludge.h |
98de09c0 | 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 | |
6933d1a5 | 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 | |
94529549 | 109 | xfer_002.o: /usr/include/strings.h ../include/sms.h /usr/include/sms_et.h |
6933d1a5 | 110 | xfer_002.o: kludge.h |
98de09c0 | 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 | |
94529549 | 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 | |
98de09c0 | 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 | |
94529549 | 121 | log.o: /usr/include/varargs.h ../include/update.h /usr/include/krb.h |
98de09c0 | 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 | |
6933d1a5 | 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 | |
94529549 | 129 | get_file.o: /usr/include/sms_et.h ../include/update.h kludge.h |
98de09c0 | 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 | |
94529549 | 138 | client.o: /usr/include/sms_et.h /usr/include/krb.h ../include/mit-copyright.h |
98de09c0 | 139 | client.o: /usr/include/des.h ../include/mit-copyright.h /usr/include/des_conf.h |
6933d1a5 | 140 | client.o: ../include/mit-copyright.h |
98de09c0 | 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 | |
6933d1a5 | 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 | |
98de09c0 | 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 | |
6933d1a5 | 150 | send_file.o: /usr/include/time.h ../include/dcm.h ../include/sms.h |
94529549 | 151 | send_file.o: /usr/include/sms_et.h /usr/include/sys/file.h |
6933d1a5 | 152 | send_file.o: /usr/include/sys/stat.h ../include/update.h |
98de09c0 | 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 |