]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # $Source$ | |
3 | # $Header$ | |
4 | # | |
5 | ||
6 | # | |
7 | # Makefile for 'update' directory. | |
8 | # | |
9 | # (c) Copyright 1988 by the Massachusetts Institute of Technology. | |
10 | # For copying and distribution information, please see the file | |
11 | # <mit-copyright.h>. | |
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 | |
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 | |
23 | ||
24 | # client object files | |
25 | COBJS= client.o ticket.o send_file.o checksum.o hostname.o | |
26 | ||
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 | |
29 | ||
30 | CSRCS= client.c ticket.c send_file.c checksum.c hostname.c | |
31 | ||
32 | LIBS= -L../lib -lsms -lgdb -lkrb -ldes -lcom_err | |
33 | ||
34 | all: sms_update.o update_server sms_untar | |
35 | ||
36 | update_server: ${SOBJS} | |
37 | cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS} | |
38 | ||
39 | sms_update.o: ${COBJS} | |
40 | ld -r -o sms_update.o ${COBJS} | |
41 | ||
42 | sms_untar: sms_untar.c | |
43 | cc -o sms_untar ${INCS} sms_untar.c | |
44 | ||
45 | ||
46 | clean: | |
47 | -rm -f ${COBJS} ${SOBJS} | |
48 | -rm -f update_server sms_update.o | |
49 | -rm -f sms_untar | |
50 | -rm -f core a.out *~ \#* | |
51 | ||
52 | install: update_server | |
53 | install -c -s update_server ${DESTDIR}/usr/etc/update_server | |
54 | install -c -s sms_untar ${DESTDIR}/etc/sms_untar | |
55 | ||
56 | lint: | |
57 | lint ${LINTFLAGS} ${SSRCS} | |
58 | lint ${LINTFLAGS} ${CSRCS} | |
59 | ||
60 | ||
61 | smskey: smskey.c | |
62 | ${CC} ${CFLAGS} -o smskey smskey.c -ldes | |
63 | ||
64 | depend: | |
65 | mkdep ${CFLAGS} ${SSRCS} ${CSRCS} | |
66 | ||
67 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
68 | ||
69 | update_server.o: update_server.c ../include/mit-copyright.h | |
70 | update_server.o: /usr/include/stdio.h ../include/gdb.h | |
71 | update_server.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
72 | update_server.o: /usr/include/sys/time.h /usr/include/errno.h | |
73 | update_server.o: /usr/include/strings.h ../include/sms.h ../include/sms_et.h | |
74 | update_server.o: /usr/include/sys/file.h /usr/include/sys/ioctl.h | |
75 | update_server.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
76 | update_server.o: ../include/update.h | |
77 | auth_001.o: auth_001.c ../include/mit-copyright.h /usr/include/stdio.h | |
78 | auth_001.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h | |
79 | auth_001.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/krb.h | |
80 | auth_001.o: ../include/des.h ../include/krb_et.h /usr/include/netinet/in.h | |
81 | auth_001.o: /usr/include/errno.h | |
82 | inst_001.o: inst_001.c ../include/mit-copyright.h /usr/include/stdio.h | |
83 | inst_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
84 | inst_001.o: /usr/include/sys/time.h | |
85 | xfer_002.o: xfer_002.c ../include/mit-copyright.h /usr/include/stdio.h | |
86 | xfer_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
87 | xfer_002.o: /usr/include/sys/time.h /usr/include/ctype.h | |
88 | xfer_002.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
89 | xfer_002.o: /usr/include/sys/signal.h /usr/include/sys/file.h | |
90 | xfer_002.o: /usr/include/strings.h ../include/sms.h ../include/sms_et.h | |
91 | exec_002.o: exec_002.c ../include/mit-copyright.h /usr/include/stdio.h | |
92 | exec_002.o: /usr/include/sys/wait.h /usr/include/sys/signal.h | |
93 | exec_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
94 | exec_002.o: /usr/include/sys/time.h ../include/sms.h ../include/sms_et.h | |
95 | exec_002.o: ../include/update.h | |
96 | hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h | |
97 | hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h | |
98 | hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h | |
99 | log.o: log.c ../include/mit-copyright.h /usr/include/stdio.h | |
100 | log.o: ../include/com_err.h /usr/include/varargs.h ../include/update.h | |
101 | log.o: ../include/krb.h ../include/des.h | |
102 | get_file.o: get_file.c ../include/mit-copyright.h /usr/include/stdio.h | |
103 | get_file.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
104 | get_file.o: /usr/include/sys/time.h /usr/include/ctype.h | |
105 | get_file.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
106 | get_file.o: /usr/include/sys/signal.h /usr/include/sys/file.h | |
107 | get_file.o: ../include/sms.h ../include/sms_et.h ../include/update.h | |
108 | checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h | |
109 | checksum.o: /usr/include/sys/file.h | |
110 | client.o: client.c ../include/mit-copyright.h /usr/include/stdio.h | |
111 | client.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h | |
112 | client.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
113 | client.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
114 | client.o: /usr/include/sys/signal.h /usr/include/sys/wait.h | |
115 | client.o: /usr/include/sys/socket.h ../include/update.h /usr/include/errno.h | |
116 | client.o: ../include/dcm.h ../include/sms.h ../include/sms_et.h | |
117 | client.o: ../include/sms_app.h ../include/krb.h ../include/des.h | |
118 | ticket.o: ticket.c ../include/mit-copyright.h /usr/include/stdio.h | |
119 | ticket.o: ../include/krb.h ../include/des.h /usr/include/sys/types.h | |
120 | ticket.o: /usr/include/sys/stat.h /usr/include/strings.h ../include/update.h | |
121 | ticket.o: ../include/com_err.h ../include/krb_et.h | |
122 | send_file.o: send_file.c ../include/mit-copyright.h /usr/include/stdio.h | |
123 | send_file.o: ../include/com_err.h ../include/gdb.h /usr/include/sys/types.h | |
124 | send_file.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/dcm.h | |
125 | send_file.o: ../include/sms.h ../include/sms_et.h /usr/include/sys/file.h | |
126 | send_file.o: /usr/include/sys/stat.h ../include/update.h | |
127 | checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h | |
128 | checksum.o: /usr/include/sys/file.h | |
129 | hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h | |
130 | hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h | |
131 | hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h |