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