Commit | Line | Data |
---|---|---|
dc0d77d7 CE |
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 alloc_re.o getln.o getln2.o stralloc_cat.o \ | |
9 | stralloc_catb.o stralloc_cats.o stralloc_copy.o stralloc_eady.o \ | |
10 | stralloc_num.o stralloc_opyb.o stralloc_opys.o stralloc_pend.o | |
11 | ./makelib alloc.a alloc.o alloc_re.o getln.o getln2.o \ | |
12 | stralloc_cat.o stralloc_catb.o stralloc_cats.o \ | |
13 | stralloc_copy.o stralloc_eady.o stralloc_num.o \ | |
14 | stralloc_opyb.o stralloc_opys.o stralloc_pend.o | |
15 | ||
16 | alloc.o: \ | |
17 | compile alloc.c alloc.h error.h | |
18 | ./compile alloc.c | |
19 | ||
20 | alloc_re.o: \ | |
21 | compile alloc_re.c alloc.h byte.h | |
22 | ./compile alloc_re.c | |
23 | ||
24 | auto-str: \ | |
25 | load auto-str.o buffer.a unix.a byte.a | |
26 | ./load auto-str buffer.a unix.a byte.a | |
27 | ||
28 | auto-str.o: \ | |
29 | compile auto-str.c buffer.h exit.h | |
30 | ./compile auto-str.c | |
31 | ||
32 | auto_home.c: \ | |
33 | auto-str conf-home | |
34 | ./auto-str auto_home `head -1 conf-home` > auto_home.c | |
35 | ||
36 | auto_home.o: \ | |
37 | compile auto_home.c | |
38 | ./compile auto_home.c | |
39 | ||
40 | axfr-get: \ | |
41 | load axfr-get.o iopause.o timeoutread.o timeoutwrite.o dns.a libtai.a \ | |
42 | alloc.a buffer.a unix.a byte.a | |
43 | ./load axfr-get iopause.o timeoutread.o timeoutwrite.o \ | |
44 | dns.a libtai.a alloc.a buffer.a unix.a byte.a | |
45 | ||
46 | axfr-get.o: \ | |
47 | compile axfr-get.c uint32.h uint16.h stralloc.h gen_alloc.h error.h \ | |
48 | strerr.h getln.h buffer.h stralloc.h buffer.h exit.h open.h scan.h \ | |
49 | byte.h str.h ip4.h timeoutread.h timeoutwrite.h dns.h stralloc.h \ | |
50 | iopause.h taia.h tai.h uint64.h taia.h | |
51 | ./compile axfr-get.c | |
52 | ||
53 | axfrdns: \ | |
54 | load axfrdns.o iopause.o droproot.o tdlookup.o response.o qlog.o \ | |
55 | prot.o timeoutread.o timeoutwrite.o dns.a libtai.a alloc.a env.a \ | |
56 | cdb.a buffer.a unix.a byte.a | |
57 | ./load axfrdns iopause.o droproot.o tdlookup.o response.o \ | |
58 | qlog.o prot.o timeoutread.o timeoutwrite.o dns.a libtai.a \ | |
59 | alloc.a env.a cdb.a buffer.a unix.a byte.a | |
60 | ||
61 | axfrdns-conf: \ | |
62 | load axfrdns-conf.o generic-conf.o auto_home.o buffer.a unix.a byte.a | |
63 | ./load axfrdns-conf generic-conf.o auto_home.o buffer.a \ | |
64 | unix.a byte.a | |
65 | ||
66 | axfrdns-conf.o: \ | |
67 | compile axfrdns-conf.c strerr.h exit.h auto_home.h generic-conf.h \ | |
68 | buffer.h | |
69 | ./compile axfrdns-conf.c | |
70 | ||
71 | axfrdns.o: \ | |
72 | compile axfrdns.c droproot.h exit.h env.h uint32.h uint16.h ip4.h \ | |
73 | tai.h uint64.h buffer.h timeoutread.h timeoutwrite.h open.h seek.h \ | |
74 | cdb.h uint32.h stralloc.h gen_alloc.h strerr.h str.h byte.h case.h \ | |
75 | dns.h stralloc.h iopause.h taia.h tai.h taia.h scan.h qlog.h uint16.h \ | |
76 | response.h uint32.h | |
77 | ./compile axfrdns.c | |
78 | ||
79 | buffer.a: \ | |
80 | makelib buffer.o buffer_1.o buffer_2.o buffer_copy.o buffer_get.o \ | |
81 | buffer_put.o strerr_die.o strerr_sys.o | |
82 | ./makelib buffer.a buffer.o buffer_1.o buffer_2.o \ | |
83 | buffer_copy.o buffer_get.o buffer_put.o strerr_die.o \ | |
84 | strerr_sys.o | |
85 | ||
86 | buffer.o: \ | |
87 | compile buffer.c buffer.h | |
88 | ./compile buffer.c | |
89 | ||
90 | buffer_1.o: \ | |
91 | compile buffer_1.c buffer.h | |
92 | ./compile buffer_1.c | |
93 | ||
94 | buffer_2.o: \ | |
95 | compile buffer_2.c buffer.h | |
96 | ./compile buffer_2.c | |
97 | ||
98 | buffer_copy.o: \ | |
99 | compile buffer_copy.c buffer.h | |
100 | ./compile buffer_copy.c | |
101 | ||
102 | buffer_get.o: \ | |
103 | compile buffer_get.c buffer.h byte.h error.h | |
104 | ./compile buffer_get.c | |
105 | ||
106 | buffer_put.o: \ | |
107 | compile buffer_put.c buffer.h str.h byte.h error.h | |
108 | ./compile buffer_put.c | |
109 | ||
110 | buffer_read.o: \ | |
111 | compile buffer_read.c buffer.h | |
112 | ./compile buffer_read.c | |
113 | ||
114 | buffer_write.o: \ | |
115 | compile buffer_write.c buffer.h | |
116 | ./compile buffer_write.c | |
117 | ||
118 | byte.a: \ | |
119 | makelib byte_chr.o byte_copy.o byte_cr.o byte_diff.o byte_zero.o \ | |
120 | case_diffb.o case_diffs.o case_lowerb.o fmt_ulong.o ip4_fmt.o \ | |
121 | ip4_scan.o scan_ulong.o str_chr.o str_diff.o str_len.o str_rchr.o \ | |
122 | str_start.o uint16_pack.o uint16_unpack.o uint32_pack.o \ | |
123 | uint32_unpack.o | |
124 | ./makelib byte.a byte_chr.o byte_copy.o byte_cr.o \ | |
125 | byte_diff.o byte_zero.o case_diffb.o case_diffs.o \ | |
126 | case_lowerb.o fmt_ulong.o ip4_fmt.o ip4_scan.o scan_ulong.o \ | |
127 | str_chr.o str_diff.o str_len.o str_rchr.o str_start.o \ | |
128 | uint16_pack.o uint16_unpack.o uint32_pack.o uint32_unpack.o | |
129 | ||
130 | byte_chr.o: \ | |
131 | compile byte_chr.c byte.h | |
132 | ./compile byte_chr.c | |
133 | ||
134 | byte_copy.o: \ | |
135 | compile byte_copy.c byte.h | |
136 | ./compile byte_copy.c | |
137 | ||
138 | byte_cr.o: \ | |
139 | compile byte_cr.c byte.h | |
140 | ./compile byte_cr.c | |
141 | ||
142 | byte_diff.o: \ | |
143 | compile byte_diff.c byte.h | |
144 | ./compile byte_diff.c | |
145 | ||
146 | byte_zero.o: \ | |
147 | compile byte_zero.c byte.h | |
148 | ./compile byte_zero.c | |
149 | ||
150 | cache.o: \ | |
151 | compile cache.c alloc.h byte.h uint32.h exit.h tai.h uint64.h cache.h \ | |
152 | uint32.h uint64.h | |
153 | ./compile cache.c | |
154 | ||
155 | cachetest: \ | |
156 | load cachetest.o cache.o libtai.a buffer.a alloc.a unix.a byte.a | |
157 | ./load cachetest cache.o libtai.a buffer.a alloc.a unix.a \ | |
158 | byte.a | |
159 | ||
160 | cachetest.o: \ | |
161 | compile cachetest.c buffer.h exit.h cache.h uint32.h uint64.h str.h | |
162 | ./compile cachetest.c | |
163 | ||
164 | case_diffb.o: \ | |
165 | compile case_diffb.c case.h | |
166 | ./compile case_diffb.c | |
167 | ||
168 | case_diffs.o: \ | |
169 | compile case_diffs.c case.h | |
170 | ./compile case_diffs.c | |
171 | ||
172 | case_lowerb.o: \ | |
173 | compile case_lowerb.c case.h | |
174 | ./compile case_lowerb.c | |
175 | ||
176 | cdb.a: \ | |
177 | makelib cdb.o cdb_hash.o cdb_make.o | |
178 | ./makelib cdb.a cdb.o cdb_hash.o cdb_make.o | |
179 | ||
180 | cdb.o: \ | |
181 | compile cdb.c error.h seek.h byte.h cdb.h uint32.h | |
182 | ./compile cdb.c | |
183 | ||
184 | cdb_hash.o: \ | |
185 | compile cdb_hash.c cdb.h uint32.h | |
186 | ./compile cdb_hash.c | |
187 | ||
188 | cdb_make.o: \ | |
189 | compile cdb_make.c seek.h error.h alloc.h cdb.h uint32.h cdb_make.h \ | |
190 | buffer.h uint32.h | |
191 | ./compile cdb_make.c | |
192 | ||
193 | check: \ | |
194 | it instcheck | |
195 | ./instcheck | |
196 | ||
197 | chkshsgr: \ | |
198 | load chkshsgr.o | |
199 | ./load chkshsgr | |
200 | ||
201 | chkshsgr.o: \ | |
202 | compile chkshsgr.c exit.h | |
203 | ./compile chkshsgr.c | |
204 | ||
205 | choose: \ | |
206 | warn-auto.sh choose.sh conf-home | |
207 | cat warn-auto.sh choose.sh \ | |
208 | | sed s}HOME}"`head -1 conf-home`"}g \ | |
209 | > choose | |
210 | chmod 755 choose | |
211 | ||
212 | compile: \ | |
213 | warn-auto.sh conf-cc | |
214 | ( cat warn-auto.sh; \ | |
215 | echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \ | |
216 | ) > compile | |
217 | chmod 755 compile | |
218 | ||
219 | dd.o: \ | |
220 | compile dd.c dns.h stralloc.h gen_alloc.h iopause.h taia.h tai.h \ | |
221 | uint64.h taia.h dd.h | |
222 | ./compile dd.c | |
223 | ||
224 | direntry.h: \ | |
225 | choose compile trydrent.c direntry.h1 direntry.h2 | |
226 | ./choose c trydrent direntry.h1 direntry.h2 > direntry.h | |
227 | ||
228 | dns.a: \ | |
229 | makelib dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o dns_ipq.o dns_mx.o \ | |
230 | dns_name.o dns_nd.o dns_packet.o dns_random.o dns_rcip.o dns_rcrw.o \ | |
231 | dns_resolve.o dns_sortip.o dns_transmit.o dns_txt.o | |
232 | ./makelib dns.a dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o \ | |
233 | dns_ipq.o dns_mx.o dns_name.o dns_nd.o dns_packet.o \ | |
234 | dns_random.o dns_rcip.o dns_rcrw.o dns_resolve.o \ | |
235 | dns_sortip.o dns_transmit.o dns_txt.o | |
236 | ||
237 | dns_dfd.o: \ | |
238 | compile dns_dfd.c error.h alloc.h byte.h dns.h stralloc.h gen_alloc.h \ | |
239 | iopause.h taia.h tai.h uint64.h taia.h | |
240 | ./compile dns_dfd.c | |
241 | ||
242 | dns_domain.o: \ | |
243 | compile dns_domain.c error.h alloc.h case.h byte.h dns.h stralloc.h \ | |
244 | gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h | |
245 | ./compile dns_domain.c | |
246 | ||
247 | dns_dtda.o: \ | |
248 | compile dns_dtda.c stralloc.h gen_alloc.h dns.h stralloc.h iopause.h \ | |
249 | taia.h tai.h uint64.h taia.h | |
250 | ./compile dns_dtda.c | |
251 | ||
252 | dns_ip.o: \ | |
253 | compile dns_ip.c stralloc.h gen_alloc.h uint16.h byte.h dns.h \ | |
254 | stralloc.h iopause.h taia.h tai.h uint64.h taia.h | |
255 | ./compile dns_ip.c | |
256 | ||
257 | dns_ipq.o: \ | |
258 | compile dns_ipq.c stralloc.h gen_alloc.h case.h byte.h str.h dns.h \ | |
259 | stralloc.h iopause.h taia.h tai.h uint64.h taia.h | |
260 | ./compile dns_ipq.c | |
261 | ||
262 | dns_mx.o: \ | |
263 | compile dns_mx.c stralloc.h gen_alloc.h byte.h uint16.h dns.h \ | |
264 | stralloc.h iopause.h taia.h tai.h uint64.h taia.h | |
265 | ./compile dns_mx.c | |
266 | ||
267 | dns_name.o: \ | |
268 | compile dns_name.c stralloc.h gen_alloc.h uint16.h byte.h dns.h \ | |
269 | stralloc.h iopause.h taia.h tai.h uint64.h taia.h | |
270 | ./compile dns_name.c | |
271 | ||
272 | dns_nd.o: \ | |
273 | compile dns_nd.c byte.h fmt.h dns.h stralloc.h gen_alloc.h iopause.h \ | |
274 | taia.h tai.h uint64.h taia.h | |
275 | ./compile dns_nd.c | |
276 | ||
277 | dns_packet.o: \ | |
278 | compile dns_packet.c error.h dns.h stralloc.h gen_alloc.h iopause.h \ | |
279 | taia.h tai.h uint64.h taia.h | |
280 | ./compile dns_packet.c | |
281 | ||
282 | dns_random.o: \ | |
283 | compile dns_random.c dns.h stralloc.h gen_alloc.h iopause.h taia.h \ | |
284 | tai.h uint64.h taia.h taia.h uint32.h | |
285 | ./compile dns_random.c | |
286 | ||
287 | dns_rcip.o: \ | |
288 | compile dns_rcip.c taia.h tai.h uint64.h openreadclose.h stralloc.h \ | |
289 | gen_alloc.h byte.h ip4.h env.h dns.h stralloc.h iopause.h taia.h \ | |
290 | taia.h | |
291 | ./compile dns_rcip.c | |
292 | ||
293 | dns_rcrw.o: \ | |
294 | compile dns_rcrw.c taia.h tai.h uint64.h env.h byte.h str.h \ | |
295 | openreadclose.h stralloc.h gen_alloc.h dns.h stralloc.h iopause.h \ | |
296 | taia.h taia.h | |
297 | ./compile dns_rcrw.c | |
298 | ||
299 | dns_resolve.o: \ | |
300 | compile dns_resolve.c iopause.h taia.h tai.h uint64.h taia.h byte.h \ | |
301 | dns.h stralloc.h gen_alloc.h iopause.h taia.h | |
302 | ./compile dns_resolve.c | |
303 | ||
304 | dns_sortip.o: \ | |
305 | compile dns_sortip.c byte.h dns.h stralloc.h gen_alloc.h iopause.h \ | |
306 | taia.h tai.h uint64.h taia.h | |
307 | ./compile dns_sortip.c | |
308 | ||
309 | dns_transmit.o: \ | |
310 | compile dns_transmit.c socket.h uint16.h alloc.h error.h byte.h \ | |
311 | uint16.h dns.h stralloc.h gen_alloc.h iopause.h taia.h tai.h uint64.h \ | |
312 | taia.h | |
313 | ./compile dns_transmit.c | |
314 | ||
315 | dns_txt.o: \ | |
316 | compile dns_txt.c stralloc.h gen_alloc.h uint16.h byte.h dns.h \ | |
317 | stralloc.h iopause.h taia.h tai.h uint64.h taia.h | |
318 | ./compile dns_txt.c | |
319 | ||
320 | dnscache: \ | |
321 | load dnscache.o droproot.o okclient.o log.o cache.o query.o \ | |
322 | response.o dd.o roots.o iopause.o prot.o dns.a env.a alloc.a buffer.a \ | |
323 | libtai.a unix.a byte.a socket.lib | |
324 | ./load dnscache droproot.o okclient.o log.o cache.o \ | |
325 | query.o response.o dd.o roots.o iopause.o prot.o dns.a \ | |
326 | env.a alloc.a buffer.a libtai.a unix.a byte.a `cat \ | |
327 | socket.lib` | |
328 | ||
329 | dnscache-conf: \ | |
330 | load dnscache-conf.o generic-conf.o auto_home.o libtai.a buffer.a \ | |
331 | unix.a byte.a | |
332 | ./load dnscache-conf generic-conf.o auto_home.o libtai.a \ | |
333 | buffer.a unix.a byte.a | |
334 | ||
335 | dnscache-conf.o: \ | |
336 | compile dnscache-conf.c hasdevtcp.h strerr.h buffer.h uint32.h taia.h \ | |
337 | tai.h uint64.h str.h open.h error.h exit.h auto_home.h generic-conf.h \ | |
338 | buffer.h | |
339 | ./compile dnscache-conf.c | |
340 | ||
341 | dnscache.o: \ | |
342 | compile dnscache.c env.h exit.h scan.h strerr.h error.h ip4.h \ | |
343 | uint16.h uint64.h socket.h uint16.h dns.h stralloc.h gen_alloc.h \ | |
344 | iopause.h taia.h tai.h uint64.h taia.h taia.h byte.h roots.h fmt.h \ | |
345 | iopause.h query.h dns.h uint32.h alloc.h response.h uint32.h cache.h \ | |
346 | uint32.h uint64.h ndelay.h log.h uint64.h okclient.h droproot.h | |
347 | ./compile dnscache.c | |
348 | ||
349 | dnsfilter: \ | |
350 | load dnsfilter.o iopause.o getopt.a dns.a env.a libtai.a alloc.a \ | |
351 | buffer.a unix.a byte.a socket.lib | |
352 | ./load dnsfilter iopause.o getopt.a dns.a env.a libtai.a \ | |
353 | alloc.a buffer.a unix.a byte.a `cat socket.lib` | |
354 | ||
355 | dnsfilter.o: \ | |
356 | compile dnsfilter.c strerr.h buffer.h stralloc.h gen_alloc.h alloc.h \ | |
357 | dns.h stralloc.h iopause.h taia.h tai.h uint64.h taia.h ip4.h byte.h \ | |
358 | scan.h taia.h sgetopt.h subgetopt.h iopause.h error.h exit.h | |
359 | ./compile dnsfilter.c | |
360 | ||
361 | dnsip: \ | |
362 | load dnsip.o iopause.o dns.a env.a libtai.a alloc.a buffer.a unix.a \ | |
363 | byte.a socket.lib | |
364 | ./load dnsip iopause.o dns.a env.a libtai.a alloc.a \ | |
365 | buffer.a unix.a byte.a `cat socket.lib` | |
366 | ||
367 | dnsip.o: \ | |
368 | compile dnsip.c buffer.h exit.h strerr.h ip4.h dns.h stralloc.h \ | |
369 | gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h | |
370 | ./compile dnsip.c | |
371 | ||
372 | dnsipq: \ | |
373 | load dnsipq.o iopause.o dns.a env.a libtai.a alloc.a buffer.a unix.a \ | |
374 | byte.a socket.lib | |
375 | ./load dnsipq iopause.o dns.a env.a libtai.a alloc.a \ | |
376 | buffer.a unix.a byte.a `cat socket.lib` | |
377 | ||
378 | dnsipq.o: \ | |
379 | compile dnsipq.c buffer.h exit.h strerr.h ip4.h dns.h stralloc.h \ | |
380 | gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h | |
381 | ./compile dnsipq.c | |
382 | ||
383 | dnsmx: \ | |
384 | load dnsmx.o iopause.o dns.a env.a libtai.a alloc.a buffer.a unix.a \ | |
385 | byte.a socket.lib | |
386 | ./load dnsmx iopause.o dns.a env.a libtai.a alloc.a \ | |
387 | buffer.a unix.a byte.a `cat socket.lib` | |
388 | ||
389 | dnsmx.o: \ | |
390 | compile dnsmx.c buffer.h exit.h strerr.h uint16.h byte.h str.h fmt.h \ | |
391 | dns.h stralloc.h gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h | |
392 | ./compile dnsmx.c | |
393 | ||
394 | dnsname: \ | |
395 | load dnsname.o iopause.o dns.a env.a libtai.a alloc.a buffer.a unix.a \ | |
396 | byte.a socket.lib | |
397 | ./load dnsname iopause.o dns.a env.a libtai.a alloc.a \ | |
398 | buffer.a unix.a byte.a `cat socket.lib` | |
399 | ||
400 | dnsname.o: \ | |
401 | compile dnsname.c buffer.h exit.h strerr.h ip4.h dns.h stralloc.h \ | |
402 | gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h | |
403 | ./compile dnsname.c | |
404 | ||
405 | dnsq: \ | |
406 | load dnsq.o iopause.o printrecord.o printpacket.o parsetype.o dns.a \ | |
407 | env.a libtai.a buffer.a alloc.a unix.a byte.a socket.lib | |
408 | ./load dnsq iopause.o printrecord.o printpacket.o \ | |
409 | parsetype.o dns.a env.a libtai.a buffer.a alloc.a unix.a \ | |
410 | byte.a `cat socket.lib` | |
411 | ||
412 | dnsq.o: \ | |
413 | compile dnsq.c uint16.h strerr.h buffer.h scan.h str.h byte.h error.h \ | |
414 | ip4.h iopause.h taia.h tai.h uint64.h printpacket.h stralloc.h \ | |
415 | gen_alloc.h parsetype.h dns.h stralloc.h iopause.h taia.h | |
416 | ./compile dnsq.c | |
417 | ||
418 | dnsqr: \ | |
419 | load dnsqr.o iopause.o printrecord.o printpacket.o parsetype.o dns.a \ | |
420 | env.a libtai.a buffer.a alloc.a unix.a byte.a socket.lib | |
421 | ./load dnsqr iopause.o printrecord.o printpacket.o \ | |
422 | parsetype.o dns.a env.a libtai.a buffer.a alloc.a unix.a \ | |
423 | byte.a `cat socket.lib` | |
424 | ||
425 | dnsqr.o: \ | |
426 | compile dnsqr.c uint16.h strerr.h buffer.h scan.h str.h byte.h \ | |
427 | error.h iopause.h taia.h tai.h uint64.h printpacket.h stralloc.h \ | |
428 | gen_alloc.h parsetype.h dns.h stralloc.h iopause.h taia.h | |
429 | ./compile dnsqr.c | |
430 | ||
431 | dnstrace: \ | |
432 | load dnstrace.o dd.o iopause.o printrecord.o parsetype.o dns.a env.a \ | |
433 | libtai.a alloc.a buffer.a unix.a byte.a socket.lib | |
434 | ./load dnstrace dd.o iopause.o printrecord.o parsetype.o \ | |
435 | dns.a env.a libtai.a alloc.a buffer.a unix.a byte.a `cat \ | |
436 | socket.lib` | |
437 | ||
438 | dnstrace.o: \ | |
439 | compile dnstrace.c uint16.h uint32.h fmt.h str.h byte.h ip4.h \ | |
440 | gen_alloc.h gen_allocdefs.h exit.h buffer.h stralloc.h gen_alloc.h \ | |
441 | error.h strerr.h iopause.h taia.h tai.h uint64.h printrecord.h \ | |
442 | stralloc.h alloc.h parsetype.h dd.h dns.h stralloc.h iopause.h taia.h | |
443 | ./compile dnstrace.c | |
444 | ||
445 | dnstracesort: \ | |
446 | warn-auto.sh dnstracesort.sh conf-home | |
447 | cat warn-auto.sh dnstracesort.sh \ | |
448 | | sed s}HOME}"`head -1 conf-home`"}g \ | |
449 | > dnstracesort | |
450 | chmod 755 dnstracesort | |
451 | ||
452 | dnstxt: \ | |
453 | load dnstxt.o iopause.o dns.a env.a libtai.a alloc.a buffer.a unix.a \ | |
454 | byte.a socket.lib | |
455 | ./load dnstxt iopause.o dns.a env.a libtai.a alloc.a \ | |
456 | buffer.a unix.a byte.a `cat socket.lib` | |
457 | ||
458 | dnstxt.o: \ | |
459 | compile dnstxt.c buffer.h exit.h strerr.h dns.h stralloc.h \ | |
460 | gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h | |
461 | ./compile dnstxt.c | |
462 | ||
463 | droproot.o: \ | |
464 | compile droproot.c env.h scan.h prot.h strerr.h | |
465 | ./compile droproot.c | |
466 | ||
467 | env.a: \ | |
468 | makelib env.o | |
469 | ./makelib env.a env.o | |
470 | ||
471 | env.o: \ | |
472 | compile env.c str.h env.h | |
473 | ./compile env.c | |
474 | ||
475 | error.o: \ | |
476 | compile error.c error.h | |
477 | ./compile error.c | |
478 | ||
479 | error_str.o: \ | |
480 | compile error_str.c error.h | |
481 | ./compile error_str.c | |
482 | ||
483 | fmt_ulong.o: \ | |
484 | compile fmt_ulong.c fmt.h | |
485 | ./compile fmt_ulong.c | |
486 | ||
487 | generic-conf.o: \ | |
488 | compile generic-conf.c strerr.h buffer.h open.h generic-conf.h \ | |
489 | buffer.h | |
490 | ./compile generic-conf.c | |
491 | ||
492 | getln.o: \ | |
493 | compile getln.c byte.h getln.h buffer.h stralloc.h gen_alloc.h | |
494 | ./compile getln.c | |
495 | ||
496 | getln2.o: \ | |
497 | compile getln2.c byte.h getln.h buffer.h stralloc.h gen_alloc.h | |
498 | ./compile getln2.c | |
499 | ||
500 | getopt.a: \ | |
501 | makelib sgetopt.o subgetopt.o | |
502 | ./makelib getopt.a sgetopt.o subgetopt.o | |
503 | ||
504 | hasdevtcp.h: \ | |
505 | systype hasdevtcp.h1 hasdevtcp.h2 | |
506 | ( case "`cat systype`" in \ | |
507 | sunos-5.*) cat hasdevtcp.h2 ;; \ | |
508 | *) cat hasdevtcp.h1 ;; \ | |
509 | esac ) > hasdevtcp.h | |
510 | ||
511 | hasshsgr.h: \ | |
512 | choose compile load tryshsgr.c hasshsgr.h1 hasshsgr.h2 chkshsgr \ | |
513 | warn-shsgr | |
514 | ./chkshsgr || ( cat warn-shsgr; exit 1 ) | |
515 | ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h | |
516 | ||
517 | hier.o: \ | |
518 | compile hier.c auto_home.h | |
519 | ./compile hier.c | |
520 | ||
521 | install: \ | |
522 | load install.o hier.o auto_home.o buffer.a unix.a byte.a | |
523 | ./load install hier.o auto_home.o buffer.a unix.a byte.a | |
524 | ||
525 | install.o: \ | |
526 | compile install.c buffer.h strerr.h error.h open.h exit.h | |
527 | ./compile install.c | |
528 | ||
529 | instcheck: \ | |
530 | load instcheck.o hier.o auto_home.o buffer.a unix.a byte.a | |
531 | ./load instcheck hier.o auto_home.o buffer.a unix.a byte.a | |
532 | ||
533 | instcheck.o: \ | |
534 | compile instcheck.c strerr.h error.h exit.h | |
535 | ./compile instcheck.c | |
536 | ||
537 | iopause.h: \ | |
538 | choose compile load trypoll.c iopause.h1 iopause.h2 | |
539 | ./choose clr trypoll iopause.h1 iopause.h2 > iopause.h | |
540 | ||
541 | iopause.o: \ | |
542 | compile iopause.c taia.h tai.h uint64.h select.h iopause.h taia.h | |
543 | ./compile iopause.c | |
544 | ||
545 | ip4_fmt.o: \ | |
546 | compile ip4_fmt.c fmt.h ip4.h | |
547 | ./compile ip4_fmt.c | |
548 | ||
549 | ip4_scan.o: \ | |
550 | compile ip4_scan.c scan.h ip4.h | |
551 | ./compile ip4_scan.c | |
552 | ||
553 | it: \ | |
554 | prog install instcheck | |
555 | ||
556 | libtai.a: \ | |
557 | makelib tai_add.o tai_now.o tai_pack.o tai_sub.o tai_uint.o \ | |
558 | tai_unpack.o taia_add.o taia_approx.o taia_frac.o taia_less.o \ | |
559 | taia_now.o taia_pack.o taia_sub.o taia_tai.o taia_uint.o | |
560 | ./makelib libtai.a tai_add.o tai_now.o tai_pack.o \ | |
561 | tai_sub.o tai_uint.o tai_unpack.o taia_add.o taia_approx.o \ | |
562 | taia_frac.o taia_less.o taia_now.o taia_pack.o taia_sub.o \ | |
563 | taia_tai.o taia_uint.o | |
564 | ||
565 | load: \ | |
566 | warn-auto.sh conf-ld | |
567 | ( cat warn-auto.sh; \ | |
568 | echo 'main="$$1"; shift'; \ | |
569 | echo exec "`head -1 conf-ld`" \ | |
570 | '-o "$$main" "$$main".o $${1+"$$@"}' \ | |
571 | ) > load | |
572 | chmod 755 load | |
573 | ||
574 | log.o: \ | |
575 | compile log.c buffer.h uint32.h uint16.h error.h byte.h log.h \ | |
576 | uint64.h | |
577 | ./compile log.c | |
578 | ||
579 | makelib: \ | |
580 | warn-auto.sh systype | |
581 | ( cat warn-auto.sh; \ | |
582 | echo 'main="$$1"; shift'; \ | |
583 | echo 'rm -f "$$main"'; \ | |
584 | echo 'ar cr "$$main" $${1+"$$@"}'; \ | |
585 | case "`cat systype`" in \ | |
586 | sunos-5.*) ;; \ | |
587 | unix_sv*) ;; \ | |
588 | irix64-*) ;; \ | |
589 | irix-*) ;; \ | |
590 | dgux-*) ;; \ | |
591 | hp-ux-*) ;; \ | |
592 | sco*) ;; \ | |
593 | *) echo 'ranlib "$$main"' ;; \ | |
594 | esac \ | |
595 | ) > makelib | |
596 | chmod 755 makelib | |
597 | ||
598 | ndelay_off.o: \ | |
599 | compile ndelay_off.c ndelay.h | |
600 | ./compile ndelay_off.c | |
601 | ||
602 | ndelay_on.o: \ | |
603 | compile ndelay_on.c ndelay.h | |
604 | ./compile ndelay_on.c | |
605 | ||
606 | okclient.o: \ | |
607 | compile okclient.c str.h ip4.h okclient.h | |
608 | ./compile okclient.c | |
609 | ||
610 | open_read.o: \ | |
611 | compile open_read.c open.h | |
612 | ./compile open_read.c | |
613 | ||
614 | open_trunc.o: \ | |
615 | compile open_trunc.c open.h | |
616 | ./compile open_trunc.c | |
617 | ||
618 | openreadclose.o: \ | |
619 | compile openreadclose.c error.h open.h readclose.h stralloc.h \ | |
620 | gen_alloc.h openreadclose.h stralloc.h | |
621 | ./compile openreadclose.c | |
622 | ||
623 | parsetype.o: \ | |
624 | compile parsetype.c scan.h byte.h case.h dns.h stralloc.h gen_alloc.h \ | |
625 | iopause.h taia.h tai.h uint64.h taia.h uint16.h parsetype.h | |
626 | ./compile parsetype.c | |
627 | ||
628 | pickdns: \ | |
629 | load pickdns.o server.o response.o droproot.o qlog.o prot.o dns.a \ | |
630 | env.a libtai.a cdb.a alloc.a buffer.a unix.a byte.a socket.lib | |
631 | ./load pickdns server.o response.o droproot.o qlog.o \ | |
632 | prot.o dns.a env.a libtai.a cdb.a alloc.a buffer.a unix.a \ | |
633 | byte.a `cat socket.lib` | |
634 | ||
635 | pickdns-conf: \ | |
636 | load pickdns-conf.o generic-conf.o auto_home.o buffer.a unix.a byte.a | |
637 | ./load pickdns-conf generic-conf.o auto_home.o buffer.a \ | |
638 | unix.a byte.a | |
639 | ||
640 | pickdns-conf.o: \ | |
641 | compile pickdns-conf.c strerr.h exit.h auto_home.h generic-conf.h \ | |
642 | buffer.h | |
643 | ./compile pickdns-conf.c | |
644 | ||
645 | pickdns-data: \ | |
646 | load pickdns-data.o cdb.a dns.a alloc.a buffer.a unix.a byte.a | |
647 | ./load pickdns-data cdb.a dns.a alloc.a buffer.a unix.a \ | |
648 | byte.a | |
649 | ||
650 | pickdns-data.o: \ | |
651 | compile pickdns-data.c buffer.h exit.h cdb_make.h buffer.h uint32.h \ | |
652 | open.h alloc.h gen_allocdefs.h stralloc.h gen_alloc.h getln.h \ | |
653 | buffer.h stralloc.h case.h strerr.h str.h byte.h scan.h fmt.h ip4.h \ | |
654 | dns.h stralloc.h iopause.h taia.h tai.h uint64.h taia.h | |
655 | ./compile pickdns-data.c | |
656 | ||
657 | pickdns.o: \ | |
658 | compile pickdns.c byte.h case.h dns.h stralloc.h gen_alloc.h \ | |
659 | iopause.h taia.h tai.h uint64.h taia.h open.h cdb.h uint32.h \ | |
660 | response.h uint32.h | |
661 | ./compile pickdns.c | |
662 | ||
663 | printpacket.o: \ | |
664 | compile printpacket.c uint16.h uint32.h error.h byte.h dns.h \ | |
665 | stralloc.h gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h \ | |
666 | printrecord.h stralloc.h printpacket.h stralloc.h | |
667 | ./compile printpacket.c | |
668 | ||
669 | printrecord.o: \ | |
670 | compile printrecord.c uint16.h uint32.h error.h byte.h dns.h \ | |
671 | stralloc.h gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h \ | |
672 | printrecord.h stralloc.h | |
673 | ./compile printrecord.c | |
674 | ||
675 | prog: \ | |
676 | dnscache-conf dnscache walldns-conf walldns rbldns-conf rbldns \ | |
677 | rbldns-data pickdns-conf pickdns pickdns-data tinydns-conf tinydns \ | |
678 | tinydns-data tinydns-get tinydns-edit axfr-get axfrdns-conf axfrdns \ | |
679 | dnsip dnsipq dnsname dnstxt dnsmx dnsfilter random-ip dnsqr dnsq \ | |
680 | dnstrace dnstracesort cachetest utime rts | |
681 | ||
682 | prot.o: \ | |
683 | compile prot.c hasshsgr.h prot.h | |
684 | ./compile prot.c | |
685 | ||
686 | qlog.o: \ | |
687 | compile qlog.c buffer.h qlog.h uint16.h | |
688 | ./compile qlog.c | |
689 | ||
690 | query.o: \ | |
691 | compile query.c error.h roots.h log.h uint64.h case.h cache.h \ | |
692 | uint32.h uint64.h byte.h dns.h stralloc.h gen_alloc.h iopause.h \ | |
693 | taia.h tai.h uint64.h taia.h uint64.h uint32.h uint16.h dd.h alloc.h \ | |
694 | response.h uint32.h query.h dns.h uint32.h | |
695 | ./compile query.c | |
696 | ||
697 | random-ip: \ | |
698 | load random-ip.o dns.a libtai.a buffer.a unix.a byte.a | |
699 | ./load random-ip dns.a libtai.a buffer.a unix.a byte.a | |
700 | ||
701 | random-ip.o: \ | |
702 | compile random-ip.c buffer.h exit.h fmt.h scan.h dns.h stralloc.h \ | |
703 | gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h | |
704 | ./compile random-ip.c | |
705 | ||
706 | rbldns: \ | |
707 | load rbldns.o server.o response.o dd.o droproot.o qlog.o prot.o dns.a \ | |
708 | env.a libtai.a cdb.a alloc.a buffer.a unix.a byte.a socket.lib | |
709 | ./load rbldns server.o response.o dd.o droproot.o qlog.o \ | |
710 | prot.o dns.a env.a libtai.a cdb.a alloc.a buffer.a unix.a \ | |
711 | byte.a `cat socket.lib` | |
712 | ||
713 | rbldns-conf: \ | |
714 | load rbldns-conf.o generic-conf.o auto_home.o buffer.a unix.a byte.a | |
715 | ./load rbldns-conf generic-conf.o auto_home.o buffer.a \ | |
716 | unix.a byte.a | |
717 | ||
718 | rbldns-conf.o: \ | |
719 | compile rbldns-conf.c strerr.h exit.h auto_home.h generic-conf.h \ | |
720 | buffer.h | |
721 | ./compile rbldns-conf.c | |
722 | ||
723 | rbldns-data: \ | |
724 | load rbldns-data.o cdb.a alloc.a buffer.a unix.a byte.a | |
725 | ./load rbldns-data cdb.a alloc.a buffer.a unix.a byte.a | |
726 | ||
727 | rbldns-data.o: \ | |
728 | compile rbldns-data.c buffer.h exit.h cdb_make.h buffer.h uint32.h \ | |
729 | open.h stralloc.h gen_alloc.h getln.h buffer.h stralloc.h strerr.h \ | |
730 | byte.h scan.h fmt.h ip4.h | |
731 | ./compile rbldns-data.c | |
732 | ||
733 | rbldns.o: \ | |
734 | compile rbldns.c str.h byte.h ip4.h open.h env.h cdb.h uint32.h dns.h \ | |
735 | stralloc.h gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h dd.h \ | |
736 | strerr.h response.h uint32.h | |
737 | ./compile rbldns.c | |
738 | ||
739 | readclose.o: \ | |
740 | compile readclose.c error.h readclose.h stralloc.h gen_alloc.h | |
741 | ./compile readclose.c | |
742 | ||
743 | response.o: \ | |
744 | compile response.c dns.h stralloc.h gen_alloc.h iopause.h taia.h \ | |
745 | tai.h uint64.h taia.h byte.h uint16.h response.h uint32.h | |
746 | ./compile response.c | |
747 | ||
748 | roots.o: \ | |
749 | compile roots.c open.h error.h str.h byte.h error.h direntry.h ip4.h \ | |
750 | dns.h stralloc.h gen_alloc.h iopause.h taia.h tai.h uint64.h taia.h \ | |
751 | openreadclose.h stralloc.h roots.h | |
752 | ./compile roots.c | |
753 | ||
754 | rts: \ | |
755 | warn-auto.sh rts.sh conf-home | |
756 | cat warn-auto.sh rts.sh \ | |
757 | | sed s}HOME}"`head -1 conf-home`"}g \ | |
758 | > rts | |
759 | chmod 755 rts | |
760 | ||
761 | scan_ulong.o: \ | |
762 | compile scan_ulong.c scan.h | |
763 | ./compile scan_ulong.c | |
764 | ||
765 | seek_set.o: \ | |
766 | compile seek_set.c seek.h | |
767 | ./compile seek_set.c | |
768 | ||
769 | select.h: \ | |
770 | choose compile trysysel.c select.h1 select.h2 | |
771 | ./choose c trysysel select.h1 select.h2 > select.h | |
772 | ||
773 | server.o: \ | |
774 | compile server.c byte.h case.h env.h buffer.h strerr.h ip4.h uint16.h \ | |
775 | ndelay.h socket.h uint16.h droproot.h qlog.h uint16.h response.h \ | |
776 | uint32.h dns.h stralloc.h gen_alloc.h iopause.h taia.h tai.h uint64.h \ | |
777 | taia.h | |
778 | ./compile server.c | |
779 | ||
780 | setup: \ | |
781 | it install | |
782 | ./install | |
783 | ||
784 | sgetopt.o: \ | |
785 | compile sgetopt.c buffer.h sgetopt.h subgetopt.h subgetopt.h | |
786 | ./compile sgetopt.c | |
787 | ||
788 | socket.lib: \ | |
789 | trylsock.c compile load | |
790 | ( ( ./compile trylsock.c && \ | |
791 | ./load trylsock -lsocket -lnsl ) >/dev/null 2>&1 \ | |
792 | && echo -lsocket -lnsl || exit 0 ) > socket.lib | |
793 | rm -f trylsock.o trylsock | |
794 | ||
795 | socket_accept.o: \ | |
796 | compile socket_accept.c byte.h socket.h uint16.h | |
797 | ./compile socket_accept.c | |
798 | ||
799 | socket_bind.o: \ | |
800 | compile socket_bind.c byte.h socket.h uint16.h | |
801 | ./compile socket_bind.c | |
802 | ||
803 | socket_conn.o: \ | |
804 | compile socket_conn.c byte.h socket.h uint16.h | |
805 | ./compile socket_conn.c | |
806 | ||
807 | socket_listen.o: \ | |
808 | compile socket_listen.c socket.h uint16.h | |
809 | ./compile socket_listen.c | |
810 | ||
811 | socket_recv.o: \ | |
812 | compile socket_recv.c byte.h socket.h uint16.h | |
813 | ./compile socket_recv.c | |
814 | ||
815 | socket_send.o: \ | |
816 | compile socket_send.c byte.h socket.h uint16.h | |
817 | ./compile socket_send.c | |
818 | ||
819 | socket_tcp.o: \ | |
820 | compile socket_tcp.c ndelay.h socket.h uint16.h | |
821 | ./compile socket_tcp.c | |
822 | ||
823 | socket_udp.o: \ | |
824 | compile socket_udp.c ndelay.h socket.h uint16.h | |
825 | ./compile socket_udp.c | |
826 | ||
827 | str_chr.o: \ | |
828 | compile str_chr.c str.h | |
829 | ./compile str_chr.c | |
830 | ||
831 | str_diff.o: \ | |
832 | compile str_diff.c str.h | |
833 | ./compile str_diff.c | |
834 | ||
835 | str_len.o: \ | |
836 | compile str_len.c str.h | |
837 | ./compile str_len.c | |
838 | ||
839 | str_rchr.o: \ | |
840 | compile str_rchr.c str.h | |
841 | ./compile str_rchr.c | |
842 | ||
843 | str_start.o: \ | |
844 | compile str_start.c str.h | |
845 | ./compile str_start.c | |
846 | ||
847 | stralloc_cat.o: \ | |
848 | compile stralloc_cat.c byte.h stralloc.h gen_alloc.h | |
849 | ./compile stralloc_cat.c | |
850 | ||
851 | stralloc_catb.o: \ | |
852 | compile stralloc_catb.c stralloc.h gen_alloc.h byte.h | |
853 | ./compile stralloc_catb.c | |
854 | ||
855 | stralloc_cats.o: \ | |
856 | compile stralloc_cats.c byte.h str.h stralloc.h gen_alloc.h | |
857 | ./compile stralloc_cats.c | |
858 | ||
859 | stralloc_copy.o: \ | |
860 | compile stralloc_copy.c byte.h stralloc.h gen_alloc.h | |
861 | ./compile stralloc_copy.c | |
862 | ||
863 | stralloc_eady.o: \ | |
864 | compile stralloc_eady.c alloc.h stralloc.h gen_alloc.h \ | |
865 | gen_allocdefs.h | |
866 | ./compile stralloc_eady.c | |
867 | ||
868 | stralloc_num.o: \ | |
869 | compile stralloc_num.c stralloc.h gen_alloc.h | |
870 | ./compile stralloc_num.c | |
871 | ||
872 | stralloc_opyb.o: \ | |
873 | compile stralloc_opyb.c stralloc.h gen_alloc.h byte.h | |
874 | ./compile stralloc_opyb.c | |
875 | ||
876 | stralloc_opys.o: \ | |
877 | compile stralloc_opys.c byte.h str.h stralloc.h gen_alloc.h | |
878 | ./compile stralloc_opys.c | |
879 | ||
880 | stralloc_pend.o: \ | |
881 | compile stralloc_pend.c alloc.h stralloc.h gen_alloc.h \ | |
882 | gen_allocdefs.h | |
883 | ./compile stralloc_pend.c | |
884 | ||
885 | strerr_die.o: \ | |
886 | compile strerr_die.c buffer.h exit.h strerr.h | |
887 | ./compile strerr_die.c | |
888 | ||
889 | strerr_sys.o: \ | |
890 | compile strerr_sys.c error.h strerr.h | |
891 | ./compile strerr_sys.c | |
892 | ||
893 | subgetopt.o: \ | |
894 | compile subgetopt.c subgetopt.h | |
895 | ./compile subgetopt.c | |
896 | ||
897 | systype: \ | |
898 | find-systype.sh conf-cc conf-ld trycpp.c x86cpuid.c | |
899 | ( cat warn-auto.sh; \ | |
900 | echo CC=\'`head -1 conf-cc`\'; \ | |
901 | echo LD=\'`head -1 conf-ld`\'; \ | |
902 | cat find-systype.sh; \ | |
903 | ) | sh > systype | |
904 | ||
905 | tai_add.o: \ | |
906 | compile tai_add.c tai.h uint64.h | |
907 | ./compile tai_add.c | |
908 | ||
909 | tai_now.o: \ | |
910 | compile tai_now.c tai.h uint64.h | |
911 | ./compile tai_now.c | |
912 | ||
913 | tai_pack.o: \ | |
914 | compile tai_pack.c tai.h uint64.h | |
915 | ./compile tai_pack.c | |
916 | ||
917 | tai_sub.o: \ | |
918 | compile tai_sub.c tai.h uint64.h | |
919 | ./compile tai_sub.c | |
920 | ||
921 | tai_uint.o: \ | |
922 | compile tai_uint.c tai.h uint64.h | |
923 | ./compile tai_uint.c | |
924 | ||
925 | tai_unpack.o: \ | |
926 | compile tai_unpack.c tai.h uint64.h | |
927 | ./compile tai_unpack.c | |
928 | ||
929 | taia_add.o: \ | |
930 | compile taia_add.c taia.h tai.h uint64.h | |
931 | ./compile taia_add.c | |
932 | ||
933 | taia_approx.o: \ | |
934 | compile taia_approx.c taia.h tai.h uint64.h | |
935 | ./compile taia_approx.c | |
936 | ||
937 | taia_frac.o: \ | |
938 | compile taia_frac.c taia.h tai.h uint64.h | |
939 | ./compile taia_frac.c | |
940 | ||
941 | taia_less.o: \ | |
942 | compile taia_less.c taia.h tai.h uint64.h | |
943 | ./compile taia_less.c | |
944 | ||
945 | taia_now.o: \ | |
946 | compile taia_now.c taia.h tai.h uint64.h | |
947 | ./compile taia_now.c | |
948 | ||
949 | taia_pack.o: \ | |
950 | compile taia_pack.c taia.h tai.h uint64.h | |
951 | ./compile taia_pack.c | |
952 | ||
953 | taia_sub.o: \ | |
954 | compile taia_sub.c taia.h tai.h uint64.h | |
955 | ./compile taia_sub.c | |
956 | ||
957 | taia_tai.o: \ | |
958 | compile taia_tai.c taia.h tai.h uint64.h | |
959 | ./compile taia_tai.c | |
960 | ||
961 | taia_uint.o: \ | |
962 | compile taia_uint.c taia.h tai.h uint64.h | |
963 | ./compile taia_uint.c | |
964 | ||
965 | tdlookup.o: \ | |
966 | compile tdlookup.c uint16.h open.h tai.h uint64.h cdb.h uint32.h \ | |
967 | byte.h case.h dns.h stralloc.h gen_alloc.h iopause.h taia.h tai.h \ | |
968 | taia.h seek.h response.h uint32.h | |
969 | ./compile tdlookup.c | |
970 | ||
971 | timeoutread.o: \ | |
972 | compile timeoutread.c error.h iopause.h taia.h tai.h uint64.h \ | |
973 | timeoutread.h | |
974 | ./compile timeoutread.c | |
975 | ||
976 | timeoutwrite.o: \ | |
977 | compile timeoutwrite.c error.h iopause.h taia.h tai.h uint64.h \ | |
978 | timeoutwrite.h | |
979 | ./compile timeoutwrite.c | |
980 | ||
981 | tinydns: \ | |
982 | load tinydns.o server.o droproot.o tdlookup.o response.o qlog.o \ | |
983 | prot.o dns.a libtai.a env.a cdb.a alloc.a buffer.a unix.a byte.a \ | |
984 | socket.lib | |
985 | ./load tinydns server.o droproot.o tdlookup.o response.o \ | |
986 | qlog.o prot.o dns.a libtai.a env.a cdb.a alloc.a buffer.a \ | |
987 | unix.a byte.a `cat socket.lib` | |
988 | ||
989 | tinydns-conf: \ | |
990 | load tinydns-conf.o generic-conf.o auto_home.o buffer.a unix.a byte.a | |
991 | ./load tinydns-conf generic-conf.o auto_home.o buffer.a \ | |
992 | unix.a byte.a | |
993 | ||
994 | tinydns-conf.o: \ | |
995 | compile tinydns-conf.c strerr.h exit.h auto_home.h generic-conf.h \ | |
996 | buffer.h | |
997 | ./compile tinydns-conf.c | |
998 | ||
999 | tinydns-data: \ | |
1000 | load tinydns-data.o cdb.a dns.a alloc.a buffer.a unix.a byte.a | |
1001 | ./load tinydns-data cdb.a dns.a alloc.a buffer.a unix.a \ | |
1002 | byte.a | |
1003 | ||
1004 | tinydns-data.o: \ | |
1005 | compile tinydns-data.c uint16.h uint32.h str.h byte.h fmt.h ip4.h \ | |
1006 | exit.h case.h scan.h buffer.h strerr.h getln.h buffer.h stralloc.h \ | |
1007 | gen_alloc.h cdb_make.h buffer.h uint32.h stralloc.h open.h dns.h \ | |
1008 | stralloc.h iopause.h taia.h tai.h uint64.h taia.h | |
1009 | ./compile tinydns-data.c | |
1010 | ||
1011 | tinydns-edit: \ | |
1012 | load tinydns-edit.o dns.a alloc.a buffer.a unix.a byte.a | |
1013 | ./load tinydns-edit dns.a alloc.a buffer.a unix.a byte.a | |
1014 | ||
1015 | tinydns-edit.o: \ | |
1016 | compile tinydns-edit.c stralloc.h gen_alloc.h buffer.h exit.h open.h \ | |
1017 | getln.h buffer.h stralloc.h strerr.h scan.h byte.h str.h fmt.h ip4.h \ | |
1018 | dns.h stralloc.h iopause.h taia.h tai.h uint64.h taia.h | |
1019 | ./compile tinydns-edit.c | |
1020 | ||
1021 | tinydns-get: \ | |
1022 | load tinydns-get.o tdlookup.o response.o printpacket.o printrecord.o \ | |
1023 | parsetype.o dns.a libtai.a cdb.a buffer.a alloc.a unix.a byte.a | |
1024 | ./load tinydns-get tdlookup.o response.o printpacket.o \ | |
1025 | printrecord.o parsetype.o dns.a libtai.a cdb.a buffer.a \ | |
1026 | alloc.a unix.a byte.a | |
1027 | ||
1028 | tinydns-get.o: \ | |
1029 | compile tinydns-get.c str.h byte.h scan.h exit.h stralloc.h \ | |
1030 | gen_alloc.h buffer.h strerr.h uint16.h response.h uint32.h case.h \ | |
1031 | printpacket.h stralloc.h parsetype.h ip4.h dns.h stralloc.h iopause.h \ | |
1032 | taia.h tai.h uint64.h taia.h | |
1033 | ./compile tinydns-get.c | |
1034 | ||
1035 | tinydns.o: \ | |
1036 | compile tinydns.c dns.h stralloc.h gen_alloc.h iopause.h taia.h tai.h \ | |
1037 | uint64.h taia.h | |
1038 | ./compile tinydns.c | |
1039 | ||
1040 | uint16_pack.o: \ | |
1041 | compile uint16_pack.c uint16.h | |
1042 | ./compile uint16_pack.c | |
1043 | ||
1044 | uint16_unpack.o: \ | |
1045 | compile uint16_unpack.c uint16.h | |
1046 | ./compile uint16_unpack.c | |
1047 | ||
1048 | uint32.h: \ | |
1049 | tryulong32.c compile load uint32.h1 uint32.h2 | |
1050 | ( ( ./compile tryulong32.c && ./load tryulong32 && \ | |
1051 | ./tryulong32 ) >/dev/null 2>&1 \ | |
1052 | && cat uint32.h2 || cat uint32.h1 ) > uint32.h | |
1053 | rm -f tryulong32.o tryulong32 | |
1054 | ||
1055 | uint32_pack.o: \ | |
1056 | compile uint32_pack.c uint32.h | |
1057 | ./compile uint32_pack.c | |
1058 | ||
1059 | uint32_unpack.o: \ | |
1060 | compile uint32_unpack.c uint32.h | |
1061 | ./compile uint32_unpack.c | |
1062 | ||
1063 | uint64.h: \ | |
1064 | choose compile load tryulong64.c uint64.h1 uint64.h2 | |
1065 | ./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h | |
1066 | ||
1067 | unix.a: \ | |
1068 | makelib buffer_read.o buffer_write.o error.o error_str.o ndelay_off.o \ | |
1069 | ndelay_on.o open_read.o open_trunc.o openreadclose.o readclose.o \ | |
1070 | seek_set.o socket_accept.o socket_bind.o socket_conn.o \ | |
1071 | socket_listen.o socket_recv.o socket_send.o socket_tcp.o socket_udp.o | |
1072 | ./makelib unix.a buffer_read.o buffer_write.o error.o \ | |
1073 | error_str.o ndelay_off.o ndelay_on.o open_read.o \ | |
1074 | open_trunc.o openreadclose.o readclose.o seek_set.o \ | |
1075 | socket_accept.o socket_bind.o socket_conn.o socket_listen.o \ | |
1076 | socket_recv.o socket_send.o socket_tcp.o socket_udp.o | |
1077 | ||
1078 | utime: \ | |
1079 | load utime.o byte.a | |
1080 | ./load utime byte.a | |
1081 | ||
1082 | utime.o: \ | |
1083 | compile utime.c scan.h exit.h | |
1084 | ./compile utime.c | |
1085 | ||
1086 | walldns: \ | |
1087 | load walldns.o server.o response.o droproot.o qlog.o prot.o dd.o \ | |
1088 | dns.a env.a cdb.a alloc.a buffer.a unix.a byte.a socket.lib | |
1089 | ./load walldns server.o response.o droproot.o qlog.o \ | |
1090 | prot.o dd.o dns.a env.a cdb.a alloc.a buffer.a unix.a \ | |
1091 | byte.a `cat socket.lib` | |
1092 | ||
1093 | walldns-conf: \ | |
1094 | load walldns-conf.o generic-conf.o auto_home.o buffer.a unix.a byte.a | |
1095 | ./load walldns-conf generic-conf.o auto_home.o buffer.a \ | |
1096 | unix.a byte.a | |
1097 | ||
1098 | walldns-conf.o: \ | |
1099 | compile walldns-conf.c strerr.h exit.h auto_home.h generic-conf.h \ | |
1100 | buffer.h | |
1101 | ./compile walldns-conf.c | |
1102 | ||
1103 | walldns.o: \ | |
1104 | compile walldns.c byte.h dns.h stralloc.h gen_alloc.h iopause.h \ | |
1105 | taia.h tai.h uint64.h taia.h dd.h response.h uint32.h | |
1106 | ./compile walldns.c |