Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

727 lines
38 KiB

  1. # do not edit! edit GNUmakefile instead
  2. # Warning! There is no real "make install" support.
  3. # The include files are named after the djb, i.e. pretty generic. They
  4. # will probably conflict with other headers. That's why I install them
  5. # in /opt/diet, where they are in the default search path for my diet libc
  6. # work but don't conflict with anything there. YMMV.
  7. prefix=/opt/diet
  8. LIBDIR=${prefix}/lib
  9. INCLUDEDIR=${prefix}/include
  10. MAN3DIR=${prefix}/man/man3
  11. LIBS=byte.a fmt.a scan.a str.a uint.a open.a stralloc.a unix.a socket.a \
  12. buffer.a mmap.a taia.a tai.a dns.a case.a mult.a array.a io.a \
  13. textcode.a cdb.a
  14. all: t $(LIBS) libowfat.a libsocket
  15. CROSS=
  16. #CROSS=i686-mingw-
  17. CC=$(CROSS)gcc
  18. CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer
  19. #CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
  20. # CFLAGS += -fstrict-aliasing -Wstrict-aliasing=2
  21. CFLAGS += -D_REENTRANT
  22. array_allocate.o: array/array_allocate.c safemult.h uint16.h uint32.h \
  23. uint64.h array.h byte.h
  24. array_bytes.o: array/array_bytes.c array.h uint64.h
  25. array_cat.o: array/array_cat.c array.h uint64.h byte.h
  26. array_cat0.o: array/array_cat0.c array.h uint64.h
  27. array_catb.o: array/array_catb.c array.h uint64.h byte.h
  28. array_cate.o: array/array_cate.c array.h uint64.h
  29. array_cats.o: array/array_cats.c array.h uint64.h str.h
  30. array_cats0.o: array/array_cats0.c array.h uint64.h str.h
  31. array_equal.o: array/array_equal.c byte.h array.h uint64.h
  32. array_fail.o: array/array_fail.c array.h uint64.h
  33. array_get.o: array/array_get.c safemult.h uint16.h uint32.h uint64.h \
  34. array.h
  35. array_length.o: array/array_length.c array.h uint64.h
  36. array_reset.o: array/array_reset.c array.h uint64.h
  37. array_start.o: array/array_start.c array.h uint64.h
  38. array_trunc.o: array/array_trunc.c array.h uint64.h
  39. array_truncate.o: array/array_truncate.c safemult.h uint16.h uint32.h \
  40. uint64.h array.h
  41. buffer_0.o: buffer/buffer_0.c buffer.h
  42. buffer_0small.o: buffer/buffer_0small.c buffer.h
  43. buffer_1.o: buffer/buffer_1.c buffer.h
  44. buffer_1small.o: buffer/buffer_1small.c buffer.h
  45. buffer_2.o: buffer/buffer_2.c buffer.h
  46. buffer_close.o: buffer/buffer_close.c buffer.h
  47. buffer_feed.o: buffer/buffer_feed.c buffer.h
  48. buffer_flush.o: buffer/buffer_flush.c buffer.h
  49. buffer_fromsa.o: buffer/buffer_fromsa.c stralloc.h buffer.h
  50. buffer_get.o: buffer/buffer_get.c byte.h buffer.h
  51. buffer_get_new_token_sa.o: buffer/buffer_get_new_token_sa.c stralloc.h \
  52. buffer.h
  53. buffer_get_new_token_sa_pred.o: buffer/buffer_get_new_token_sa_pred.c \
  54. stralloc.h buffer.h
  55. buffer_get_token.o: buffer/buffer_get_token.c byte.h buffer.h scan.h
  56. buffer_get_token_pred.o: buffer/buffer_get_token_pred.c byte.h buffer.h \
  57. scan.h
  58. buffer_get_token_sa.o: buffer/buffer_get_token_sa.c byte.h stralloc.h \
  59. buffer.h
  60. buffer_get_token_sa_pred.o: buffer/buffer_get_token_sa_pred.c byte.h \
  61. stralloc.h buffer.h
  62. buffer_getc.o: buffer/buffer_getc.c byte.h buffer.h
  63. buffer_getline.o: buffer/buffer_getline.c buffer.h
  64. buffer_getline_sa.o: buffer/buffer_getline_sa.c stralloc.h buffer.h
  65. buffer_getn.o: buffer/buffer_getn.c byte.h buffer.h
  66. buffer_getnewline_sa.o: buffer/buffer_getnewline_sa.c stralloc.h buffer.h
  67. buffer_init.o: buffer/buffer_init.c buffer.h
  68. buffer_init_free.o: buffer/buffer_init_free.c buffer.h
  69. buffer_mmapread.o: buffer/buffer_mmapread.c buffer.h mmap.h
  70. buffer_peek.o: buffer/buffer_peek.c buffer.h
  71. buffer_put.o: buffer/buffer_put.c byte.h buffer.h
  72. buffer_put8long.o: buffer/buffer_put8long.c buffer.h fmt.h
  73. buffer_putalign.o: buffer/buffer_putalign.c byte.h buffer.h
  74. buffer_puterror.o: buffer/buffer_puterror.c buffer.h
  75. buffer_puterror2.o: buffer/buffer_puterror2.c buffer.h
  76. buffer_putflush.o: buffer/buffer_putflush.c buffer.h
  77. buffer_putlong.o: buffer/buffer_putlong.c buffer.h fmt.h
  78. buffer_putlonglong.o: buffer/buffer_putlonglong.c buffer.h fmt.h
  79. buffer_putm_internal.o: buffer/buffer_putm_internal.c buffer.h
  80. buffer_putm_internal_flush.o: buffer/buffer_putm_internal_flush.c \
  81. buffer.h
  82. buffer_putnlflush.o: buffer/buffer_putnlflush.c str.h buffer.h
  83. buffer_puts.o: buffer/buffer_puts.c str.h buffer.h
  84. buffer_putsa.o: buffer/buffer_putsa.c stralloc.h buffer.h
  85. buffer_putsaflush.o: buffer/buffer_putsaflush.c stralloc.h buffer.h
  86. buffer_putsalign.o: buffer/buffer_putsalign.c str.h buffer.h
  87. buffer_putsflush.o: buffer/buffer_putsflush.c str.h buffer.h
  88. buffer_putspace.o: buffer/buffer_putspace.c str.h buffer.h
  89. buffer_putulong.o: buffer/buffer_putulong.c buffer.h fmt.h
  90. buffer_putulonglong.o: buffer/buffer_putulonglong.c buffer.h fmt.h
  91. buffer_putxlong.o: buffer/buffer_putxlong.c buffer.h fmt.h
  92. buffer_seek.o: buffer/buffer_seek.c buffer.h
  93. buffer_stubborn.o: buffer/buffer_stubborn.c buffer.h
  94. buffer_stubborn2.o: buffer/buffer_stubborn2.c buffer.h
  95. errmsg_iam.o: buffer/errmsg_iam.c errmsg.h
  96. errmsg_info.o: buffer/errmsg_info.c errmsg.h errmsg_int.h str.h
  97. errmsg_infosys.o: buffer/errmsg_infosys.c errmsg.h errmsg_int.h str.h
  98. errmsg_puts.o: buffer/errmsg_puts.c errmsg.h errmsg_int.h str.h
  99. errmsg_warn.o: buffer/errmsg_warn.c errmsg.h errmsg_int.h str.h
  100. errmsg_warnsys.o: buffer/errmsg_warnsys.c errmsg.h errmsg_int.h str.h
  101. errmsg_write.o: buffer/errmsg_write.c errmsg.h errmsg_int.h
  102. byte_chr.o: byte/byte_chr.c byte.h
  103. byte_copy.o: byte/byte_copy.c byte.h
  104. byte_copyr.o: byte/byte_copyr.c byte.h
  105. byte_diff.o: byte/byte_diff.c byte.h
  106. byte_rchr.o: byte/byte_rchr.c byte.h
  107. byte_zero.o: byte/byte_zero.c byte.h
  108. case_diffb.o: case/case_diffb.c case.h
  109. case_diffs.o: case/case_diffs.c case.h
  110. case_lowerb.o: case/case_lowerb.c case.h
  111. case_lowers.o: case/case_lowers.c case.h
  112. case_starts.o: case/case_starts.c case.h
  113. cdb.o: cdb/cdb.c byte.h cdb.h uint32.h
  114. cdb_hash.o: cdb/cdb_hash.c cdb.h uint32.h
  115. cdb_make.o: cdb/cdb_make.c cdb.h uint32.h cdb_make.h buffer.h
  116. cdb_traverse.o: cdb/cdb_traverse.c cdb.h uint32.h
  117. dns_dfd.o: dns/dns_dfd.c byte.h dns.h stralloc.h iopause.h taia.h tai.h \
  118. uint64.h
  119. dns_domain.o: dns/dns_domain.c case.h byte.h dns.h stralloc.h iopause.h \
  120. taia.h tai.h uint64.h
  121. dns_dtda.o: dns/dns_dtda.c stralloc.h dns.h stralloc.h iopause.h taia.h \
  122. tai.h uint64.h
  123. dns_ip.o: dns/dns_ip.c stralloc.h uint16.h byte.h dns.h stralloc.h \
  124. iopause.h taia.h tai.h uint64.h
  125. dns_ip6.o: dns/dns_ip6.c stralloc.h uint16.h byte.h dns.h stralloc.h \
  126. iopause.h taia.h tai.h uint64.h ip4.h ip6.h byte.h uint32.h
  127. dns_ipq.o: dns/dns_ipq.c stralloc.h case.h byte.h str.h dns.h stralloc.h \
  128. iopause.h taia.h tai.h uint64.h
  129. dns_ipq6.o: dns/dns_ipq6.c stralloc.h case.h byte.h str.h dns.h \
  130. stralloc.h iopause.h taia.h tai.h uint64.h
  131. dns_mx.o: dns/dns_mx.c stralloc.h byte.h uint16.h dns.h stralloc.h \
  132. iopause.h taia.h tai.h uint64.h
  133. dns_name.o: dns/dns_name.c stralloc.h uint16.h byte.h dns.h stralloc.h \
  134. iopause.h taia.h tai.h uint64.h ip6.h byte.h uint32.h
  135. dns_nd.o: dns/dns_nd.c byte.h fmt.h dns.h stralloc.h iopause.h taia.h \
  136. tai.h uint64.h
  137. dns_nd6.o: dns/dns_nd6.c byte.h fmt.h dns.h stralloc.h iopause.h taia.h \
  138. tai.h uint64.h haveinline.h
  139. dns_packet.o: dns/dns_packet.c dns.h stralloc.h iopause.h taia.h tai.h \
  140. uint64.h
  141. dns_random.o: dns/dns_random.c dns.h stralloc.h iopause.h taia.h tai.h \
  142. uint64.h taia.h uint32.h
  143. dns_rcip.o: dns/dns_rcip.c taia.h tai.h uint64.h openreadclose.h \
  144. stralloc.h byte.h ip4.h ip6.h byte.h uint32.h dns.h iopause.h taia.h
  145. dns_rcrw.o: dns/dns_rcrw.c taia.h tai.h uint64.h byte.h str.h \
  146. openreadclose.h stralloc.h dns.h iopause.h taia.h
  147. dns_resolve.o: dns/dns_resolve.c iopause.h taia.h tai.h uint64.h taia.h \
  148. byte.h dns.h stralloc.h iopause.h ip6.h byte.h uint32.h
  149. dns_sortip.o: dns/dns_sortip.c byte.h dns.h stralloc.h iopause.h taia.h \
  150. tai.h uint64.h
  151. dns_sortip6.o: dns/dns_sortip6.c byte.h dns.h stralloc.h iopause.h taia.h \
  152. tai.h uint64.h
  153. dns_transmit.o: dns/dns_transmit.c socket.h uint16.h uint32.h byte.h \
  154. uint16.h dns.h stralloc.h iopause.h taia.h tai.h uint64.h ip6.h byte.h
  155. dns_txt.o: dns/dns_txt.c stralloc.h uint16.h byte.h dns.h stralloc.h \
  156. iopause.h taia.h tai.h uint64.h
  157. buffer_getline.o: examples/buffer_getline.c stralloc.h buffer.h io.h \
  158. uint64.h taia.h tai.h errmsg.h
  159. byte.o: examples/byte.c byte.h buffer.h
  160. str.o: examples/str.c str.h buffer.h
  161. fmt_8long.o: fmt/fmt_8long.c fmt.h
  162. fmt_8longlong.o: fmt/fmt_8longlong.c fmt.h
  163. fmt_double.o: fmt/fmt_double.c fmt.h
  164. fmt_fill.o: fmt/fmt_fill.c fmt.h
  165. fmt_httpdate.o: fmt/fmt_httpdate.c fmt.h byte.h
  166. fmt_human.o: fmt/fmt_human.c fmt.h
  167. fmt_humank.o: fmt/fmt_humank.c fmt.h
  168. fmt_long.o: fmt/fmt_long.c fmt.h
  169. fmt_longlong.o: fmt/fmt_longlong.c fmt.h
  170. fmt_minus.o: fmt/fmt_minus.c fmt.h
  171. fmt_pad.o: fmt/fmt_pad.c fmt.h
  172. fmt_plusminus.o: fmt/fmt_plusminus.c fmt.h
  173. fmt_str.o: fmt/fmt_str.c fmt.h
  174. fmt_strn.o: fmt/fmt_strn.c fmt.h
  175. fmt_tohex.o: fmt/fmt_tohex.c fmt.h
  176. fmt_ulong.o: fmt/fmt_ulong.c fmt.h
  177. fmt_ulong0.o: fmt/fmt_ulong0.c fmt.h
  178. fmt_ulonglong.o: fmt/fmt_ulonglong.c fmt.h
  179. fmt_xlong.o: fmt/fmt_xlong.c fmt.h haveinline.h
  180. fmt_xlonglong.o: fmt/fmt_xlonglong.c fmt.h
  181. io_appendfile.o: io/io_appendfile.c io_internal.h io.h uint64.h taia.h \
  182. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  183. io_canread.o: io/io_canread.c io_internal.h io.h uint64.h taia.h tai.h \
  184. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  185. io_canwrite.o: io/io_canwrite.c io_internal.h io.h uint64.h taia.h tai.h \
  186. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  187. io_check.o: io/io_check.c io_internal.h io.h uint64.h taia.h tai.h \
  188. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  189. io_close.o: io/io_close.c io_internal.h io.h uint64.h taia.h tai.h \
  190. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  191. io_closeonexec.o: io/io_closeonexec.c io_internal.h io.h uint64.h taia.h \
  192. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  193. io_createfile.o: io/io_createfile.c io_internal.h io.h uint64.h taia.h \
  194. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  195. io_dontwantread.o: io/io_dontwantread.c io_internal.h io.h uint64.h \
  196. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  197. io_dontwantwrite.o: io/io_dontwantwrite.c io_internal.h io.h uint64.h \
  198. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  199. io_eagain.o: io/io_eagain.c io_internal.h io.h uint64.h taia.h tai.h \
  200. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  201. io_fd.o: io/io_fd.c io_internal.h io.h uint64.h taia.h tai.h array.h \
  202. haveepoll.h havekqueue.h havedevpoll.h havesigio.h byte.h
  203. io_finishandshutdown.o: io/io_finishandshutdown.c io_internal.h io.h \
  204. uint64.h taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  205. havesigio.h
  206. io_getcookie.o: io/io_getcookie.c io_internal.h io.h uint64.h taia.h \
  207. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  208. io_mmapwritefile.o: io/io_mmapwritefile.c io_internal.h io.h uint64.h \
  209. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h \
  210. iob.h
  211. io_nonblock.o: io/io_nonblock.c io_internal.h io.h uint64.h taia.h tai.h \
  212. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  213. io_passfd.o: io/io_passfd.c io_internal.h io.h uint64.h taia.h tai.h \
  214. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  215. io_pipe.o: io/io_pipe.c io_internal.h io.h uint64.h taia.h tai.h array.h \
  216. haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  217. io_readfile.o: io/io_readfile.c io_internal.h io.h uint64.h taia.h tai.h \
  218. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  219. io_readwritefile.o: io/io_readwritefile.c io_internal.h io.h uint64.h \
  220. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  221. io_receivefd.o: io/io_receivefd.c io_internal.h io.h uint64.h taia.h \
  222. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  223. io_sendfile.o: io/io_sendfile.c io_internal.h io.h uint64.h taia.h tai.h \
  224. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h havebsdsf.h \
  225. havesendfile.h
  226. io_setcookie.o: io/io_setcookie.c io_internal.h io.h uint64.h taia.h \
  227. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  228. io_sigpipe.o: io/io_sigpipe.c io_internal.h io.h uint64.h taia.h tai.h \
  229. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  230. io_socketpair.o: io/io_socketpair.c windoze.h io_internal.h io.h uint64.h \
  231. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  232. io_timeout.o: io/io_timeout.c io_internal.h io.h uint64.h taia.h tai.h \
  233. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  234. io_timeouted.o: io/io_timeouted.c io_internal.h io.h uint64.h taia.h \
  235. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  236. io_tryread.o: io/io_tryread.c io_internal.h io.h uint64.h taia.h tai.h \
  237. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h byte.h
  238. io_tryreadtimeout.o: io/io_tryreadtimeout.c io_internal.h io.h uint64.h \
  239. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  240. io_trywrite.o: io/io_trywrite.c io_internal.h io.h uint64.h taia.h tai.h \
  241. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  242. io_trywritetimeout.o: io/io_trywritetimeout.c io_internal.h io.h uint64.h \
  243. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  244. io_wait.o: io/io_wait.c io_internal.h io.h uint64.h taia.h tai.h array.h \
  245. haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  246. io_waitread.o: io/io_waitread.c io_internal.h io.h uint64.h taia.h tai.h \
  247. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  248. io_waituntil.o: io/io_waituntil.c io_internal.h io.h uint64.h taia.h \
  249. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h \
  250. safemult.h uint16.h uint32.h
  251. io_waituntil2.o: io/io_waituntil2.c io_internal.h io.h uint64.h taia.h \
  252. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  253. io_waitwrite.o: io/io_waitwrite.c io_internal.h io.h uint64.h taia.h \
  254. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  255. io_wantread.o: io/io_wantread.c io_internal.h io.h uint64.h taia.h tai.h \
  256. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  257. io_wantwrite.o: io/io_wantwrite.c io_internal.h io.h uint64.h taia.h \
  258. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h
  259. iob_addbuf.o: io/iob_addbuf.c iob_internal.h iob.h io.h uint64.h taia.h \
  260. tai.h array.h
  261. iob_addbuf_free.o: io/iob_addbuf_free.c iob_internal.h iob.h io.h \
  262. uint64.h taia.h tai.h array.h
  263. iob_addbuf_internal.o: io/iob_addbuf_internal.c iob_internal.h iob.h io.h \
  264. uint64.h taia.h tai.h array.h
  265. iob_addfile.o: io/iob_addfile.c iob_internal.h iob.h io.h uint64.h taia.h \
  266. tai.h array.h
  267. iob_addfile_close.o: io/iob_addfile_close.c iob_internal.h iob.h io.h \
  268. uint64.h taia.h tai.h array.h
  269. iob_adds.o: io/iob_adds.c str.h iob.h io.h uint64.h taia.h tai.h array.h
  270. iob_adds_free.o: io/iob_adds_free.c str.h iob.h io.h uint64.h taia.h \
  271. tai.h array.h
  272. iob_free.o: io/iob_free.c iob_internal.h iob.h io.h uint64.h taia.h tai.h \
  273. array.h
  274. iob_new.o: io/iob_new.c byte.h iob_internal.h iob.h io.h uint64.h taia.h \
  275. tai.h array.h
  276. iob_prefetch.o: io/iob_prefetch.c iob_internal.h iob.h io.h uint64.h \
  277. taia.h tai.h array.h
  278. iob_reset.o: io/iob_reset.c byte.h iob_internal.h iob.h io.h uint64.h \
  279. taia.h tai.h array.h
  280. iob_send.o: io/iob_send.c havebsdsf.h havealloca.h iob_internal.h iob.h \
  281. io.h uint64.h taia.h tai.h array.h
  282. iob_write.o: io/iob_write.c iob_internal.h iob.h io.h uint64.h taia.h \
  283. tai.h array.h
  284. mmap_private.o: mmap/mmap_private.c open.h mmap.h
  285. mmap_read.o: mmap/mmap_read.c open.h mmap.h
  286. mmap_shared.o: mmap/mmap_shared.c open.h mmap.h
  287. imult16.o: mult/imult16.c safemult.h uint16.h uint32.h uint64.h
  288. imult32.o: mult/imult32.c safemult.h uint16.h uint32.h uint64.h
  289. imult64.o: mult/imult64.c safemult.h uint16.h uint32.h uint64.h
  290. umult16.o: mult/umult16.c safemult.h uint16.h uint32.h uint64.h
  291. umult32.o: mult/umult32.c safemult.h uint16.h uint32.h uint64.h
  292. umult64.o: mult/umult64.c safemult.h uint16.h uint32.h uint64.h
  293. open_append.o: open/open_append.c open.h
  294. open_excl.o: open/open_excl.c open.h
  295. open_read.o: open/open_read.c open.h
  296. open_rw.o: open/open_rw.c open.h
  297. open_trunc.o: open/open_trunc.c open.h
  298. open_write.o: open/open_write.c open.h
  299. openreadclose.o: open/openreadclose.c open.h readclose.h stralloc.h \
  300. openreadclose.h
  301. readclose.o: open/readclose.c readclose.h stralloc.h
  302. scan_8int.o: scan/scan_8int.c scan.h
  303. scan_8long.o: scan/scan_8long.c scan.h
  304. scan_8short.o: scan/scan_8short.c scan.h
  305. scan_charsetnskip.o: scan/scan_charsetnskip.c scan.h
  306. scan_double.o: scan/scan_double.c scan.h
  307. scan_fromhex.o: scan/scan_fromhex.c scan.h
  308. scan_httpdate.o: scan/scan_httpdate.c scan.h byte.h case.h
  309. scan_int.o: scan/scan_int.c scan.h
  310. scan_long.o: scan/scan_long.c scan.h
  311. scan_longlong.o: scan/scan_longlong.c scan.h
  312. scan_noncharsetnskip.o: scan/scan_noncharsetnskip.c scan.h
  313. scan_nonwhitenskip.o: scan/scan_nonwhitenskip.c scan.h
  314. scan_plusminus.o: scan/scan_plusminus.c scan.h
  315. scan_short.o: scan/scan_short.c scan.h
  316. scan_uint.o: scan/scan_uint.c scan.h
  317. scan_ulong.o: scan/scan_ulong.c scan.h
  318. scan_ulonglong.o: scan/scan_ulonglong.c scan.h
  319. scan_ushort.o: scan/scan_ushort.c scan.h
  320. scan_whitenskip.o: scan/scan_whitenskip.c scan.h
  321. scan_xint.o: scan/scan_xint.c scan.h
  322. scan_xlong.o: scan/scan_xlong.c scan.h
  323. scan_xlonglong.o: scan/scan_xlonglong.c scan.h
  324. scan_xshort.o: scan/scan_xshort.c scan.h
  325. fmt_ip4.o: socket/fmt_ip4.c fmt.h ip4.h
  326. fmt_ip6.o: socket/fmt_ip6.c fmt.h byte.h ip4.h ip6.h byte.h uint32.h
  327. fmt_ip6_flat.o: socket/fmt_ip6_flat.c ip6.h byte.h uint32.h haveinline.h
  328. fmt_ip6c.o: socket/fmt_ip6c.c fmt.h byte.h ip4.h ip6.h byte.h uint32.h
  329. fmt_ip6if.o: socket/fmt_ip6if.c ip6.h byte.h uint32.h str.h fmt.h \
  330. socket.h uint16.h
  331. fmt_ip6ifc.o: socket/fmt_ip6ifc.c fmt.h byte.h ip4.h ip6.h byte.h \
  332. uint32.h
  333. init.o: socket/init.c
  334. scan_ip4.o: socket/scan_ip4.c scan.h ip4.h
  335. scan_ip6.o: socket/scan_ip6.c scan.h ip4.h ip6.h byte.h uint32.h
  336. scan_ip6_flat.o: socket/scan_ip6_flat.c scan.h
  337. scan_ip6if.o: socket/scan_ip6if.c ip6.h byte.h uint32.h byte.h socket.h \
  338. uint16.h havealloca.h
  339. socket_accept4.o: socket/socket_accept4.c windoze.h socket.h uint16.h \
  340. uint32.h havesl.h
  341. socket_accept6.o: socket/socket_accept6.c windoze.h byte.h socket.h \
  342. uint16.h uint32.h ip6.h byte.h haveip6.h havesl.h havescope.h
  343. socket_bind4.o: socket/socket_bind4.c windoze.h byte.h uint16.h uint32.h \
  344. socket.h uint16.h uint32.h
  345. socket_bind4_reuse.o: socket/socket_bind4_reuse.c socket.h uint16.h \
  346. uint32.h windoze.h
  347. socket_bind6.o: socket/socket_bind6.c haveip6.h windoze.h ip6.h byte.h \
  348. uint32.h byte.h socket.h uint16.h
  349. socket_bind6_reuse.o: socket/socket_bind6_reuse.c socket.h uint16.h \
  350. uint32.h windoze.h
  351. socket_broadcast.o: socket/socket_broadcast.c socket.h uint16.h uint32.h \
  352. windoze.h
  353. socket_connect4.o: socket/socket_connect4.c windoze.h byte.h socket.h \
  354. uint16.h uint32.h uint16.h uint32.h
  355. socket_connect6.o: socket/socket_connect6.c windoze.h byte.h socket.h \
  356. uint16.h uint32.h ip6.h byte.h haveip6.h uint32.h ip4.h havescope.h
  357. socket_connected.o: socket/socket_connected.c socket.h uint16.h uint32.h \
  358. havesl.h
  359. socket_getifidx.o: socket/socket_getifidx.c socket.h uint16.h uint32.h \
  360. haven2i.h
  361. socket_getifname.o: socket/socket_getifname.c socket.h uint16.h uint32.h \
  362. haven2i.h
  363. socket_ip4loopback.o: socket/socket_ip4loopback.c
  364. socket_listen.o: socket/socket_listen.c socket.h uint16.h uint32.h \
  365. windoze.h
  366. socket_local4.o: socket/socket_local4.c windoze.h byte.h socket.h \
  367. uint16.h uint32.h havesl.h
  368. socket_local6.o: socket/socket_local6.c windoze.h byte.h socket.h \
  369. uint16.h uint32.h ip6.h byte.h haveip6.h uint32.h havesl.h havescope.h
  370. socket_mchopcount6.o: socket/socket_mchopcount6.c windoze.h socket.h \
  371. uint16.h uint32.h byte.h haveip6.h ip6.h byte.h
  372. socket_mcjoin4.o: socket/socket_mcjoin4.c windoze.h socket.h uint16.h \
  373. uint32.h byte.h
  374. socket_mcjoin6.o: socket/socket_mcjoin6.c windoze.h socket.h uint16.h \
  375. uint32.h byte.h haveip6.h ip6.h byte.h
  376. socket_mcleave4.o: socket/socket_mcleave4.c windoze.h socket.h uint16.h \
  377. uint32.h byte.h
  378. socket_mcleave6.o: socket/socket_mcleave6.c windoze.h socket.h uint16.h \
  379. uint32.h byte.h haveip6.h ip6.h byte.h
  380. socket_mcloop4.o: socket/socket_mcloop4.c windoze.h socket.h uint16.h \
  381. uint32.h
  382. socket_mcloop6.o: socket/socket_mcloop6.c windoze.h socket.h uint16.h \
  383. uint32.h haveip6.h
  384. socket_mcttl4.o: socket/socket_mcttl4.c windoze.h socket.h uint16.h \
  385. uint32.h
  386. socket_noipv6.o: socket/socket_noipv6.c
  387. socket_recv4.o: socket/socket_recv4.c windoze.h socket.h uint16.h \
  388. uint32.h havesl.h
  389. socket_recv6.o: socket/socket_recv6.c windoze.h byte.h socket.h uint16.h \
  390. uint32.h ip6.h byte.h haveip6.h havesl.h havescope.h
  391. socket_remote4.o: socket/socket_remote4.c windoze.h byte.h socket.h \
  392. uint16.h uint32.h havesl.h havescope.h
  393. socket_remote6.o: socket/socket_remote6.c windoze.h byte.h socket.h \
  394. uint16.h uint32.h ip6.h byte.h haveip6.h uint32.h havesl.h havescope.h
  395. socket_send4.o: socket/socket_send4.c windoze.h byte.h socket.h uint16.h \
  396. uint32.h
  397. socket_send6.o: socket/socket_send6.c windoze.h byte.h socket.h uint16.h \
  398. uint32.h ip6.h byte.h haveip6.h ip4.h havescope.h
  399. socket_tcp4.o: socket/socket_tcp4.c windoze.h socket.h uint16.h uint32.h
  400. socket_tcp6.o: socket/socket_tcp6.c windoze.h haveip6.h socket.h uint16.h \
  401. uint32.h
  402. socket_tryreservein.o: socket/socket_tryreservein.c windoze.h socket.h \
  403. uint16.h uint32.h
  404. socket_udp4.o: socket/socket_udp4.c windoze.h socket.h uint16.h uint32.h
  405. socket_udp6.o: socket/socket_udp6.c windoze.h haveip6.h socket.h uint16.h \
  406. uint32.h
  407. socket_v4mappedprefix.o: socket/socket_v4mappedprefix.c
  408. socket_v6any.o: socket/socket_v6any.c
  409. socket_v6loopback.o: socket/socket_v6loopback.c
  410. str_chr.o: str/str_chr.c str.h
  411. str_copy.o: str/str_copy.c str.h
  412. str_diff.o: str/str_diff.c byte.h
  413. str_diffn.o: str/str_diffn.c byte.h
  414. str_len.o: str/str_len.c str.h
  415. str_rchr.o: str/str_rchr.c str.h
  416. str_start.o: str/str_start.c str.h
  417. stralloc_append.o: stralloc/stralloc_append.c stralloc.h
  418. stralloc_cat.o: stralloc/stralloc_cat.c stralloc.h str.h
  419. stralloc_catb.o: stralloc/stralloc_catb.c byte.h stralloc.h
  420. stralloc_catlong0.o: stralloc/stralloc_catlong0.c stralloc.h fmt.h
  421. stralloc_catm_internal.o: stralloc/stralloc_catm_internal.c stralloc.h
  422. stralloc_cats.o: stralloc/stralloc_cats.c stralloc.h str.h
  423. stralloc_catulong0.o: stralloc/stralloc_catulong0.c stralloc.h fmt.h
  424. stralloc_chomp.o: stralloc/stralloc_chomp.c stralloc.h
  425. stralloc_chop.o: stralloc/stralloc_chop.c stralloc.h
  426. stralloc_copy.o: stralloc/stralloc_copy.c stralloc.h str.h
  427. stralloc_copyb.o: stralloc/stralloc_copyb.c byte.h stralloc.h
  428. stralloc_copys.o: stralloc/stralloc_copys.c stralloc.h str.h
  429. stralloc_diff.o: stralloc/stralloc_diff.c stralloc.h byte.h str.h
  430. stralloc_diffs.o: stralloc/stralloc_diffs.c stralloc.h byte.h str.h
  431. stralloc_free.o: stralloc/stralloc_free.c stralloc.h
  432. stralloc_init.o: stralloc/stralloc_init.c stralloc.h
  433. stralloc_ready.o: stralloc/stralloc_ready.c stralloc.h
  434. stralloc_readyplus.o: stralloc/stralloc_readyplus.c stralloc.h
  435. stralloc_starts.o: stralloc/stralloc_starts.c stralloc.h byte.h str.h
  436. stralloc_zero.o: stralloc/stralloc_zero.c stralloc.h
  437. tai_add.o: tai/tai_add.c tai.h uint64.h
  438. tai_now.o: tai/tai_now.c tai.h uint64.h
  439. tai_pack.o: tai/tai_pack.c tai.h uint64.h
  440. tai_sub.o: tai/tai_sub.c tai.h uint64.h
  441. tai_uint.o: tai/tai_uint.c tai.h uint64.h
  442. tai_unpack.o: tai/tai_unpack.c tai.h uint64.h
  443. taia_add.o: taia/taia_add.c taia.h tai.h uint64.h
  444. taia_addsec.o: taia/taia_addsec.c taia.h tai.h uint64.h
  445. taia_approx.o: taia/taia_approx.c taia.h tai.h uint64.h
  446. taia_frac.o: taia/taia_frac.c taia.h tai.h uint64.h
  447. taia_half.o: taia/taia_half.c taia.h tai.h uint64.h
  448. taia_less.o: taia/taia_less.c taia.h tai.h uint64.h
  449. taia_now.o: taia/taia_now.c taia.h tai.h uint64.h
  450. taia_pack.o: taia/taia_pack.c taia.h tai.h uint64.h
  451. taia_sub.o: taia/taia_sub.c taia.h tai.h uint64.h
  452. taia_tai.o: taia/taia_tai.c taia.h tai.h uint64.h
  453. taia_uint.o: taia/taia_uint.c taia.h tai.h uint64.h
  454. taia_unpack.o: taia/taia_unpack.c taia.h tai.h uint64.h
  455. base64.o: textcode/base64.c
  456. fmt_base64.o: textcode/fmt_base64.c fmt.h textcode.h haveinline.h
  457. fmt_cescape.o: textcode/fmt_cescape.c fmt.h textcode.h str.h haveinline.h
  458. fmt_foldwhitespace.o: textcode/fmt_foldwhitespace.c fmt.h textcode.h \
  459. str.h haveinline.h
  460. fmt_hexdump.o: textcode/fmt_hexdump.c fmt.h textcode.h str.h haveinline.h
  461. fmt_html.o: textcode/fmt_html.c fmt.h textcode.h str.h haveinline.h
  462. fmt_quotedprintable.o: textcode/fmt_quotedprintable.c fmt.h textcode.h \
  463. haveinline.h str.h
  464. fmt_to_array.o: textcode/fmt_to_array.c array.h uint64.h textcode.h
  465. fmt_to_sa.o: textcode/fmt_to_sa.c stralloc.h textcode.h
  466. fmt_tofrom_array.o: textcode/fmt_tofrom_array.c array.h uint64.h \
  467. textcode.h
  468. fmt_urlencoded.o: textcode/fmt_urlencoded.c fmt.h textcode.h str.h \
  469. haveinline.h
  470. fmt_uuencoded.o: textcode/fmt_uuencoded.c fmt.h textcode.h haveinline.h
  471. fmt_yenc.o: textcode/fmt_yenc.c fmt.h textcode.h
  472. scan_base64.o: textcode/scan_base64.c textcode.h haveinline.h
  473. scan_cescape.o: textcode/scan_cescape.c fmt.h textcode.h scan.h
  474. scan_hexdump.o: textcode/scan_hexdump.c fmt.h textcode.h scan.h
  475. scan_html.o: textcode/scan_html.c fmt.h textcode.h haveinline.h case.h
  476. scan_quotedprintable.o: textcode/scan_quotedprintable.c fmt.h textcode.h \
  477. scan.h
  478. scan_to_array.o: textcode/scan_to_array.c str.h array.h uint64.h \
  479. textcode.h
  480. scan_to_sa.o: textcode/scan_to_sa.c str.h stralloc.h textcode.h
  481. scan_tofrom_array.o: textcode/scan_tofrom_array.c str.h array.h uint64.h \
  482. textcode.h
  483. scan_urlencoded.o: textcode/scan_urlencoded.c fmt.h textcode.h scan.h
  484. scan_uuencoded.o: textcode/scan_uuencoded.c textcode.h
  485. scan_yenc.o: textcode/scan_yenc.c fmt.h textcode.h
  486. uint16_pack.o: uint/uint16_pack.c uint16.h
  487. uint16_pack_big.o: uint/uint16_pack_big.c uint16.h
  488. uint16_read.o: uint/uint16_read.c uint16.h
  489. uint16_read_big.o: uint/uint16_read_big.c uint16.h
  490. uint16_unpack.o: uint/uint16_unpack.c uint16.h
  491. uint16_unpack_big.o: uint/uint16_unpack_big.c uint16.h
  492. uint32_pack.o: uint/uint32_pack.c uint32.h
  493. uint32_pack_big.o: uint/uint32_pack_big.c uint32.h
  494. uint32_read.o: uint/uint32_read.c uint32.h
  495. uint32_read_big.o: uint/uint32_read_big.c uint32.h
  496. uint32_unpack.o: uint/uint32_unpack.c uint32.h
  497. uint32_unpack_big.o: uint/uint32_unpack_big.c uint32.h
  498. iopause.o: unix/iopause.c taia.h tai.h uint64.h iopause.h taia.h select.h
  499. ndelay_off.o: unix/ndelay_off.c ndelay.h
  500. ndelay_on.o: unix/ndelay_on.c ndelay.h
  501. winsock2errno.o: unix/winsock2errno.c
  502. t.o: t.c fmt.h scan.h str.h uint16.h uint32.h stralloc.h socket.h \
  503. buffer.h ip4.h ip6.h byte.h mmap.h open.h textcode.h dns.h iopause.h \
  504. taia.h tai.h uint64.h case.h errmsg.h iob.h io.h array.h safemult.h
  505. BYTE_OBJS=byte_chr.o byte_copy.o byte_copyr.o byte_diff.o byte_rchr.o byte_zero.o
  506. FMT_OBJS=fmt_8long.o fmt_8longlong.o fmt_double.o fmt_fill.o fmt_httpdate.o fmt_human.o fmt_humank.o fmt_long.o fmt_longlong.o fmt_minus.o fmt_pad.o fmt_plusminus.o fmt_str.o fmt_strn.o fmt_tohex.o fmt_ulong.o fmt_ulong0.o fmt_ulonglong.o fmt_xlong.o fmt_xlonglong.o
  507. SCAN_OBJS=scan_8int.o scan_8long.o scan_8short.o scan_charsetnskip.o scan_double.o scan_fromhex.o scan_httpdate.o scan_int.o scan_long.o scan_longlong.o scan_noncharsetnskip.o scan_nonwhitenskip.o scan_plusminus.o scan_short.o scan_uint.o scan_ulong.o scan_ulonglong.o scan_ushort.o scan_whitenskip.o scan_xint.o scan_xlong.o scan_xlonglong.o scan_xshort.o
  508. STR_OBJS=str_chr.o str_copy.o str_diff.o str_diffn.o str_len.o str_rchr.o str_start.o
  509. UINT_OBJS=uint16_pack.o uint16_pack_big.o uint16_read.o uint16_read_big.o uint16_unpack.o uint16_unpack_big.o uint32_pack.o uint32_pack_big.o uint32_read.o uint32_read_big.o uint32_unpack.o uint32_unpack_big.o
  510. OPEN_OBJS=open_append.o open_excl.o open_read.o open_rw.o open_trunc.o open_write.o openreadclose.o readclose.o
  511. STRALLOC_OBJS=stralloc_append.o stralloc_cat.o stralloc_catb.o stralloc_catlong0.o stralloc_catm_internal.o stralloc_cats.o stralloc_catulong0.o stralloc_chomp.o stralloc_chop.o stralloc_copy.o stralloc_copyb.o stralloc_copys.o stralloc_diff.o stralloc_diffs.o stralloc_free.o stralloc_init.o stralloc_ready.o stralloc_readyplus.o stralloc_starts.o stralloc_zero.o
  512. UNIX_OBJS=iopause.o ndelay_off.o ndelay_on.o winsock2errno.o
  513. SOCKET_OBJS=fmt_ip4.o fmt_ip6.o fmt_ip6_flat.o fmt_ip6c.o fmt_ip6if.o fmt_ip6ifc.o init.o scan_ip4.o scan_ip6.o scan_ip6_flat.o scan_ip6if.o socket_accept4.o socket_accept6.o socket_bind4.o socket_bind4_reuse.o socket_bind6.o socket_bind6_reuse.o socket_broadcast.o socket_connect4.o socket_connect6.o socket_connected.o socket_getifidx.o socket_getifname.o socket_ip4loopback.o socket_listen.o socket_local4.o socket_local6.o socket_mchopcount6.o socket_mcjoin4.o socket_mcjoin6.o socket_mcleave4.o socket_mcleave6.o socket_mcloop4.o socket_mcloop6.o socket_mcttl4.o socket_noipv6.o socket_recv4.o socket_recv6.o socket_remote4.o socket_remote6.o socket_send4.o socket_send6.o socket_tcp4.o socket_tcp6.o socket_tryreservein.o socket_udp4.o socket_udp6.o socket_v4mappedprefix.o socket_v6any.o socket_v6loopback.o
  514. BUFFER_OBJS=buffer_0.o buffer_0small.o buffer_1.o buffer_1small.o buffer_2.o buffer_close.o buffer_feed.o buffer_flush.o buffer_fromsa.o buffer_get.o buffer_get_new_token_sa.o buffer_get_new_token_sa_pred.o buffer_get_token.o buffer_get_token_pred.o buffer_get_token_sa.o buffer_get_token_sa_pred.o buffer_getc.o buffer_getline.o buffer_getline_sa.o buffer_getn.o buffer_getnewline_sa.o buffer_init.o buffer_init_free.o buffer_mmapread.o buffer_peek.o buffer_put.o buffer_put8long.o buffer_putalign.o buffer_puterror.o buffer_puterror2.o buffer_putflush.o buffer_putlong.o buffer_putlonglong.o buffer_putm_internal.o buffer_putm_internal_flush.o buffer_putnlflush.o buffer_puts.o buffer_putsa.o buffer_putsaflush.o buffer_putsalign.o buffer_putsflush.o buffer_putspace.o buffer_putulong.o buffer_putulonglong.o buffer_putxlong.o buffer_seek.o buffer_stubborn.o buffer_stubborn2.o errmsg_iam.o errmsg_info.o errmsg_infosys.o errmsg_puts.o errmsg_warn.o errmsg_warnsys.o errmsg_write.o
  515. MMAP_OBJS=mmap_private.o mmap_read.o mmap_shared.o
  516. TAIA_OBJS=taia_add.o taia_addsec.o taia_approx.o taia_frac.o taia_half.o taia_less.o taia_now.o taia_pack.o taia_sub.o taia_tai.o taia_uint.o taia_unpack.o
  517. TAI_OBJS=tai_add.o tai_now.o tai_pack.o tai_sub.o tai_uint.o tai_unpack.o
  518. DNS_OBJS=dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o dns_ip6.o dns_ipq.o dns_ipq6.o dns_mx.o dns_name.o dns_nd.o dns_nd6.o dns_packet.o dns_random.o dns_rcip.o dns_rcrw.o dns_resolve.o dns_sortip.o dns_sortip6.o dns_transmit.o dns_txt.o
  519. CASE_OBJS=case_diffb.o case_diffs.o case_lowerb.o case_lowers.o case_starts.o
  520. MULT_OBJS=imult16.o imult32.o imult64.o umult16.o umult32.o umult64.o
  521. ARRAY_OBJS=array_allocate.o array_bytes.o array_cat.o array_cat0.o array_catb.o array_cate.o array_cats.o array_cats0.o array_equal.o array_fail.o array_get.o array_length.o array_reset.o array_start.o array_trunc.o array_truncate.o
  522. IO_OBJS=io_appendfile.o io_canread.o io_canwrite.o io_check.o io_close.o io_closeonexec.o io_createfile.o io_dontwantread.o io_dontwantwrite.o io_eagain.o io_fd.o io_finishandshutdown.o io_getcookie.o io_mmapwritefile.o io_nonblock.o io_passfd.o io_pipe.o io_readfile.o io_readwritefile.o io_receivefd.o io_sendfile.o io_setcookie.o io_sigpipe.o io_socketpair.o io_timeout.o io_timeouted.o io_tryread.o io_tryreadtimeout.o io_trywrite.o io_trywritetimeout.o io_wait.o io_waitread.o io_waituntil.o io_waituntil2.o io_waitwrite.o io_wantread.o io_wantwrite.o iob_addbuf.o iob_addbuf_free.o iob_addbuf_internal.o iob_addfile.o iob_addfile_close.o iob_adds.o iob_adds_free.o iob_free.o iob_new.o iob_prefetch.o iob_reset.o iob_send.o iob_write.o
  523. TEXTCODE_OBJS=base64.o fmt_base64.o fmt_cescape.o fmt_foldwhitespace.o fmt_hexdump.o fmt_html.o fmt_quotedprintable.o fmt_to_array.o fmt_to_sa.o fmt_tofrom_array.o fmt_urlencoded.o fmt_uuencoded.o fmt_yenc.o scan_base64.o scan_cescape.o scan_hexdump.o scan_html.o scan_quotedprintable.o scan_to_array.o scan_to_sa.o scan_tofrom_array.o scan_urlencoded.o scan_uuencoded.o scan_yenc.o
  524. CDB_OBJS=cdb.o cdb_hash.o cdb_make.o cdb_traverse.o
  525. byte.a: $(BYTE_OBJS)
  526. fmt.a: $(FMT_OBJS)
  527. scan.a: $(SCAN_OBJS)
  528. str.a: $(STR_OBJS)
  529. uint.a: $(UINT_OBJS)
  530. open.a: $(OPEN_OBJS)
  531. stralloc.a: $(STRALLOC_OBJS)
  532. unix.a: $(UNIX_OBJS)
  533. socket.a: $(SOCKET_OBJS)
  534. buffer.a: $(BUFFER_OBJS)
  535. mmap.a: $(MMAP_OBJS)
  536. textcode.a: $(TEXTCODE_OBJS)
  537. taia.a: $(TAIA_OBJS)
  538. tai.a: $(TAI_OBJS)
  539. dns.a: $(DNS_OBJS)
  540. case.a: $(CASE_OBJS)
  541. array.a: $(ARRAY_OBJS)
  542. mult.a: $(MULT_OBJS)
  543. io.a: $(IO_OBJS)
  544. cdb.a: $(CDB_OBJS)
  545. ALL_OBJS=$(DNS_OBJS) $(BYTE_OBJS) $(FMT_OBJS) $(SCAN_OBJS) \
  546. $(STR_OBJS) $(UINT_OBJS) $(OPEN_OBJS) $(STRALLOC_OBJS) $(UNIX_OBJS) \
  547. $(SOCKET_OBJS) $(BUFFER_OBJS) $(MMAP_OBJS) $(TEXTCODE_OBJS) \
  548. $(TAIA_OBJS) $(TAI_OBJS) $(CASE_OBJS) $(ARRAY_OBJS) $(MULT_OBJS) \
  549. $(IO_OBJS) $(CDB_OBJS)
  550. libowfat.a: $(ALL_OBJS)
  551. $(CROSS)ar cr $@ $(ALL_OBJS)
  552. -$(CROSS)ranlib $@
  553. CFLAGS+=-I.
  554. %.o:
  555. $(DIET) $(CC) -c $< $(CFLAGS)
  556. %.a:
  557. ar cr $@ $^
  558. -ranlib $@
  559. t.o: iopause.h
  560. t: t.o libowfat.a libsocket
  561. $(DIET) $(CC) -g -o $@ t.o libowfat.a `cat libsocket`
  562. .PHONY: all clean tar install rename
  563. clean:
  564. rm -f *.o *.a *.da *.bbg *.bb core t haveip6.h haven2i.h \
  565. havesl.h haveinline.h iopause.h select.h havekqueue.h haveepoll.h \
  566. libepoll havesigio.h havebsdsf.h havesendfile.h havescope.h havedevpoll.h \
  567. dep libsocket havealloca.h
  568. INCLUDES=buffer.h byte.h fmt.h ip4.h ip6.h mmap.h scan.h socket.h str.h stralloc.h \
  569. uint16.h uint32.h uint64.h open.h textcode.h tai.h taia.h dns.h iopause.h case.h \
  570. openreadclose.h readclose.h ndelay.h array.h io.h safemult.h iob.h havealloca.h \
  571. errmsg.h cdb.h cdb_make.h rangecheck.h
  572. install: libowfat.a
  573. install -d $(INCLUDEDIR) $(MAN3DIR) $(LIBDIR)
  574. install -m 644 $(INCLUDES) $(INCLUDEDIR)
  575. install -m 644 $(wildcard */*.3) $(MAN3DIR)
  576. install -m 644 libowfat.a $(LIBDIR)
  577. uninstall:
  578. rm -f $(patsubst %.h,$(INCLUDEDIR)/%.h,$(INCLUDES))
  579. rm -f $(patsubst %.3,$(MAN3DIR)/%.3,$(notdir $(wildcard */*.3)))
  580. rm -f $(LIBDIR)/libowfat.a
  581. VERSION=libowfat-0.25
  582. CURNAME=libowfat-0.25
  583. tar: clean rename
  584. rm -f dep libdep
  585. cd ..; tar cvvf $(VERSION).tar.bz2 --use=bzip2 --exclude CVS $(VERSION)
  586. rename:
  587. if test $(CURNAME) != $(VERSION); then cd .. && mv $(CURNAME) $(VERSION); fi
  588. haveip6.h: tryip6.c
  589. -rm -f $@
  590. if $(DIET) $(CC) $(CFLAGS) -c tryip6.c >/dev/null 2>&1; then echo "#define LIBC_HAS_IP6"; fi > $@
  591. -rm -f tryip6.o
  592. havescope.h: tryscope.c
  593. -rm -f $@
  594. if $(DIET) $(CC) $(CFLAGS) -c tryscope.c >/dev/null 2>&1; then echo "#define LIBC_HAS_SCOPE_ID"; fi > $@
  595. -rm -f tryscope.o
  596. haven2i.h: tryn2i.c
  597. -rm -f $@
  598. if $(DIET) $(CC) $(CFLAGS) -o t tryn2i.c >/dev/null 2>&1; then echo "#define HAVE_N2I"; fi > $@
  599. -rm -f t
  600. havesl.h: trysl.c
  601. -rm -f $@
  602. if ! $(DIET) $(CC) $(CFLAGS) -o t trysl.c >/dev/null 2>&1; then echo "typedef int socklen_t;"; fi > $@
  603. -rm -f t
  604. haveinline.h: tryinline.c
  605. -rm -f $@
  606. if ! $(DIET) $(CC) $(CFLAGS) -c tryinline.c >/dev/null 2>&1; then echo "#define inline"; fi > $@
  607. -rm -f tryinline.o
  608. havekqueue.h: trykqueue.c
  609. -rm -f $@
  610. if $(DIET) $(CC) $(CFLAGS) -c trykqueue.c >/dev/null 2>&1; then echo "#define HAVE_KQUEUE"; fi > $@
  611. -rm -f trykqueue.o
  612. havebsdsf.h: trybsdsf.c
  613. -rm -f $@
  614. if $(DIET) $(CC) $(CFLAGS) -o trybsdsf trybsdsf.c >/dev/null 2>&1; then echo "#define HAVE_BSDSENDFILE"; fi > $@
  615. -rm -f trybsdsf.o trybsdsf
  616. havesendfile.h: trysendfile.c
  617. -rm -f $@
  618. if $(DIET) $(CC) $(CFLAGS) -c trysendfile.c >/dev/null 2>&1; then echo "#define HAVE_SENDFILE"; fi > $@
  619. -rm -f trysendfile.o
  620. haveepoll.h: tryepoll.c
  621. -rm -f $@
  622. if $(DIET) $(CC) $(CFLAGS) -o tryepoll tryepoll.c >/dev/null 2>&1; then echo "#define HAVE_EPOLL 1"; else \
  623. if $(DIET) $(CC) $(CFLAGS) -o tryepoll tryepoll.c -lepoll >/dev/null 2>&1; then echo "#define HAVE_EPOLL 2"; fi; fi > $@
  624. -rm -f tryepoll
  625. havedevpoll.h: trydevpoll.c
  626. -rm -f $@
  627. if $(DIET) $(CC) $(CFLAGS) -c trydevpoll.c >/dev/null 2>&1; then echo "#define HAVE_DEVPOLL"; fi > $@
  628. -rm -f trydevpoll.o
  629. libepoll: haveepoll.h
  630. if test "z`cat haveepoll.h`" = "z#define HAVE_EPOLL 2"; then echo -lepoll; fi > $@
  631. havesigio.h: trysigio.c
  632. -rm -f $@
  633. if $(DIET) $(CC) $(CFLAGS) -c trysigio.c >/dev/null 2>&1; then echo "#define HAVE_SIGIO"; fi > $@
  634. -rm -f trysigio.o
  635. havealloca.h: tryalloca.c
  636. -rm -f $@
  637. echo "#include <stdlib.h>" > $@
  638. if $(DIET) $(CC) $(CFLAGS) -c tryalloca.c >/dev/null 2>&1; then echo "#include <alloca.h>"; fi >> $@
  639. -rm -f tryalloca.o
  640. iopause.h: iopause.h1 iopause.h2 trypoll.c
  641. -rm -f $@
  642. if $(DIET) $(CC) $(CFLAGS) -o t trypoll.c >/dev/null 2>&1; then cp iopause.h2 iopause.h; else cp iopause.h1 iopause.h; fi
  643. -rm -f t
  644. select.h: select.h1 select.h2 trysysel.c
  645. -rm -f $@
  646. if $(DIET) $(CC) $(CFLAGS) -c trysysel.c >/dev/null 2>&1; then cp select.h2 select.h; else cp select.h1 select.h; fi
  647. -rm -f trysysel.o
  648. libsocket: trysocket.c
  649. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c >/dev/null 2>&1; then echo ""; else \
  650. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c -lsocket >/dev/null 2>&1; then echo "-lsocket"; else \
  651. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c -lsocket -lnsl >/dev/null 2>&1; then echo "-lsocket -lnsl"; \
  652. fi; fi; fi > blah
  653. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysendfile.c `cat blah`>/dev/null 2>&1; then cat blah; else \
  654. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysendfile.c -lsendfile `cat blah` >/dev/null 2>&1; then echo "-lsendfile"; cat blah; \
  655. fi; fi > libsocket
  656. rm -f blah trysocket
  657. socket_accept6.o socket_connect6.o socket_local6.o socket_mchopcount6.o \
  658. socket_mcjoin6.o socket_mcleave6.o socket_mcloop6.o socket_recv6.o \
  659. socket_remote6.o socket_send6.o socket_tcp6.o socket_udp6.o: haveip6.h havescope.h
  660. socket_getifidx.o socket_getifname.o: haven2i.h
  661. socket_accept4.o socket_accept6.o socket_connected.o socket_local4.o \
  662. socket_local6.o socket_recv4.o socket_recv6.o socket_remote4.o \
  663. socket_remote6.o: havesl.h
  664. dns_nd6.o fmt_xlong.o scan_xlong.o fmt_ip6_flat.o $(TEXTCODE_OBJS): haveinline.h
  665. iob_send.o scan_ip6if.o: havealloca.h
  666. dep: haveip6.h haven2i.h havesl.h haveinline.h iopause.h select.h haveepoll.h havekqueue.h havedevpoll.h havescope.h havesigio.h havebsdsf.h havesendfile.h
  667. gcc -I. -MM `ls */*.c | grep -v test` t.c | sed -e 's@ \./@ @g' > dep
  668. libdep:
  669. for i in $(LIBS); do (echo -n $$i|tr a-z A-Z|sed 's/.A$$/_OBJS=/'; echo $${i%.a}/*.c|sed -e 's@[^/]*/\([^.]*\)\.c@\1.o @g'); done > libdep
  670. Makefile: GNUmakefile dep libdep
  671. echo "# do not edit! edit GNUmakefile instead" > $@
  672. sed '/startrip/,$$d' < GNUmakefile >> $@
  673. cat dep libdep >> $@
  674. sed -e '1,/stoprip/d' -e 's/ %.c$$//' \
  675. -e 's/^VERSION=.*/'VERSION=$(VERSION)/ \
  676. -e 's/^CURNAME=.*/'CURNAME=$(CURNAME)/ \
  677. -e 's///' < GNUmakefile >> $@
  678. windoze:
  679. $(MAKE) DIET= CROSS=i686-mingw32-