]>
Commit | Line | Data |
---|---|---|
de56407f | 1 | # |
2 | # $Source$ | |
3 | # $Header$ | |
4 | # | |
5 | ||
6 | # | |
7 | # Makefile for 'update' directory. | |
8 | # | |
9 | ||
10 | CC= cc | |
11 | INCS= -I../include | |
12 | DEFS= | |
13 | CFLAGS= -g ${INCS} ${DEFS} | |
14 | LINTFLAGS= ${INCS} | |
15 | LDFLAGS= -x | |
16 | ||
17 | # server object files | |
6933d1a5 | 18 | SOBJS= update_server.o auth_001.o inst_001.o xfer_002.o exec_002.o \ |
19 | hostname.o log.o get_file.o checksum.o | |
de56407f | 20 | |
21 | # client object files | |
6643f7ba | 22 | COBJS= client.o ticket.o send_file.o checksum.o hostname.o |
de56407f | 23 | |
6933d1a5 | 24 | SSRCS= update_server.c auth_001.c inst_001.c xfer_002.c exec_002.c \ |
25 | hostname.c log.c get_file.c checksum.c | |
de56407f | 26 | |
6643f7ba | 27 | CSRCS= client.c ticket.c send_file.c checksum.c hostname.c |
de56407f | 28 | |
6933d1a5 | 29 | LIBS= -L../lib -lsms -lgdb -lkrb -ldes -lcom_err |
de56407f | 30 | |
6933d1a5 | 31 | all: sms_update.o update_server |
de56407f | 32 | |
6933d1a5 | 33 | update_server: ${SOBJS} |
34 | cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS} | |
6643f7ba | 35 | |
36 | sms_update.o: ${COBJS} | |
37 | ld -r -o sms_update.o ${COBJS} | |
38 | ||
de56407f | 39 | |
40 | clean: | |
6933d1a5 | 41 | -rm -f ${COBJS} ${SOBJS} |
42 | -rm -f update_server sms_update.o | |
de56407f | 43 | -rm -f core a.out *~ \#* |
44 | ||
7eef31e6 | 45 | install: |
6933d1a5 | 46 | install update_server ../bin/update_server |
7eef31e6 | 47 | |
de56407f | 48 | lint: |
6933d1a5 | 49 | lint ${LINTFLAGS} ${SSRCS} |
50 | lint ${LINTFLAGS} ${CSRCS} | |
de56407f | 51 | |
de56407f | 52 | |
d7bd457d | 53 | smskey: smskey.c |
54 | ${CC} ${CFLAGS} -o smskey smskey.c -ldes | |
55 | ||
6933d1a5 | 56 | SRCS= ${SSRCS} ${CSRCS} |
57 | depend: | |
de56407f | 58 | -rm -f eddep makedep |
59 | ${CC} -M ${CFLAGS} ${SRCS} | \ | |
60 | sed -e 's; ./; ;' \ | |
61 | -e ':loop' \ | |
62 | -e 's/\.\.\/[^ /]*\/\.\./../' \ | |
63 | -e 't loop' | \ | |
64 | awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ | |
65 | else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ | |
66 | else rec = rec " " $$2 } } \ | |
67 | END { print rec } ' > makedep | |
68 | echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep | |
69 | echo '$$r makedep' >>eddep | |
70 | echo 'w' >>eddep | |
71 | -rm -f Makefile.bak | |
72 | cp Makefile Makefile.bak | |
73 | ed - Makefile < eddep | |
74 | rm -f eddep makedep | |
6933d1a5 | 75 | |
de56407f | 76 | # the last line in the makefile should be... |
77 | # DO NOT DELETE THIS LINE | |
6933d1a5 | 78 | |
79 | update_server.o: update_server.c /usr/include/stdio.h ../include/gdb.h | |
80 | update_server.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
81 | update_server.o: /usr/include/time.h /usr/include/errno.h | |
82 | update_server.o: /usr/include/strings.h ../include/sms.h ../include/sms_et.h | |
83 | update_server.o: /usr/include/sys/file.h /usr/include/sys/ioctl.h | |
84 | update_server.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h update.h | |
85 | update_server.o: kludge.h | |
86 | auth_001.o: auth_001.c /usr/include/stdio.h /usr/include/strings.h | |
87 | auth_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
88 | auth_001.o: /usr/include/time.h kludge.h /usr/include/krb.h | |
89 | auth_001.o: ../include/mit-copyright.h /usr/include/des.h | |
90 | auth_001.o: ../include/mit-copyright.h /usr/include/des_conf.h | |
91 | auth_001.o: ../include/mit-copyright.h /usr/include/netinet/in.h | |
92 | auth_001.o: /usr/include/errno.h | |
93 | inst_001.o: inst_001.c /usr/include/stdio.h ../include/gdb.h | |
94 | inst_001.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
95 | inst_001.o: /usr/include/time.h kludge.h | |
96 | xfer_002.o: xfer_002.c /usr/include/stdio.h ../include/gdb.h | |
97 | xfer_002.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
98 | xfer_002.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h | |
99 | xfer_002.o: /usr/include/machine/machparam.h /usr/include/signal.h | |
100 | xfer_002.o: /usr/include/sys/types.h /usr/include/sys/file.h | |
101 | xfer_002.o: /usr/include/strings.h ../include/sms.h ../include/sms_et.h | |
102 | xfer_002.o: kludge.h | |
103 | exec_002.o: exec_002.c /usr/include/stdio.h /usr/include/sys/wait.h | |
104 | exec_002.o: /usr/include/signal.h ../include/gdb.h /usr/include/sys/types.h | |
105 | exec_002.o: /usr/include/sys/time.h /usr/include/time.h ../include/sms.h | |
106 | exec_002.o: ../include/sms_et.h update.h kludge.h | |
107 | hostname.o: hostname.c /usr/include/stdio.h /usr/include/sys/types.h | |
108 | hostname.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/ctype.h | |
109 | hostname.o: /usr/include/strings.h | |
110 | log.o: log.c /usr/include/stdio.h ../include/com_err.h | |
111 | log.o: ../include/mit-sipb-copyright.h /usr/include/varargs.h update.h | |
112 | log.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h | |
113 | log.o: ../include/mit-copyright.h /usr/include/des_conf.h | |
114 | log.o: ../include/mit-copyright.h | |
115 | get_file.o: get_file.c /usr/include/stdio.h ../include/gdb.h | |
116 | get_file.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
117 | get_file.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h | |
118 | get_file.o: /usr/include/machine/machparam.h /usr/include/signal.h | |
119 | get_file.o: /usr/include/sys/types.h /usr/include/sys/file.h ../include/sms.h | |
120 | get_file.o: ../include/sms_et.h update.h kludge.h | |
121 | checksum.o: checksum.c /usr/include/stdio.h /usr/include/sys/file.h | |
122 | client.o: client.c /usr/include/stdio.h /usr/include/strings.h ../include/gdb.h | |
123 | client.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h | |
124 | client.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
125 | client.o: /usr/include/signal.h /usr/include/sys/types.h | |
126 | client.o: /usr/include/sys/wait.h ../include/update.h /usr/include/errno.h | |
127 | client.o: ../include/dcm.h ../include/sms.h ../include/sms_et.h | |
128 | client.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h | |
129 | client.o: ../include/mit-copyright.h /usr/include/des_conf.h | |
130 | client.o: ../include/mit-copyright.h | |
131 | ticket.o: ticket.c /usr/include/stdio.h /usr/include/krb.h | |
132 | ticket.o: ../include/mit-copyright.h /usr/include/des.h | |
133 | ticket.o: ../include/mit-copyright.h /usr/include/des_conf.h | |
134 | ticket.o: ../include/mit-copyright.h /usr/include/sys/types.h | |
135 | ticket.o: /usr/include/sys/stat.h /usr/include/strings.h ../include/update.h | |
136 | ticket.o: ../include/com_err.h ../include/mit-sipb-copyright.h | |
137 | send_file.o: send_file.c /usr/include/stdio.h ../include/com_err.h | |
138 | send_file.o: ../include/mit-sipb-copyright.h ../include/gdb.h | |
139 | send_file.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
140 | send_file.o: /usr/include/time.h ../include/dcm.h ../include/sms.h | |
141 | send_file.o: ../include/sms_et.h /usr/include/sys/file.h | |
142 | send_file.o: /usr/include/sys/stat.h ../include/update.h | |
143 | checksum.o: checksum.c /usr/include/stdio.h /usr/include/sys/file.h | |
144 | hostname.o: hostname.c /usr/include/stdio.h /usr/include/sys/types.h | |
145 | hostname.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/ctype.h | |
146 | hostname.o: /usr/include/strings.h |