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