]>
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 | |
18 | SOBJS= dispatch.o initialize_server.o \ | |
19 | quit.o xfer_001.o misc.o inst_001.o sync.o auth_001.o \ | |
20 | exec_001.o get_file.o xfer_002.o exec_002.o | |
21 | ||
22 | # client object files | |
23 | COBJS= client2.o ticket.o send_file.o | |
24 | ||
25 | # common object files | |
26 | COMOBJS= log_error.o hostname.o smsu_int.o log.o checksum.o | |
27 | ||
28 | SSRCS= dispatch.c initialize_server.c \ | |
29 | quit.c xfer_001.c misc.c inst_001.c sync.c auth_001.c \ | |
30 | exec_001.c get_file.c xfer_002.c exec_002.c | |
31 | ||
32 | CSRCS= client.c ticket.c send_file.c client2.c | |
33 | ||
34 | COMSRCS= log_error.c hostname.c log.c checksum.c | |
35 | ||
de56407f | 36 | LIBS= -L../lib -lgdb -lkrb -ldes -lcom_err |
37 | ||
d7bd457d | 38 | all: server sms_update.o test smskey |
de56407f | 39 | |
40 | clean: | |
a21b4b84 | 41 | -rm -f ${COBJS} ${SOBJS} ${COMOBJS} client.o |
de56407f | 42 | -rm -f server sms_update.o test test.o smsu_int.h |
43 | -rm -f core a.out *~ \#* | |
44 | ||
7eef31e6 | 45 | install: |
46 | # This is probably wrong.. | |
47 | install server ../bin/update_server | |
48 | install test ../bin/update_test | |
d7bd457d | 49 | install smskey ../bin/smskey |
7eef31e6 | 50 | |
de56407f | 51 | lint: |
52 | lint ${LINTFLAGS} ${SSRCS} ${COMSRCS} | |
53 | lint ${LINTFLAGS} ${CSRCS} ${COMSRCS} | |
d7bd457d | 54 | lint ${LINTFLAGS} smskey.c |
de56407f | 55 | |
56 | server: ${SOBJS} ${COMOBJS} | |
57 | rm -f server | |
58 | ${CC} ${CFLAGS} -o server ${SOBJS} ${COMOBJS} ${LIBS} | |
59 | ||
d7bd457d | 60 | smskey: smskey.c |
61 | ${CC} ${CFLAGS} -o smskey smskey.c -ldes | |
62 | ||
de56407f | 63 | sms_update.o: ${COBJS} ${COMOBJS} |
64 | ld ${LDFLAGS} -r -o sms_update.o ${COBJS} ${COMOBJS} | |
65 | -chmod -x sms_update.o | |
66 | ||
67 | smsu_int.o smsu_int.h: smsu_int.et | |
b7be5219 | 68 | compile_et smsu_int |
de56407f | 69 | |
70 | test.o: test.c | |
71 | -rm -f test.o | |
72 | ${CC} ${CFLAGS} -c test.c | |
73 | ||
74 | test: test.o sms_update.o | |
75 | rm -f test | |
76 | ${CC} ${CFLAGS} -o test test.o sms_update.o ${LIBS} | |
77 | ||
d7bd457d | 78 | SRCS= ${SSRCS} ${CSRCS} ${COMSRCS} smskey.c |
de56407f | 79 | depend: smsu_int.h |
80 | -rm -f eddep makedep | |
81 | ${CC} -M ${CFLAGS} ${SRCS} | \ | |
82 | sed -e 's; ./; ;' \ | |
83 | -e ':loop' \ | |
84 | -e 's/\.\.\/[^ /]*\/\.\./../' \ | |
85 | -e 't loop' | \ | |
86 | awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ | |
87 | else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ | |
88 | else rec = rec " " $$2 } } \ | |
89 | END { print rec } ' > makedep | |
90 | echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep | |
91 | echo '$$r makedep' >>eddep | |
92 | echo 'w' >>eddep | |
93 | -rm -f Makefile.bak | |
94 | cp Makefile Makefile.bak | |
95 | ed - Makefile < eddep | |
96 | rm -f eddep makedep | |
97 | # | |
98 | # the last line in the makefile should be... | |
99 | # DO NOT DELETE THIS LINE | |
100 | ||
101 | dispatch.o: dispatch.c /usr/include/stdio.h ../include/gdb.h | |
102 | dispatch.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
103 | dispatch.o: /usr/include/time.h /usr/include/errno.h /usr/include/strings.h | |
104 | dispatch.o: ../include/update.h sms_update_int.h smsu_int.h kludge.h | |
105 | initialize_server.o: initialize_server.c /usr/include/stdio.h ../include/gdb.h | |
106 | initialize_server.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
107 | initialize_server.o: /usr/include/time.h | |
108 | quit.o: quit.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h | |
109 | quit.o: /usr/include/sys/time.h /usr/include/time.h | |
110 | xfer_001.o: xfer_001.c /usr/include/stdio.h /usr/include/strings.h | |
111 | xfer_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
112 | xfer_001.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h | |
113 | xfer_001.o: /usr/include/machine/machparam.h /usr/include/signal.h | |
114 | xfer_001.o: /usr/include/sys/types.h /usr/include/sys/file.h smsu_int.h | |
115 | xfer_001.o: kludge.h | |
116 | misc.o: misc.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h | |
117 | misc.o: /usr/include/sys/time.h /usr/include/time.h sms_update_int.h kludge.h | |
118 | misc.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
119 | misc.o: /usr/include/signal.h /usr/include/sys/types.h smsu_int.h | |
120 | inst_001.o: inst_001.c /usr/include/stdio.h ../include/gdb.h | |
121 | inst_001.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
122 | inst_001.o: /usr/include/time.h kludge.h sms_update_int.h | |
123 | sync.o: sync.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h | |
124 | sync.o: /usr/include/sys/time.h /usr/include/time.h kludge.h smsu_int.h | |
125 | auth_001.o: auth_001.c /usr/include/stdio.h /usr/include/strings.h | |
126 | auth_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
127 | auth_001.o: /usr/include/time.h smsu_int.h kludge.h /usr/include/krb.h | |
128 | auth_001.o: /usr/include/des.h /usr/include/netinet/in.h /usr/include/errno.h | |
129 | exec_001.o: exec_001.c /usr/include/stdio.h ../include/gdb.h | |
130 | exec_001.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
131 | exec_001.o: /usr/include/time.h sms_update_int.h kludge.h smsu_int.h | |
132 | get_file.o: get_file.c /usr/include/stdio.h ../include/gdb.h | |
133 | get_file.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
134 | get_file.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h | |
135 | get_file.o: /usr/include/machine/machparam.h /usr/include/signal.h | |
136 | get_file.o: /usr/include/sys/types.h /usr/include/sys/file.h | |
137 | get_file.o: ../include/update.h smsu_int.h kludge.h | |
138 | xfer_002.o: xfer_002.c /usr/include/stdio.h ../include/gdb.h | |
139 | xfer_002.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
140 | xfer_002.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h | |
141 | xfer_002.o: /usr/include/machine/machparam.h /usr/include/signal.h | |
142 | xfer_002.o: /usr/include/sys/types.h /usr/include/sys/file.h smsu_int.h | |
143 | xfer_002.o: kludge.h /usr/include/strings.h | |
144 | exec_002.o: exec_002.c /usr/include/stdio.h /usr/include/sys/wait.h | |
145 | exec_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
146 | exec_002.o: /usr/include/time.h ../include/update.h sms_update_int.h kludge.h | |
147 | exec_002.o: smsu_int.h | |
148 | client.o: client.c /usr/include/stdio.h ../include/gdb.h | |
149 | client.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h | |
150 | client.o: /usr/include/sys/stat.h /usr/include/sys/file.h | |
151 | client.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
152 | client.o: /usr/include/signal.h /usr/include/sys/types.h ../include/update.h | |
153 | client.o: /usr/include/errno.h sms_update_int.h smsu_int.h /usr/include/krb.h | |
154 | client.o: /usr/include/des.h kludge.h | |
de56407f | 155 | ticket.o: ticket.c /usr/include/stdio.h /usr/include/krb.h /usr/include/des.h |
156 | ticket.o: /usr/include/sys/types.h /usr/include/sys/stat.h | |
157 | ticket.o: /usr/include/strings.h sms_update_int.h ../include/com_err.h | |
158 | ticket.o: ../include/mit-sipb-copyright.h kludge.h | |
159 | send_file.o: send_file.c /usr/include/stdio.h ../include/com_err.h | |
160 | send_file.o: ../include/mit-sipb-copyright.h ../include/gdb.h | |
161 | send_file.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
162 | send_file.o: /usr/include/time.h smsu_int.h /usr/include/sys/file.h | |
163 | send_file.o: ../include/update.h sms_update_int.h kludge.h | |
164 | client2.o: client2.c /usr/include/stdio.h /usr/include/strings.h | |
165 | client2.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
166 | client2.o: /usr/include/time.h /usr/include/sys/stat.h /usr/include/sys/file.h | |
167 | client2.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
168 | client2.o: /usr/include/signal.h /usr/include/sys/types.h ../include/update.h | |
169 | client2.o: /usr/include/errno.h sms_update_int.h smsu_int.h /usr/include/krb.h | |
170 | client2.o: /usr/include/des.h kludge.h | |
171 | log_error.o: log_error.c /usr/include/stdio.h /usr/include/syslog.h | |
172 | hostname.o: hostname.c /usr/include/stdio.h /usr/include/sys/types.h | |
173 | hostname.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/ctype.h | |
174 | hostname.o: /usr/include/strings.h | |
175 | log.o: log.c /usr/include/stdio.h ../include/com_err.h | |
176 | log.o: ../include/mit-sipb-copyright.h /usr/include/varargs.h | |
177 | log.o: ../include/update.h /usr/include/krb.h /usr/include/des.h | |
d7bd457d | 178 | log.o: /usr/include/syslog.h |
de56407f | 179 | checksum.o: checksum.c /usr/include/stdio.h /usr/include/sys/file.h |
d7bd457d | 180 | smskey.o: smskey.c /usr/include/stdio.h /usr/include/sys/file.h |
181 | smskey.o: /usr/include/des.h |