|
1 # Don't edit Makefile! Use conf-* for configuration. |
|
2 |
|
3 SHELL=/bin/sh |
|
4 |
|
5 default: it |
|
6 |
|
7 alloc.a: \ |
|
8 makelib alloc.o |
|
9 ./makelib alloc.a alloc.o |
|
10 |
|
11 alloc.o: \ |
|
12 compile alloc.c alloc.h error.h |
|
13 ./compile alloc.c |
|
14 |
|
15 auto-str: \ |
|
16 load auto-str.o buffer.a unix.a byte.a |
|
17 ./load auto-str buffer.a unix.a byte.a |
|
18 |
|
19 auto-str.o: \ |
|
20 compile auto-str.c buffer.h readwrite.h exit.h |
|
21 ./compile auto-str.c |
|
22 |
|
23 auto_home.c: \ |
|
24 auto-str conf-home |
|
25 ./auto-str auto_home `head -1 conf-home` > auto_home.c |
|
26 |
|
27 auto_home.o: \ |
|
28 compile auto_home.c |
|
29 ./compile auto_home.c |
|
30 |
|
31 buffer.a: \ |
|
32 makelib strerr_sys.o buffer.o buffer_put.o buffer_2.o strerr_die.o \ |
|
33 buffer_get.o buffer_copy.o buffer_1.o buffer_0.o buffer_1s.o |
|
34 ./makelib buffer.a strerr_sys.o buffer.o buffer_put.o \ |
|
35 buffer_2.o strerr_die.o buffer_get.o buffer_copy.o \ |
|
36 buffer_1.o buffer_0.o buffer_1s.o |
|
37 |
|
38 buffer.o: \ |
|
39 compile buffer.c buffer.h |
|
40 ./compile buffer.c |
|
41 |
|
42 buffer_0.o: \ |
|
43 compile buffer_0.c readwrite.h buffer.h |
|
44 ./compile buffer_0.c |
|
45 |
|
46 buffer_1.o: \ |
|
47 compile buffer_1.c readwrite.h buffer.h |
|
48 ./compile buffer_1.c |
|
49 |
|
50 buffer_1s.o: \ |
|
51 compile buffer_1s.c readwrite.h buffer.h |
|
52 ./compile buffer_1s.c |
|
53 |
|
54 buffer_2.o: \ |
|
55 compile buffer_2.c readwrite.h buffer.h |
|
56 ./compile buffer_2.c |
|
57 |
|
58 buffer_copy.o: \ |
|
59 compile buffer_copy.c buffer.h |
|
60 ./compile buffer_copy.c |
|
61 |
|
62 buffer_get.o: \ |
|
63 compile buffer_get.c buffer.h byte.h error.h |
|
64 ./compile buffer_get.c |
|
65 |
|
66 buffer_put.o: \ |
|
67 compile buffer_put.c buffer.h str.h byte.h error.h |
|
68 ./compile buffer_put.c |
|
69 |
|
70 byte.a: \ |
|
71 makelib byte_copy.o byte_cr.o str_len.o fmt_ulong.o uint32_unpack.o \ |
|
72 byte_diff.o uint32_pack.o scan_ulong.o |
|
73 ./makelib byte.a byte_copy.o byte_cr.o str_len.o \ |
|
74 fmt_ulong.o uint32_unpack.o byte_diff.o uint32_pack.o \ |
|
75 scan_ulong.o |
|
76 |
|
77 byte_copy.o: \ |
|
78 compile byte_copy.c byte.h |
|
79 ./compile byte_copy.c |
|
80 |
|
81 byte_cr.o: \ |
|
82 compile byte_cr.c byte.h |
|
83 ./compile byte_cr.c |
|
84 |
|
85 byte_diff.o: \ |
|
86 compile byte_diff.c byte.h |
|
87 ./compile byte_diff.c |
|
88 |
|
89 cdb.a: \ |
|
90 makelib cdb.o cdb_hash.o cdb_make.o |
|
91 ./makelib cdb.a cdb.o cdb_hash.o cdb_make.o |
|
92 |
|
93 cdb.o: \ |
|
94 compile cdb.c readwrite.h error.h seek.h byte.h cdb.h uint32.h |
|
95 ./compile cdb.c |
|
96 |
|
97 cdb_hash.o: \ |
|
98 compile cdb_hash.c cdb.h uint32.h |
|
99 ./compile cdb_hash.c |
|
100 |
|
101 cdb_make.o: \ |
|
102 compile cdb_make.c readwrite.h seek.h error.h alloc.h cdb.h uint32.h \ |
|
103 cdb_make.h buffer.h uint32.h |
|
104 ./compile cdb_make.c |
|
105 |
|
106 cdbdump: \ |
|
107 load cdbdump.o buffer.a unix.a byte.a |
|
108 ./load cdbdump buffer.a unix.a byte.a |
|
109 |
|
110 cdbdump.o: \ |
|
111 compile cdbdump.c uint32.h fmt.h buffer.h strerr.h |
|
112 ./compile cdbdump.c |
|
113 |
|
114 cdbget: \ |
|
115 load cdbget.o cdb.a buffer.a unix.a byte.a |
|
116 ./load cdbget cdb.a buffer.a unix.a byte.a |
|
117 |
|
118 cdbget.o: \ |
|
119 compile cdbget.c exit.h scan.h str.h buffer.h strerr.h cdb.h uint32.h |
|
120 ./compile cdbget.c |
|
121 |
|
122 cdbmake: \ |
|
123 load cdbmake.o cdb.a alloc.a buffer.a unix.a byte.a |
|
124 ./load cdbmake cdb.a alloc.a buffer.a unix.a byte.a |
|
125 |
|
126 cdbmake-12: \ |
|
127 warn-auto.sh cdbmake-12.sh conf-home |
|
128 cat warn-auto.sh cdbmake-12.sh \ |
|
129 | sed s}HOME}"`head -1 conf-home`"}g \ |
|
130 > cdbmake-12 |
|
131 chmod 755 cdbmake-12 |
|
132 |
|
133 cdbmake-sv: \ |
|
134 warn-auto.sh cdbmake-sv.sh conf-home |
|
135 cat warn-auto.sh cdbmake-sv.sh \ |
|
136 | sed s}HOME}"`head -1 conf-home`"}g \ |
|
137 > cdbmake-sv |
|
138 chmod 755 cdbmake-sv |
|
139 |
|
140 cdbmake.o: \ |
|
141 compile cdbmake.c error.h open.h strerr.h cdb_make.h buffer.h \ |
|
142 uint32.h cdb.h uint32.h |
|
143 ./compile cdbmake.c |
|
144 |
|
145 cdbstats: \ |
|
146 load cdbstats.o cdb.a buffer.a unix.a byte.a |
|
147 ./load cdbstats cdb.a buffer.a unix.a byte.a |
|
148 |
|
149 cdbstats.o: \ |
|
150 compile cdbstats.c uint32.h fmt.h buffer.h strerr.h seek.h cdb.h \ |
|
151 uint32.h |
|
152 ./compile cdbstats.c |
|
153 |
|
154 cdbtest: \ |
|
155 load cdbtest.o cdb.a buffer.a unix.a byte.a |
|
156 ./load cdbtest cdb.a buffer.a unix.a byte.a |
|
157 |
|
158 cdbtest.o: \ |
|
159 compile cdbtest.c uint32.h fmt.h buffer.h strerr.h seek.h cdb.h \ |
|
160 uint32.h |
|
161 ./compile cdbtest.c |
|
162 |
|
163 check: \ |
|
164 it instcheck |
|
165 ./instcheck |
|
166 |
|
167 compile: \ |
|
168 warn-auto.sh conf-cc |
|
169 ( cat warn-auto.sh; \ |
|
170 echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \ |
|
171 ) > compile |
|
172 chmod 755 compile |
|
173 |
|
174 error.o: \ |
|
175 compile error.c error.h |
|
176 ./compile error.c |
|
177 |
|
178 error_str.o: \ |
|
179 compile error_str.c error.h |
|
180 ./compile error_str.c |
|
181 |
|
182 fmt_ulong.o: \ |
|
183 compile fmt_ulong.c fmt.h |
|
184 ./compile fmt_ulong.c |
|
185 |
|
186 hier.o: \ |
|
187 compile hier.c auto_home.h |
|
188 ./compile hier.c |
|
189 |
|
190 install: \ |
|
191 load install.o hier.o auto_home.o buffer.a unix.a byte.a |
|
192 ./load install hier.o auto_home.o buffer.a unix.a byte.a |
|
193 |
|
194 install.o: \ |
|
195 compile install.c buffer.h strerr.h error.h open.h readwrite.h exit.h |
|
196 ./compile install.c |
|
197 |
|
198 instcheck: \ |
|
199 load instcheck.o hier.o auto_home.o buffer.a unix.a byte.a |
|
200 ./load instcheck hier.o auto_home.o buffer.a unix.a byte.a |
|
201 |
|
202 instcheck.o: \ |
|
203 compile instcheck.c strerr.h error.h readwrite.h exit.h |
|
204 ./compile instcheck.c |
|
205 |
|
206 it: \ |
|
207 prog install instcheck |
|
208 |
|
209 load: \ |
|
210 warn-auto.sh conf-ld |
|
211 ( cat warn-auto.sh; \ |
|
212 echo 'main="$$1"; shift'; \ |
|
213 echo exec "`head -1 conf-ld`" \ |
|
214 '-o "$$main" "$$main".o $${1+"$$@"}' \ |
|
215 ) > load |
|
216 chmod 755 load |
|
217 |
|
218 makelib: \ |
|
219 warn-auto.sh systype |
|
220 ( cat warn-auto.sh; \ |
|
221 echo 'main="$$1"; shift'; \ |
|
222 echo 'rm -f "$$main"'; \ |
|
223 echo 'ar cr "$$main" $${1+"$$@"}'; \ |
|
224 case "`cat systype`" in \ |
|
225 sunos-5.*) ;; \ |
|
226 unix_sv*) ;; \ |
|
227 irix64-*) ;; \ |
|
228 irix-*) ;; \ |
|
229 dgux-*) ;; \ |
|
230 hp-ux-*) ;; \ |
|
231 sco*) ;; \ |
|
232 *) echo 'ranlib "$$main"' ;; \ |
|
233 esac \ |
|
234 ) > makelib |
|
235 chmod 755 makelib |
|
236 |
|
237 open_read.o: \ |
|
238 compile open_read.c open.h |
|
239 ./compile open_read.c |
|
240 |
|
241 open_trunc.o: \ |
|
242 compile open_trunc.c open.h |
|
243 ./compile open_trunc.c |
|
244 |
|
245 prog: \ |
|
246 cdbget cdbmake cdbdump cdbstats cdbtest cdbmake-12 cdbmake-sv rts \ |
|
247 testzero |
|
248 |
|
249 rts: \ |
|
250 warn-auto.sh rts.sh conf-home |
|
251 cat warn-auto.sh rts.sh \ |
|
252 | sed s}HOME}"`head -1 conf-home`"}g \ |
|
253 > rts |
|
254 chmod 755 rts |
|
255 |
|
256 scan_ulong.o: \ |
|
257 compile scan_ulong.c scan.h |
|
258 ./compile scan_ulong.c |
|
259 |
|
260 seek_cur.o: \ |
|
261 compile seek_cur.c seek.h |
|
262 ./compile seek_cur.c |
|
263 |
|
264 seek_set.o: \ |
|
265 compile seek_set.c seek.h |
|
266 ./compile seek_set.c |
|
267 |
|
268 setup: \ |
|
269 it install |
|
270 ./install |
|
271 |
|
272 str_len.o: \ |
|
273 compile str_len.c str.h |
|
274 ./compile str_len.c |
|
275 |
|
276 strerr_die.o: \ |
|
277 compile strerr_die.c buffer.h exit.h strerr.h |
|
278 ./compile strerr_die.c |
|
279 |
|
280 strerr_sys.o: \ |
|
281 compile strerr_sys.c error.h strerr.h |
|
282 ./compile strerr_sys.c |
|
283 |
|
284 systype: \ |
|
285 find-systype.sh conf-cc conf-ld trycpp.c x86cpuid.c |
|
286 ( cat warn-auto.sh; \ |
|
287 echo CC=\'`head -1 conf-cc`\'; \ |
|
288 echo LD=\'`head -1 conf-ld`\'; \ |
|
289 cat find-systype.sh; \ |
|
290 ) | sh > systype |
|
291 |
|
292 testzero: \ |
|
293 load testzero.o cdb.a alloc.a buffer.a unix.a byte.a |
|
294 ./load testzero cdb.a alloc.a buffer.a unix.a byte.a |
|
295 |
|
296 testzero.o: \ |
|
297 compile testzero.c uint32.h scan.h strerr.h cdb_make.h buffer.h \ |
|
298 uint32.h |
|
299 ./compile testzero.c |
|
300 |
|
301 uint32.h: \ |
|
302 tryulong32.c compile load uint32.h1 uint32.h2 |
|
303 ( ( ./compile tryulong32.c && ./load tryulong32 && \ |
|
304 ./tryulong32 ) >/dev/null 2>&1 \ |
|
305 && cat uint32.h2 || cat uint32.h1 ) > uint32.h |
|
306 rm -f tryulong32.o tryulong32 |
|
307 |
|
308 uint32_pack.o: \ |
|
309 compile uint32_pack.c uint32.h |
|
310 ./compile uint32_pack.c |
|
311 |
|
312 uint32_unpack.o: \ |
|
313 compile uint32_unpack.c uint32.h |
|
314 ./compile uint32_unpack.c |
|
315 |
|
316 unix.a: \ |
|
317 makelib error.o open_read.o open_trunc.o error_str.o seek_set.o \ |
|
318 seek_cur.o |
|
319 ./makelib unix.a error.o open_read.o open_trunc.o \ |
|
320 error_str.o seek_set.o seek_cur.o |